-
Notifications
You must be signed in to change notification settings - Fork 71
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
Gemini doesn't handle leading slashes #599
Comments
Hrm, that should have been fixed with Islandora/chullo#64 ...I'll have to look closer at Gemini to make sure. |
@ruebot oh maybe I didn't pull something in correctly? |
@ruebot oh actually this wouldn't be that. This service never touches Fedora or Drupal, so Chullo wouldn't be involved. |
It's right here https://github.com/Islandora-CLAW/Crayfish/blob/master/Gemini/src/app.php#L23-L26
But an
That is stripping the front slash off, so when you get to the Path Mapping service you always get an item without a leading slash. So I would say we should just remove the leading slash in the insert function. |
Either that or always add one |
good catch @whikloj. i'd sanitize input for consistency. it think i'd always remove it, since the base url is supposed to end with a slash. |
Resolved with Islandora/Crayfish@4b55843 |
When testing Gemini I noticed that if your paths have a preceding slash they can be added but not queried.
For example
But
Or more directly
We should either deal with preceding slashes or throw an error when adding them.
Thoughts?
The text was updated successfully, but these errors were encountered: