Accept URLs without final "/" #30
Labels
No labels
ACE3
ASAP
Admin
Some Time
Soon(ish)
accepted
bug
collections
dance-lists
discussion
duplicate
easy
enhancement
fixed
ignored
schema-change
wont-fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Strathspey/ace4#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
[Eric Ferguson]
URLs used on "my.strathspey" sometimes require a final "/". For instance
the URL http://my.strathspey.org/dd/cribsource/2/ works fine
the URL http://my.strathspey.org/dd/cribsource/2 does not.
Proposal: add the "/" automatically if it is missing.
This now works for resources whose paths match one of the URL patterns except
<rpath:path>. Dealing with this case is difficult because we need to accept both paths that end with a slash (like…/u/anselm/stories/reelofthe51st/) and paths that lead to non-ACE resources (like/…/u/anselm/withhat.jpg). The current heuristic is that<rpath:path>will match paths ending either with a slash or else with a period and three or more alphanumeric characters (and no slash). Anything else is subject to theAPPEND_SLASHmechanism.The approach from the previous comment fails for resources with a size specification, as in
foo.jpg@200x100, which still get a slash appended. I changed therpathmatcher to take this into account.