Project

Profile

Help

Task #5932

closed

Pulp 3 Python client requires undocumented safe_chars_for_path_param configuration

Added by cottsay about 4 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 77
Quarter:

Description

When using the generated Python API client with Pulp 3, I was unable to reference any entities by the `pulp_href` because the client would URL-encode all of the slashes in the HREF when combining it with the base URL. This led to a `LocationParseException` coming out of `urllib3` every time.

Setting `safe_chars_for_path_param = '/'` in the client configuration worked around the issue, but since the client isn't usable without this magic configuration, it should be either set by default or clearly documented.

The pulp-openapi-generator[0] project should be updated to include `safe_chars_for_path_param = '/'` as the default setting.

[0] https://github.com/pulp/pulp-openapi-generator

Also available in: Atom PDF