Skip to content

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

Merged
Monkeychip merged 7 commits intomainfrom
ui/VAULT-20812/bug-fix-kv-list-encode
Oct 13, 2023
Merged

Replace KV v2 List route with wildcard instead of dynamic segment#23620
Monkeychip merged 7 commits intomainfrom
ui/VAULT-20812/bug-fix-kv-list-encode

Conversation

@Monkeychip
Copy link
Copy Markdown
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
Copy Markdown

Build Results:
All builds succeeded! ✅

Copy link
Copy Markdown
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
@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

Development

Successfully merging this pull request may close these issues.

Vault 1.15.0 - Browsing kv's via /ui/ is fine but trying to share a listing url returns 404 (So does pressing F5).

2 participants