On Nov 3, 2008, at 9:56 PM, Tim Pesce wrote:
> On Nov 3, 2008, at 1:02 PM, Paul Sandoz wrote:
>
>> Hi Tim,
>>
>> On Nov 3, 2008, at 8:34 PM, Tim Pesce wrote:
>>
>>> I have a scenario where I'd like to extract a path parameter into
>>> a query parameter. So URIs of the form:
>>>
>>> /context/scope/{scopeid}/resource
>>>
>>> would become:
>>>
>>> /context/resource?scope=scopeid
>>>
>>> My initial approach was to create a ContainerRequestFilter and
>>> modify the request's URIs via ContainerRequest.setUris(). However,
>>> this approach does not seem viable because the path is calculated
>>> prior to filter invocation (from
>>> WebApplicationImpl._handleRequest()):
>>>
>>
>> Drat, that is a bug. The path needs to be obtained after filters
>> have been applied. Also the request filter can return a new request
>> so that needs to be catered for as well. Could you log an issue?
>>
>
> Will do!
>
Fixed.
Paul.