Skip to content

fix: preserve reserved characters in query filters - #62

Open
Shubham-Padkonde wants to merge 1 commit into
dell:mainfrom
Shubham-Padkonde:fix/encode-query-parameter-values
Open

Shubham-Padkonde wants to merge 1 commit into
dell:mainfrom
Shubham-Padkonde:fix/encode-query-parameter-values

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

Filters containing reserved URL characters are currently concatenated directly into query strings. For example, eq,name,R&D #1 becomes a different filter and introduces a fragment, while + and %20 in names are decoded as spaces.

Encode query keys and values with urllib.parse.urlencode, retaining repeated list parameters, omission of None values, and the existing comma-separated filter syntax. This fixes the shared helper used by managed devices, deployments, service templates, and firmware repositories.

Validation: all 515 tests pass, including two regressions that fail before the change. Pylint reports 10/10 for both changed files; git diff --check passes. No live PowerFlex appliance was used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant