users@jersey.java.net

[Jersey] Re: default regex for path variables

From: Waclaw Kusnierczyk <waclaw.kusnierczyk_at_gmail.com>
Date: Wed, 28 Jan 2015 17:49:01 +0100

Thanks. Can't see your issue picked up.

I believe the issue I reported is in the doc only---after all, the default
regex clearly seems to match more than just one character.

vQ

On Wed, Jan 28, 2015 at 4:40 PM, cowwoc <cowwoc_at_bbs.darktech.org> wrote:

> Waclaw,
>
> See https://java.net/jira/browse/JAX_RS_SPEC-463 for a related bug report.
>
> The current regex definitely seems wrong.
>
> Gili
>
>
> On 28/01/2015 5:37 AM, Waclaw Kusnierczyk wrote:
>
>> In sec. 3.1.1 of https://jersey.java.net/documentation/latest/jaxrs-
>> resources.html, you state that the default regular expression for path
>> variables is "[^/]+?". This seems wrong. I assume what you mean is "one
>> or more non-slash characters"; what the above says, is "one or more
>> non-slash characters, but as few as possible"---effectively, just one
>> non-slash character. Didn't you mean "[^/]+"?
>>
>> Best,
>> Wacek
>>
>
>