You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2013/07/13 22:14:01 UTC

[jira] [Closed] (WINK-122) PathParams lost when using sub resource locators

     [ https://issues.apache.org/jira/browse/WINK-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek closed WINK-122.
---------------------------------

    
> PathParams lost when using sub resource locators
> ------------------------------------------------
>
>                 Key: WINK-122
>                 URL: https://issues.apache.org/jira/browse/WINK-122
>             Project: Wink
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.1
>            Reporter: Jesse Ramos
>            Assignee: Bryant Luk
>            Priority: Minor
>             Fix For: 1.0
>
>         Attachments: WINK-122-patch.txt
>
>
> Currently you have a single chance to read path parameters in UriInfoImpl.  Once read the first time, they are cached in memory and are based on the current matched variables in the SearchResult.
> When using subresources locators, if the sub resource locator off the root resource has the @PathParam annotation, the parameters are read at this point based off the matched variables of the sub resource locater method.  If the target method on the sub resource returned also has the @PathParam annotation, the parameters are not injected.
> Attaching a patch that add a resetPathParameters() method on UriInfoImpl and puts the impl on the message context.  If the sub resource target method has variables and UriInfoImpl is on the context, the reset method will be called, clearing the cache so that the parameters are reloaded based on the new current matched variables.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira