Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: fix secret with % in path #20430

Merged
merged 3 commits into from
May 1, 2023
Merged

UI: fix secret with % in path #20430

merged 3 commits into from
May 1, 2023

Conversation

hashishaw
Copy link
Contributor

Fixes #11616 where the UI fails to list or view details for secrets with % in the path name. This is because the path encoder and decoder we are using does not encode or decode % in the path. We have replaced this library with encodeUriComponent and decodeUriComponent for each of the path pieces.

After fix:
List with %
Secet show with %

Before:
Screenshot 2023-04-28 at 1 45 02 PM

@hashishaw hashishaw added ui bug Used to indicate a potential bug labels Apr 28, 2023
@hashishaw hashishaw added this to the 1.14 milestone Apr 28, 2023
@hashishaw hashishaw marked this pull request as ready for review April 28, 2023 20:16
Copy link
Contributor

@Monkeychip Monkeychip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great solution. Thank you for tackling!

@hashishaw hashishaw merged commit 5e45d5c into main May 1, 2023
@hashishaw hashishaw deleted the ui-secret-with-%-fix branch May 1, 2023 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WEB UI fails to list secrets when the path contains a % character
2 participants