-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[TT-15182] APIs returning Not Found error, with different behavior between Classic and OAS APIs if custom domains are enabled #7716
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
base: master
Are you sure you want to change the base?
[TT-15182] APIs returning Not Found error, with different behavior between Classic and OAS APIs if custom domains are enabled #7716
Conversation
…ith-different-behavior-between-classic-and-oas-ap-is-if-custom-domains-are-enabled
|
This pull request resolves a critical routing bug where APIs with similar listen path prefixes (e.g., The fix introduces a more precise matching mechanism that is activated when Files Changed Analysis
Architecture & Impact Assessment
Routing Logic Flowgraph TD
subgraph "Old Logic (Greedy PathPrefix)"
A[Request for /api-plus] --> B{Router};
B --> C["/api handler (matches first)"];
B --> D["/api-plus handler (also matches)"];
C --> E[Incorrect Route / 404];
end
subgraph "New Logic (Strict MatcherFunc)"
F[Request for /api-plus] --> G{Router};
G --|/api|--> route(route) --> H{"Path == \"/api\" OR HasPrefix \"/api/\"?"};
H -- No --> I["/api-plus handler"];
I --> J[Correct Route];
end
Scope Discovery & Context ExpansionThe changes are well-localized to the gateway's API loading and routing logic. The key contextual element is the Metadata
Powered by Visor from Probelabs Last updated: 2026-01-30T14:10:39.348Z | Triggered by: pr_updated | Commit: 6229830 💡 TIP: You can chat with Visor using |
|
API Changes no api changes detected |
✅ Security Check PassedNo security issues found – changes LGTM. Architecture Issues (1)
✅ Performance Check PassedNo performance issues found – changes LGTM. Quality Issues (2)
Powered by Visor from Probelabs Last updated: 2026-01-30T14:10:42.292Z | Triggered by: pr_updated | Commit: 6229830 💡 TIP: You can chat with Visor using |
…nd-error-with-different-behavior-between-classic-and-oas-ap-is-if-custom-domains-are-enabled' into TT-15182-ap-is-returning-not-found-error-with-different-behavior-between-classic-and-oas-ap-is-if-custom-domains-are-enabled
Requests to APIs return Not Found errors even if they exist. The behavior is different between Classic and OAS APIs depending on whether custom domains are enabled.
This affects organizations using multiple APIs with similar path prefixes
Legitimate API requests return 404 Not Found errors
Description
Related Issue
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist
Ticket Details
TT-15182
Generated at: 2026-01-30 14:07:31