users@jersey.java.net

[Jersey] Re: Jersey oAuth services provider -> ignorePattern not working

From: Martin Matula <martin.matula_at_oracle.com>
Date: Wed, 20 Jul 2011 14:26:22 +0200

Please see my other e-mail - you are exposing the app twice - once
through the filter and once through the servlet. I think that's creating
a mess - please remove the servlet part from your web.xml as indicated
in the other e-mail I sent.
Martin

On 20.7.2011 14:19, corben80_at_yahoo.it wrote:
> Additional information:
>
> With further tests and reimplementing the OAuthServerFilter I've
> noticed that the problem is only partially on the ignorePattern.
>
> What happens is that modifying the ignorePattern as follows:
>
> <param-value>oAuth/requestToken|oAuth/authorize|oAuth/accessToken</para
> m-value>
>
> It let the request pass, however I get a 404 Not Found error. I'm sure
> that the filter is identifying that the pattern should be ignored,
> because this if statement is true:
> // do not filter if the request path matches pattern to ignore
> if (match(ignorePathPattern, request.getPath())) {
> return request;
> }
>
> However, when they are in the "/oAuth/*" folder, nor my /services/*,
> nor /requestToken, /authorize, nor /accessToken are resources found.
> (of course I mean /oAuth/services, etc.). In other words I see the
> filter filtering the resources and letting them pass, because they
> belong to the ignore pattern, but then they don't work and return a 404
> error.
>
> If I put things back in the /* root folder, everything can be accessed.
>
> Any idea of why this happen?
> Corben