Project

Profile

Help

Issue #9637

closed

has_remote_param_obj_perms assumes that pulpcore serializer is always in use.

Added by ttereshc over 2 years ago. Updated about 2 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
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].

Actions #1

Updated by ttereshc over 2 years ago

  • Description updated (diff)
Actions #2

Updated by ttereshc over 2 years ago

  • Description updated (diff)
Actions #3

Updated by pulpbot over 2 years ago

  • Status changed from ASSIGNED to POST

Added by ttereshc over 2 years ago

Revision d8cdbfec | View on GitHub

Use a plugin provided serializer in the has_remote_*_perms

closes #9637 https://pulp.plan.io/issues/9637

Actions #4

Updated by ttereshc over 2 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by fao89 about 2 years ago

  • Description updated (diff)
  • Status changed from MODIFIED to CLOSED - DUPLICATE

Also available in: Atom PDF