Task #5932
closedPulp 3 Python client requires undocumented safe_chars_for_path_param configuration
100%
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.
Updated by daviddavis over 4 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 63
Adding to sprint per triage.
Updated by dkliban@redhat.com about 4 years ago
- Description updated (diff)
- Category deleted (
23)
Updated by dkliban@redhat.com about 4 years ago
- Tracker changed from Issue to Task
- % Done set to 0
- Groomed changed from No to Yes
- Sprint Candidate changed from No to Yes
Added by gerrod almost 4 years ago
Updated by gerrod almost 4 years ago
- Status changed from NEW to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp-openapi-generator|b66a2f2f85944ce6c41727d907356f4707c36c69.
Updated by ttereshc over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Adds 'safe_char_for_path_param = '/'' to Python client defaults
fixes #5932 https://pulp.plan.io/issues/5932