You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a user that has the permissions to create repositories and remotes. The user created a remote and then created a repository with that remote associated. When the user tries to sync the following error is produced:
Error: {"remote":["This field is required since a remote is not set on the repository."]}
To Reproduce
Create a user that can create rpm remotes and rpm repositories.
dkliban
changed the title
syncing of repository with a remote requires specifying a remote at sync time
[rbac] syncing of repository with a remote requires specifying a remote at sync time
Jan 15, 2024
dkliban
changed the title
[rbac] syncing of repository with a remote requires specifying a remote at sync time
[RBAC] syncing of repository with a remote requires specifying a remote at sync time
Jan 15, 2024
dkliban
added a commit
to dkliban/pulpcore
that referenced
this issue
Jan 16, 2024
Version
3.43 and probably earlier
Describe the bug
I have a user that has the permissions to create repositories and remotes. The user created a remote and then created a repository with that remote associated. When the user tries to sync the following error is produced:
Error: {"remote":["This field is required since a remote is not set on the repository."]}
To Reproduce
pulp rpm remote create --url https://fixtures.pulpproject.org/rpm-alt-layout/ --name rpmfoo
pulp rpm repository create --name rpmfoo --remote rpmfoo
pulp rpm repository sync --name rpmfoo
Additional context
The problem seems to be that the
self.context
[0] does not haverepository_pk
when a non-admin user is performing the request.Domains are enabled on this Pulp instance.
[0] https://github.com/pulp/pulpcore/blob/3.43/pulpcore/app/serializers/repository.py#L346
The text was updated successfully, but these errors were encountered: