swimos / swim

Full stack application platform for building stateful microservices, streaming APIs, and real-time UIs
https://www.swimos.org
Apache License 2.0
488 stars 41 forks source link

Uris not retrieved correctly when a UriPattern with same prefix as Uris are added to UriMappers #130

Closed ajay-gov closed 1 year ago

ajay-gov commented 1 year ago

Add a Uri with a path, say "/a/x" to the UriMapper. Update the UriMapper with a UriPattern with the same prefixed as the Uri, say "/a/:b/c/:d".
mapper.get("/a/x") and mapper.get("/a/b/c/d") work. mapper.get("/a/x/c/d") returns a null value when it should match the UriPattern /a/:b/c/:d