Skip to content

fix http gaetway route segments strict matching#2479

Open
alstanchev wants to merge 2 commits into
eclipse-ditto:masterfrom
boschglobal:bugfix/route-segments
Open

fix http gaetway route segments strict matching#2479
alstanchev wants to merge 2 commits into
eclipse-ditto:masterfrom
boschglobal:bugfix/route-segments

Conversation

@alstanchev

Copy link
Copy Markdown
Contributor

This PR addresses a strange behavior where if for example
/devops/logging/gaDeway
is called it is correctly timing out as there is no such service but if we add a letter to the 'logging' segment
/devops/loggingA/gaDeway
the logging part is matched as a prefix then the rest 'A/gaDeway' is passed along but since the next handle checks for leading slash the segment is dropped and the call is handled as it was
/devops/logging

This behavior can potentially reached at any place where no strict segment matching is done.

System tests run:
https://github.com/eclipse-ditto/ditto/actions/runs/28428560314

@alstanchev alstanchev requested a review from thjaeckle June 30, 2026 11:27
@alstanchev alstanchev changed the title fix route segments strict matching fix http gaetway route segments strict matching Jun 30, 2026
alstanchev and others added 2 commits June 30, 2026 15:06
Signed-off-by: Aleksandar Stanchev <aleksandar.stanchev@bosch.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Cover the strict full-segment matching contract: exact match, trailing
slash, typo-suffix rejection, sibling backtracking, exact unmatched
remainder delegation, case-sensitivity, root/empty path, shorter-request
rejection and decode-then-compare behavior.

Signed-off-by: Aleksandar Stanchev <aleksandar.stanchev@bosch.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@alstanchev alstanchev force-pushed the bugfix/route-segments branch from fba22ee to 1ff6db1 Compare June 30, 2026 12:06
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