Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jersey-dev] UriInfo ambiguity

Hi there

yes, I use jersey + grizzly and those two method invocations return different values (see code below).

1.PNG
2.PNG
a call to the following URI http://localhost:8080/myapp/uri_info prints false !!!

and the console output is as the following:
3.PNG

what's more interesting though is that the method test() gets called twice for a single request !!!

On Mon, Jan 7, 2019 at 11:02 PM Jan Supol <jan.supol@xxxxxxxxxx> wrote:
Hi Rawand,

Do those two invocations not return the same value?

If you are using Jersey and you got different values, please provide us
a reproducible test case, as our test case returns the same values.

Thanks,

Jan

On 07.01.2019 7:45, rawand takna wrote:
> Hi All
>
> shouldn't those two method invocations return same value?
>
> *uriInfo.resolve*(URI.create("*xyz*")).toString();
> *uriInfo.resolve*(URI.create("*/xyz*")).toString();
>
> -Rawand
>
> _______________________________________________
> jersey-dev mailing list
> jersey-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/jersey-dev
_______________________________________________
jersey-dev mailing list
jersey-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jersey-dev

Back to the top