Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deb file upload error #26022

Closed
myururdurmaz opened this issue Jul 20, 2023 · 4 comments · Fixed by #26087
Closed

deb file upload error #26022

myururdurmaz opened this issue Jul 20, 2023 · 4 comments · Fixed by #26087

Comments

@myururdurmaz
Copy link

Description

Hi!
I can't upload my deb package gitea package registry. Curl request returning "unsupported compression algorithm". Because file names in my deb file ends with slash.

head -100c yonca-scripts_0.0.168_amd64.deb 
!<arch>
debian-binary/  0           0     0     644     4         `
2.0
control.tar.xz/ 0   

I found bellow message on this url https://man7.org/linux/man-pages/man5/deb-split.5.html

   The file is an ar archive with a magic value of !<arch>.  The
   file names might contain a trailing slash (since dpkg 1.15.6). 

Gitea Version

1.20.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

debian linux

How are you running Gitea?

systemd service on linux server

Database

PostgreSQL

@KN4CK3R
Copy link
Member

KN4CK3R commented Jul 21, 2023

Could you share the deb file so I can try?

@myururdurmaz
Copy link
Author

here a test deb file

deneme_1_all.deb.gz

@KN4CK3R
Copy link
Member

KN4CK3R commented Jul 24, 2023

Thank you for the file. Fixed in #26087.

KN4CK3R added a commit that referenced this issue Jul 24, 2023
Fixes #26022

- Fix handling of files with trailing slash
- Fix handling of duplicate package file errors
- Added test for both
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Jul 24, 2023
Fixes go-gitea#26022

- Fix handling of files with trailing slash
- Fix handling of duplicate package file errors
- Added test for both
KN4CK3R added a commit that referenced this issue Jul 24, 2023
Backport #26087 by @KN4CK3R

Fixes #26022

- Fix handling of files with trailing slash
- Fix handling of duplicate package file errors
- Added test for both

Co-authored-by: KN4CK3R <[email protected]>
@myururdurmaz
Copy link
Author

thanks

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants