Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-812

Issues with using RegEx and Escaping in the @Param

XMLWordPrintable

    While trying to integrate OData4J project with Resteasy I found couple issues with @Path handling

    The following patterns are not supported,

    1) @Path("{count: [$]count}")    = {uri}/$count
    2) @Path("{first: \\$}value")    = {uri}/$value
    

    because '$' is not properly being escaped currently

    3) @Path("{entitySetName: [^/()]+?}{ignore: (?:\\(\\))?}")
    

    in the above pattern the grouping characters inside '[...]' are counted towards the overall group count, where only grouping characters outside [...] block in regex should be counted.

    These changed are required for Teiid project to support "odata" protocol. I will be submitting a pull request shortly.

            weli@redhat.com Weinan Li
            rhn-engineering-rareddy Ramesh Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: