Skip to content

Ocelot can't match placeholders between slashes #2199

@ggnaegi

Description

@ggnaegi

Expected Behavior / New Feature

Ocelot should be capable of matching paths that contain placeholders embedded between slashes, such as:
/api/invoices_{url0}/{url1}-{url2}_abcd/{url3}?urlId={url4}.

Actual Behavior / Motivation for New Feature

Currently, Ocelot cannot match placeholders embedded between slashes. For example: /api/test/{url}-2 -> request: /api/test/a-2 -> the result will incorrectly return {url} = a-2.

Steps to Reproduce the Problem

  1. Try any template with placeholders embedded between slashes

Metadata

Metadata

Assignees

Labels

Nov'24November 2024 releaseRoutingOcelot feature: RoutingbugIdentified as a potential bugmergedIssue has been merged to dev and is waiting for the next release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions