Skip to content

Uploaded Package does not show in Webgui #20483

@quotengrote

Description

@quotengrote

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

Activity

noerw

noerw commented on Jul 26, 2022

@noerw
Member
added
issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail
and removed on Jul 26, 2022
quotengrote

quotengrote commented on Jul 26, 2022

@quotengrote
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

noerw commented on Jul 26, 2022

@noerw
Member

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

quotengrote commented on Jul 27, 2022

@quotengrote
Author

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

noerw commented on Jul 27, 2022

@noerw
Member

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

quotengrote commented on Jul 27, 2022

@quotengrote
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?

added
type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.
and removed
issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail
on Jul 27, 2022
locked and limited conversation to collaborators on May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/packagestype/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @noerw@quotengrote

      Issue actions

        Uploaded Package does not show in Webgui · Issue #20483 · go-gitea/gitea