Von: jaxrs-dev-bounces@xxxxxxxxxxx [mailto:jaxrs-dev-bounces@xxxxxxxxxxx] Im Auftrag von Jonathan Gallimore
Gesendet: Freitag, 24. Januar 2020 11:53
An: jaxrs-dev@xxxxxxxxxxx
Betreff: [jaxrs-dev] Spec clarification: UriBuilder
Hopefully this isn't daft question, but I'd appreciate some help. I have a scenario where UriBuilder is being used to construct a file URI, and append a path to it:
UriBuilder.fromUri("file:///~/calendar").path("extra").build().toString()
I've tried this with a couple of implementations, specifically Jersey and CXF, with differing results - Jersey returns file:///~/calendar/extra, which is what I personally would expect. CXF on the other hand picks up "///~/calendar" as a "schemeSpecificPart" of the URI, and used that, and does not append the path.
Could you clarify what behaviour you'd expect in this scenario, and / or point me at the relevant part of the spec document (I'm struggling to find a reference there too).
I'd be very happy to contribute any appropriate updates to either documentation or TCK tests if necessary.
--