-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Nov'24November 2024 releaseNovember 2024 releaseRoutingOcelot feature: RoutingOcelot feature: RoutingacceptedBug or feature would be accepted as a PR or is being worked onBug or feature would be accepted as a PR or is being worked onbugIdentified as a potential bugIdentified as a potential bugmergedIssue has been merged to dev and is waiting for the next releaseIssue has been merged to dev and is waiting for the next release
Milestone
Description
Expected Behavior / New Feature
I expected the route to hit
Actual Behavior / Motivation for New Feature
Route didn't hit. Got 400 error .
Steps to Reproduce the Problem
- Updated
Ocelot
andOcelot.Cache.CacheManager
from 23.3.6 to 23.4.0 - I called this from my frontend. Notice the uppercase letters of the request issued.
getEntityRecords(id: number): Observable<EventLogData[]> {
const url = 'https://blablabla.azurecontainerapps.io/Entities/${id}/Events/RecordsData';
return this.httpClient.get<EventLogData[]>(url);
}
ocelot.json looks like this
{
"Routes": [
{
"DownstreamPathTemplate": "/api/entities/{id}/events/recordsdata",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "blabla-service.net",
"Port": 443
}
],
"UpstreamPathTemplate": "/entities/{id}/events/recordsdata",
"UpstreamHttpMethod": [
"GET"
],
"FileCacheOptions": {
"TtlSeconds": 0,
"Region": "UserCache"
},
"RouteClaimsRequirement": {
"Claims": "ReadEntities"
}
}
],
"GlobalConfiguration": {
"BaseUrl": "https://blablabla.azurecontainerapps.io"
}
}
- What's interesting is when I send the request
const url = 'https://blablabla.azurecontainerapps.io/entities/${id}/events/recordsdata';
i.e same case as defined in ocelot it worked. The docs mention that it is case-insensitive by default. Is this expected behavior in 23.4.0 or have i missed something.
Specifications
- Version: 23.4.0
- Platform: .NET 8
- Subsystem: Windows
ggnaegi and gabriel-alecu
Metadata
Metadata
Assignees
Labels
Nov'24November 2024 releaseNovember 2024 releaseRoutingOcelot feature: RoutingOcelot feature: RoutingacceptedBug or feature would be accepted as a PR or is being worked onBug or feature would be accepted as a PR or is being worked onbugIdentified as a potential bugIdentified as a potential bugmergedIssue has been merged to dev and is waiting for the next releaseIssue has been merged to dev and is waiting for the next release