You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Rice Yeh (JIRA)" <ji...@apache.org> on 2010/07/10 06:11:49 UTC

[jira] Updated: (CXF-2888) [JAX-RS] URI template's final group is not correctly caught

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

Rice Yeh updated CXF-2888:
--------------------------

       Original Estimate:     (was: 1h)
      Remaining Estimate:     (was: 1h)
    Estimated Complexity: Moderate  (was: Novice)
             Description: 
At line 180 of org.apache.cxf.jaxrs.model.URITemplate, the final group is not correctly caught. It does not assume uri template could also contains group in it. It should be change to the following statement:

String finalGroup = m.group(m.groupCount());

For this problem's source, refer to http://cxf.547215.n5.nabble.com/JAX-RS-request-address-extension-mapping-td1045400.html#a1045400

The code assigning variable value at line 173 also will have problem when there are groups inside the uri template itself.

Regards,
Rice

  was:
At line 180 of org.apache.cxf.jaxrs.model.URITemplate, the final group is not correctly caught. It does not assume uri template could also contains group in it. It should be change to the following statement:

String finalGroup = m.group(m.groupCount());

For this problem's source, refer to http://cxf.547215.n5.nabble.com/JAX-RS-request-address-extension-mapping-td1045400.html#a1045400


> [JAX-RS] URI template's final group is not correctly caught
> -----------------------------------------------------------
>
>                 Key: CXF-2888
>                 URL: https://issues.apache.org/jira/browse/CXF-2888
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.2.9
>            Reporter: Rice Yeh
>
> At line 180 of org.apache.cxf.jaxrs.model.URITemplate, the final group is not correctly caught. It does not assume uri template could also contains group in it. It should be change to the following statement:
> String finalGroup = m.group(m.groupCount());
> For this problem's source, refer to http://cxf.547215.n5.nabble.com/JAX-RS-request-address-extension-mapping-td1045400.html#a1045400
> The code assigning variable value at line 173 also will have problem when there are groups inside the uri template itself.
> Regards,
> Rice

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