users@jersey.java.net

[Jersey] JerseyUriBuilder.path(java.lang.String) not work!

From: joey.lv <joey.lv_at_7road.com>
Date: Wed, 7 May 2014 16:25:12 +0800

hi, all

Jersey 2.7 / 2.8

if
uriInfo.getBaseUriBuilder() = http://localhost:8080/rest/,

then
uriInfo.getBaseUriBuilder().path("../index.jsp").build() should return http://localhost:8080/index.jsp instead of http://localhost:8080/rest/../index.jsp


but somebody said it worked in older version:

http://stackoverflow.com/questions/15145088/jersey-redirect-outside-of-jersey-root