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

Uploaded Package does not show in Webgui #20483

Closed
quotengrote opened this issue Jul 25, 2022 · 6 comments · Fixed by #20504
Closed

Uploaded Package does not show in Webgui #20483

quotengrote opened this issue Jul 25, 2022 · 6 comments · Fixed by #20504
Labels
topic/packages type/question Issue needs no code to be fixed, only a description on how to fix it yourself.

Comments

@quotengrote
Copy link

Description

Hi,

i want to Upload a Package to the new Package Registry.

curl --user mg:NE[..]iTTQdC --upload-file ./output/bash-helper-scripts-latest.deb https://<domain>/api/packages/mg/generic/bash-helper-scripts/1.1.1/bash-helper-scripts-latest.deb.

The package is usccessfully uploaded:

ul 25 17:04:09 gitea gitea[2053835]: 2022/07/25 17:04:09 [62deb0e9] router: completed PUT /api/packages/mg/generic/bash-helper-scripts/1.1.2/bash-helper-scripts-latest.deb for 192.168.2.50:41852, 201 Created in 23.3ms @ generic/generic.go:68(generic.UploadPackage)

and

After a new try with the same Version Number:

Package version already exists

But after that the Package is never shown:
2022-07-25 17_05_03-Packages - bash-helper-scripts-mgrote - Gitea - Vivaldi

Gitea Version

1.17.0-rc2

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

20.04.4 LTS (Focal Fossa)

How are you running Gitea?

Gitea ist installed with ansible:

https://git.mgrote.net/mg/ansible/src/branch/master/roles/tmaurice.gitea

All Vars:

https://git.mgrote.net/mg/ansible/src/branch/master/group_vars/gitea.yml

Database

SQLite

@noerw
Copy link
Member

noerw commented Jul 26, 2022

Did you link the package to the repository?

@noerw noerw added issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail and removed type/bug labels Jul 26, 2022
@quotengrote
Copy link
Author

Sry to ask, but...

"To link an (already uploaded) package to a repository, open the settings page on that package and choose a repository to link this package to."

But the Repository-Settings dont have such a setting.
2022-07-26 15_10_04-Settings - bash-helper-scripts-mgrote - Gitea - Vivaldi
2022-07-26 15_10_10-Settings - bash-helper-scripts-mgrote - Gitea - Vivaldi

And i did not find a API-Endpoint for this.

@noerw
Copy link
Member

noerw commented Jul 26, 2022

Not the repository settings, but the package settings (<package-url>/settings). (You only need to do this once)
Yes, looks like the API is missing for this, feel free to change the issue title as a feature request for that API.

@quotengrote
Copy link
Author

quotengrote commented Jul 27, 2022

If i go to:

https://git.mgrote.net/api/packages/mg/generic/bash-helper-scripts-mgrote/1.1.33/bash-helper-scripts-mgrote-latest.deb/settings i get a 404.

Same with: https://git.mgrote.net/api/packages/mg/generic/bash-helper-scripts-mgrote/settings

But without /settings i can download the Package.

@noerw
Copy link
Member

noerw commented Jul 27, 2022

I'm talking about the web UI, not the API — as mentioned, there currently is no API for this.
https://git.mgrote.net/mg/-/packages/generic/bash-helper-scripts-mgrote/1.1.33/settings

@quotengrote
Copy link
Author

Ah, i got it now.

And it worked!

thx
Maybe i/we could improve the docs with a Screenshot where to find that Settings Page?

@noerw noerw added type/question Issue needs no code to be fixed, only a description on how to fix it yourself. and removed issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail labels Jul 27, 2022
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/packages type/question Issue needs no code to be fixed, only a description on how to fix it yourself.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants