Actions
Task #5932
closedPulp 3 Python client requires undocumented safe_chars_for_path_param configuration
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.
Actions
Adds 'safe_char_for_path_param = '/'' to Python client defaults
fixes #5932 https://pulp.plan.io/issues/5932