Skip to content

A trailing slash binds no path variable - #20

Merged
noha merged 1 commit into
mainfrom
variable-segment-skips-trailing-slash
Oct 28, 2026
Merged

noha merged 1 commit into
mainfrom
variable-segment-skips-trailing-slash

Conversation

@noha

@noha noha commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

ZnUrl keeps a trailing slash as the character $/ in the last path segment. HOPVariableSegment>>matches: accepted anything but nil, so GET /api/users/ bound userId to $/ and ApptiveBase failed in databasePathForId: with "Instances of Character are not indexable" - a 500 and a snapdump instead of a 404.

A variable now matches only a string, so such a path finds no route and HOPServerDelegate answers 404.

ZnUrl keeps a trailing slash as the character $/ in the last path
segment. HOPVariableSegment>>matches: accepted anything but nil, so
GET /api/users/ bound userId to $/ and ApptiveBase failed in
databasePathForId: with "Instances of Character are not indexable" -
a 500 and a snapdump instead of a 404.

A variable now matches only a string, so such a path finds no route
and HOPServerDelegate answers 404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noha
noha merged commit 5f48621 into main Oct 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant