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

Replace KV v2 List route with wildcard instead of dynamic segment #23620

Merged
merged 7 commits into from
Oct 13, 2023

Conversation

Monkeychip
Copy link
Contributor

@Monkeychip Monkeychip commented Oct 11, 2023

Fixes #22539.

We were using a dynamic segment in the middle of a URL. This would be fine if that segment did not have the potential to contain a forward slash. In routing this forward slash was encoded by the router, but when you copy pasted that URL it was decoded and led to incorrect routes.

The fix was to replace this with a wildcard letting the router know to expect things such as forward slashes.

Screen share of the fix below

kv-fx.mov

@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Oct 11, 2023
@Monkeychip Monkeychip added this to the 1.15.1 milestone Oct 12, 2023
@Monkeychip Monkeychip added ui bug Used to indicate a potential bug labels Oct 12, 2023
@Monkeychip Monkeychip marked this pull request as ready for review October 12, 2023 16:40
@Monkeychip Monkeychip changed the title WIP Replace KV v2 List route with wildcard instead of dynamic segment Oct 12, 2023
@github-actions
Copy link

Build Results:
All builds succeeded! ✅

Copy link
Contributor

@zofskeez zofskeez left a comment

Choose a reason for hiding this comment

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

🎉

@Monkeychip Monkeychip merged commit 27170b6 into main Oct 13, 2023
68 checks passed
@Monkeychip Monkeychip deleted the ui/VAULT-20812/bug-fix-kv-list-encode branch October 13, 2023 17:01
Monkeychip added a commit that referenced this pull request Oct 16, 2023
…3620)

* initial work on the LIST route.

* fix

* changelog

* add s

* add in prepending forward slash
Monkeychip added a commit that referenced this pull request Oct 17, 2023
…3620) (#23668)

* initial work on the LIST route.

* fix

* changelog

* add s

* add in prepending forward slash
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 hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed ui
Projects
None yet
2 participants