Actions
Issue #9637
closedhas_remote_param_obj_perms assumes that pulpcore serializer is always in use.
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 111
Quarter:
Description
Ticket moved to GitHub: "pulp/pulpcore/2088":https://github.com/pulp/pulpcore/issues/2088
RepositorySyncURLSerializer is always used in has_remote_*_perms
.
It works only for plugins which do not have this serializer subclassed.
The error one may see is:
E pulpcore.client.pulp_container.exceptions.ApiException: (400)
E Reason: Bad Request
E HTTP response headers: HTTPHeaderDict({'Server': 'nginx/1.14.1', 'Date': 'Mon, 13 Dec 2021 20:29:20 GMT', 'Content-Type': 'application/json', 'Content-Length': '36', 'Connection': 'keep-alive', 'Vary': 'Accept, Cookie', 'Allow': 'POST, OPTIONS', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'same-origin', 'Correlation-ID': 'b1b5beab65cd4d7d8923b5c2304b7338', 'Access-Control-Expose-Headers': 'Correlation-ID'})
E HTTP response body: {"your_plugin_specific_field_for_sync":["Unexpected field"]}
Everything works fine with an admin user, this error is seen only with non-admin users.
Pulp needs to use a serializer configured for the view[set].
Updated by pulpbot almost 3 years ago
- Status changed from ASSIGNED to POST
Added by ttereshc almost 3 years ago
Updated by ttereshc almost 3 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulpcore|d8cdbfecab8ac6b32de517f945342b3e3de9fc20.
Updated by fao89 almost 3 years ago
- Description updated (diff)
- Status changed from MODIFIED to CLOSED - DUPLICATE
Actions
Use a plugin provided serializer in the has_remote_*_perms
closes #9637 https://pulp.plan.io/issues/9637