You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Mike Rheinheimer (JIRA)" <ji...@apache.org> on 2009/10/09 18:03:31 UTC

[jira] Created: (WINK-214) UriTemplateMatcher should tolerate empty @PathParam segments

UriTemplateMatcher should tolerate empty @PathParam segments
------------------------------------------------------------

                 Key: WINK-214
                 URL: https://issues.apache.org/jira/browse/WINK-214
             Project: Wink
          Issue Type: Bug
          Components: Common
    Affects Versions: 0.1
            Reporter: Mike Rheinheimer
             Fix For: 0.1


If a @Path is specified as such:

@Path("/first{firstParams:.*}/second{secondParams:.*}")

We should be able to tolerate empty path part of the PathParam.  In other words, if only matrix params are sent, we should tolerate that:

http://localhost/p/first;name=bob/second;eyes=blue

Please see patch with test.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WINK-214) UriTemplateMatcher should tolerate empty @PathParam segments

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Rheinheimer updated WINK-214:
----------------------------------

        Fix Version/s:     (was: 0.1)
                       0.2
    Affects Version/s:     (was: 0.1)
                       0.2

> UriTemplateMatcher should tolerate empty @PathParam segments
> ------------------------------------------------------------
>
>                 Key: WINK-214
>                 URL: https://issues.apache.org/jira/browse/WINK-214
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 0.2
>            Reporter: Mike Rheinheimer
>             Fix For: 0.2
>
>         Attachments: WINK_214.patch
>
>
> If a @Path is specified as such:
> @Path("/first{firstParams:.*}/second{secondParams:.*}")
> We should be able to tolerate empty path part of the PathParam.  In other words, if only matrix params are sent, we should tolerate that:
> http://localhost/p/first;name=bob/second;eyes=blue
> Please see patch with test.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WINK-214) UriTemplateMatcher should tolerate empty @PathParam segments

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Rheinheimer closed WINK-214.
---------------------------------


> UriTemplateMatcher should tolerate empty @PathParam segments
> ------------------------------------------------------------
>
>                 Key: WINK-214
>                 URL: https://issues.apache.org/jira/browse/WINK-214
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 1.0
>            Reporter: Mike Rheinheimer
>            Assignee: Bryant Luk
>             Fix For: 1.0
>
>         Attachments: WINK_214.patch
>
>
> If a @Path is specified as such:
> @Path("/first{firstParams:.*}/second{secondParams:.*}")
> We should be able to tolerate empty path part of the PathParam.  In other words, if only matrix params are sent, we should tolerate that:
> http://localhost/p/first;name=bob/second;eyes=blue
> Please see patch with test.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WINK-214) UriTemplateMatcher should tolerate empty @PathParam segments

Posted by "Nick Gallardo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Gallardo resolved WINK-214.
--------------------------------

    Resolution: Fixed

> UriTemplateMatcher should tolerate empty @PathParam segments
> ------------------------------------------------------------
>
>                 Key: WINK-214
>                 URL: https://issues.apache.org/jira/browse/WINK-214
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 0.2
>            Reporter: Mike Rheinheimer
>            Assignee: Bryant Luk
>             Fix For: 0.2
>
>         Attachments: WINK_214.patch
>
>
> If a @Path is specified as such:
> @Path("/first{firstParams:.*}/second{secondParams:.*}")
> We should be able to tolerate empty path part of the PathParam.  In other words, if only matrix params are sent, we should tolerate that:
> http://localhost/p/first;name=bob/second;eyes=blue
> Please see patch with test.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WINK-214) UriTemplateMatcher should tolerate empty @PathParam segments

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Rheinheimer updated WINK-214:
----------------------------------

    Attachment: WINK_214.patch

> UriTemplateMatcher should tolerate empty @PathParam segments
> ------------------------------------------------------------
>
>                 Key: WINK-214
>                 URL: https://issues.apache.org/jira/browse/WINK-214
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 0.2
>            Reporter: Mike Rheinheimer
>             Fix For: 0.2
>
>         Attachments: WINK_214.patch
>
>
> If a @Path is specified as such:
> @Path("/first{firstParams:.*}/second{secondParams:.*}")
> We should be able to tolerate empty path part of the PathParam.  In other words, if only matrix params are sent, we should tolerate that:
> http://localhost/p/first;name=bob/second;eyes=blue
> Please see patch with test.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-214) UriTemplateMatcher should tolerate empty @PathParam segments

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764191#action_12764191 ] 

Hudson commented on WINK-214:
-----------------------------

Integrated in Wink-Trunk-JDK1.5 #212 (See [http://hudson.zones.apache.org/hudson/job/Wink-Trunk-JDK1.5/212/])
    Tolerate empty @PathParam segments

See []

Thanks Mike Rheinheimer for the fix and
Jaroslav Libak for reporting the issue.


> UriTemplateMatcher should tolerate empty @PathParam segments
> ------------------------------------------------------------
>
>                 Key: WINK-214
>                 URL: https://issues.apache.org/jira/browse/WINK-214
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 0.2
>            Reporter: Mike Rheinheimer
>             Fix For: 0.2
>
>         Attachments: WINK_214.patch
>
>
> If a @Path is specified as such:
> @Path("/first{firstParams:.*}/second{secondParams:.*}")
> We should be able to tolerate empty path part of the PathParam.  In other words, if only matrix params are sent, we should tolerate that:
> http://localhost/p/first;name=bob/second;eyes=blue
> Please see patch with test.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-214) UriTemplateMatcher should tolerate empty @PathParam segments

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764098#action_12764098 ] 

Mike Rheinheimer commented on WINK-214:
---------------------------------------

For reference, the email in the user list is:  http://mail-archives.apache.org/mod_mbox/incubator-wink-user/200910.mbox/%3C54E8BE02CCDA404A8D6FB4538A32DA905E59676347@GVW1120EXC.americas.hpqcorp.net%3E

> UriTemplateMatcher should tolerate empty @PathParam segments
> ------------------------------------------------------------
>
>                 Key: WINK-214
>                 URL: https://issues.apache.org/jira/browse/WINK-214
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 0.2
>            Reporter: Mike Rheinheimer
>             Fix For: 0.2
>
>         Attachments: WINK_214.patch
>
>
> If a @Path is specified as such:
> @Path("/first{firstParams:.*}/second{secondParams:.*}")
> We should be able to tolerate empty path part of the PathParam.  In other words, if only matrix params are sent, we should tolerate that:
> http://localhost/p/first;name=bob/second;eyes=blue
> Please see patch with test.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (WINK-214) UriTemplateMatcher should tolerate empty @PathParam segments

Posted by "Nick Gallardo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Gallardo reassigned WINK-214:
----------------------------------

    Assignee: Bryant Luk

Assigning to Bryant since he committed the fix.

> UriTemplateMatcher should tolerate empty @PathParam segments
> ------------------------------------------------------------
>
>                 Key: WINK-214
>                 URL: https://issues.apache.org/jira/browse/WINK-214
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 0.2
>            Reporter: Mike Rheinheimer
>            Assignee: Bryant Luk
>             Fix For: 0.2
>
>         Attachments: WINK_214.patch
>
>
> If a @Path is specified as such:
> @Path("/first{firstParams:.*}/second{secondParams:.*}")
> We should be able to tolerate empty path part of the PathParam.  In other words, if only matrix params are sent, we should tolerate that:
> http://localhost/p/first;name=bob/second;eyes=blue
> Please see patch with test.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.