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

Attributes modifiable_by role="maintainer" can't be modified in subprojects #8705

Open
Vogtinator opened this issue Nov 12, 2019 · 7 comments
Labels
Bug Frontend Things related to the OBS RoR app

Comments

@Vogtinator
Copy link
Member

The requests triggered by OBS:AutoCleanup clearly state:

Such requests get not created for projects with open requests or if you remove the OBS:AutoCleanup attribute.

However, the OBS:AutoCleanup attribute can't be removed:

Sorry, you are not authorized to edit this Attrib.

@coolo
Copy link
Member

coolo commented Nov 12, 2019

'edit this Attrib.' as error is a bug report in itself :)

@adrianschroeter
Copy link
Member

adrianschroeter commented Nov 12, 2019 via email

@Vogtinator
Copy link
Member Author

sure? Are you the maintainer?

I can edit the project meta, prjconf, etc. just fine, but I'm not set as maintainer in the project itself, only the parent project.

I'll add myself as maintainer and try again.

@Vogtinator
Copy link
Member Author

I'll add myself as maintainer and try again.

That worked. So it's just inconsistent handling of permissions.

@coolo coolo changed the title AutoCleanup cannot be disabled Attributes modifiable_by role="maintainer" can't be modified in subprojects Nov 12, 2019
@coolo coolo added Bug Frontend Things related to the OBS RoR app labels Nov 12, 2019
@coolo
Copy link
Member

coolo commented Nov 12, 2019

Just for the record: this is osc or webui?

@Vogtinator
Copy link
Member Author

WebUI prints

Sorry, you are not authorized to edit this Attrib.

Using osc fails as well, with

b'<status code="change_attribute_no_permission">\n <summary>User favogt has no permission to change attribute</summary>\n</status>\n'

@dmarcoux dmarcoux self-assigned this Dec 10, 2019
@dmarcoux
Copy link
Contributor

For a reason I ignore, there is a custom permission handling for the attributes. Instead of only checking if a user can modify the project/package in which the attribute is (just like we do with the project/package's meta for example), we also have custom permission rules defined as AttribTypeModifiableBy.

@dmarcoux dmarcoux removed their assignment Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Frontend Things related to the OBS RoR app
Projects
None yet
Development

No branches or pull requests

4 participants