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

An admin connot see his organisation's packages #25538

Closed
EndMove opened this issue Jun 27, 2023 · 3 comments
Closed

An admin connot see his organisation's packages #25538

EndMove opened this issue Jun 27, 2023 · 3 comments

Comments

@EndMove
Copy link

EndMove commented Jun 27, 2023

Description

I do the update to the rc 1.20.0

Une utilisateur dont le nom d'utilisateur est "IO-Projects" n'a plus access au package de sont organisation. Cela étant dit le package est public, et si aucun utilisateur n'est connecté celui-ci reste accessible comme voulu.

Gitea Version

1.20.0+rc

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

under my user :
image

under the owner user :
image

without being connected :
image

Git Version

No response

Operating System

No response

How are you running Gitea?

on docker

Database

MySQL

@EndMove
Copy link
Author

EndMove commented Jun 27, 2023

An additional problem is that the user who owns the package can no longer publish (it denies access with a 403), but other users who are members of the project can.

@kimdre
Copy link

kimdre commented Jun 30, 2023

I have the same issue. I cannot access my own packages and get 404 errors in the UI and unauthorization errors in my docker pipelines when being a owner.
When I remove my ownership and just give me normal access rights I can view, pull and push packages just fine.

@KN4CK3R
Copy link
Member

KN4CK3R commented Jul 5, 2023

This may be fixed by #25707.

silverwind pushed a commit that referenced this issue Jul 9, 2023
Fixes (?) #25538
Fixes https://codeberg.org/forgejo/forgejo/issues/972

Regression #23879

#23879 introduced a change which prevents read access to packages if a
user is not a member of an organization.

That PR also contained a change which disallows package access if the
team unit is configured with "no access" for packages. I don't think
this change makes sense (at the moment). It may be relevant for private
orgs. But for public or limited orgs that's useless because an
unauthorized user would have more access rights than the team member.
This PR restores the old behaviour "If a user has read access for an
owner, they can read packages".

---------

Co-authored-by: Giteabot <[email protected]>
GiteaBot added a commit to GiteaBot/gitea that referenced this issue Jul 9, 2023
Fixes (?) go-gitea#25538
Fixes https://codeberg.org/forgejo/forgejo/issues/972

Regression go-gitea#23879

go-gitea#23879 introduced a change which prevents read access to packages if a
user is not a member of an organization.

That PR also contained a change which disallows package access if the
team unit is configured with "no access" for packages. I don't think
this change makes sense (at the moment). It may be relevant for private
orgs. But for public or limited orgs that's useless because an
unauthorized user would have more access rights than the team member.
This PR restores the old behaviour "If a user has read access for an
owner, they can read packages".

---------

Co-authored-by: Giteabot <[email protected]>
silverwind pushed a commit that referenced this issue Jul 9, 2023
Backport #25707 by @KN4CK3R

Fixes (?) #25538
Fixes https://codeberg.org/forgejo/forgejo/issues/972

Regression #23879

#23879 introduced a change which prevents read access to packages if a
user is not a member of an organization.

That PR also contained a change which disallows package access if the
team unit is configured with "no access" for packages. I don't think
this change makes sense (at the moment). It may be relevant for private
orgs. But for public or limited orgs that's useless because an
unauthorized user would have more access rights than the team member.
This PR restores the old behaviour "If a user has read access for an
owner, they can read packages".

Co-authored-by: KN4CK3R <[email protected]>
@lunny lunny added the issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP label Jul 27, 2023
@lunny lunny removed the issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP label Nov 9, 2023
@lunny lunny closed this as completed Nov 9, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants