Hello all,
We found some of our resources stopped working whilst upgrading from an elderly version of UI up to the latest. After some debugging, we think that the problem is a combination of the NormaliseUriHandler and the BasePathHandler misbehaving.
Let's say the BasePath is set to /foo/. The BasePathHandler is meant to remove /foo/ from all requests so you don't have to specify the whole path in the resource -- eg, /foo/bar will be converted to just bar.
The NormaliseUriHandler kicks in beforehand though, and will change any request to /foo/ to be /foo, which obviously doesn't match the BasePath.
This is an edge case, but it's quite annoying for the first request!
We monkey-patched the RestApplication and swapped the order of the two handlers, which seems to fix the issue, but we're not sure of the purpose of the normalising in the first place.
Any thoughts?
Stuart