Apicurio/apicurio-registry

UI does not load artifact tabs with URL reserved characters in name

Closed this issue · 2 comments

Description

Registry
Version
: "latest"
Persistence type: "sql"

Artifact names can include URL-reserved characters like ?, /, etc.

In the UI, when navigating to an artifact from the list, the artifact's name is properly encoded:
CleanShot 2024-11-01 at 14 52 23

But clicking on tabs (ex. Version) removes that URL encoding from the address and the page fails to load (including navigating back to the original Overview tab):
CleanShot 2024-11-01 at 14 56 11

Manually fixing the URL encoding in the address fixes the issue:
CleanShot 2024-11-01 at 14 56 45

Environment

Registry running in Docker via docker-compose examples.
UI using Chrome Version 130.0.6723.70 (Official Build) (arm64)

Steps to Reproduce

  1. Create an artifact with a URL-reserved character (ex. ?, /, etc.) in its name
  2. Navigate to the artifact from the list and observe that it loads and that the name is URL encoded in the address bar
  3. Navigate to one of the tabs (Overview, Versions, Branches)
  4. Notice that the name is no longer URL encoded in the address bar and the page fails to load
  5. Manually URL encoding the characters in the URL and navigating to it manually works as expected

Expected vs Actual Behaviour

Page loads (artifact name is always URL encoded)

Logs

Thank you for reporting an issue!

Pinging @jsenko, @EricWittmann to respond or triage.

Fixed in:

Thanks @j-setiawan