-
Notifications
You must be signed in to change notification settings - Fork 142
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
Evaluate how reference-names with slashes can be properly handled in human-facing URLs #584
Comments
From two experiments against GH: |
Another point: Even though using |
* Use the right RegEx constant for resolving path parameters for GET /trees/{ref} * Other endpoints appear to use the right RegEx constant already. * Correct URL path parameter RegEx to account for tools encoding the `@` char as `%40`. * Drop the spurious `?` at the end of the RegEx Fixes projectnessie#584
* Use the right RegEx constant for resolving path parameters for GET /trees/{ref} * Other endpoints appear to use the right RegEx constant already. * Correct URL path parameter RegEx to account for tools encoding the `@` char as `%40`. * Drop the spurious `?` at the end of the RegEx Fixes projectnessie#584
* Use the right RegEx constant for resolving path parameters for GET /trees/{ref} * Other endpoints appear to use the right RegEx constant already. * Correct URL path parameter RegEx to account for tools encoding the `@` char as `%40`. * Drop the spurious `?` at the end of the RegEx Fixes #584
Reference names (branches, tags) can contain slashes. The REST API requires those reference names to be properly escaped, which is fine, because it's intended for machine-to-machine communication.
But users (humans) probably want "nice to read" URLs like
https://my-nessie-server-ui/tree/my/project/branch/name/commits
in the UI, which reads better thanhttps://my-nessie-server-ui/tree/my%2fproject%2fbranch%2fname/commits
The text was updated successfully, but these errors were encountered: