-
Notifications
You must be signed in to change notification settings - Fork 113
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
RBAC denies upload unless chunk size is specified #5199
Comments
I suspect, the user is missing permissions to create upload. So can you verify that adding the upload_creator role would solve the problem? |
Adding |
It's probably worth mentioning that the path in question wasn't in the top level of the repository but in a directory (i.e., |
Permissions are scoped to the repository. So that should not matter. Thanks for investigating. I'll have a look myself. |
With the
It looks like we are allowed to create the upload, but the user1 did not become its owner.
|
The mixin for automatic calling of creation hooks was missing on the Upload model. fixes pulp#5199
The mixin for automatic calling of creation hooks was missing on the Upload model. fixes pulp#5199
The mixin for automatic calling of creation hooks was missing on the Upload model. fixes pulp#5199
The mixin for automatic calling of creation hooks was missing on the Upload model. fixes pulp#5199
The mixin for automatic calling of creation hooks was missing on the Upload model. fixes #5199
Version
Deployed on K8s via Operator
Describe the bug
While uploading some files (I haven't been able to exactly pin down what they have in common yet) as a non-admin user, we get
Error: {"detail":"You do not have permission to perform this action."}
while doing apulp file content upload
despite permissions looking fine across the board. Specifying a sufficiently high chunk size is the only thing that seems to resolve it. For example:Interestingly, I don't see this behavior when using the admin user, only a user that we created, which makes me think this is some permission I missed when creating the user, but I have no idea what it would be.
To Reproduce
file.filedistribution_creator
,file.filedistribution_owner
,file.filerepository_creator
,file.filerepository_owner
.--chunk-size
set.Expected behavior
Upload should happen without an error.
Additional context
N/A
The text was updated successfully, but these errors were encountered: