Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-7946

[LP - RHV product] (7.1.0) Regex with parenthesis doesn't work with resource locator

    XMLWordPrintable

Details

    Description

      When a @Path annotation that contains regex with parenthesis is applied to a resource locator it doesn't work correctly. For example, the following works correctly:

      @GET
      @Path("{name: (works|WORKS)}")
      public Response works(@PathParam("name") String name) {
          SubResource sub = new SubResource(name);
          return sub.get();
      }
      

      But the following does not, it returns a 404 error response:

      @Path("{name: (fails|FAILS)}")
      public SubResource fails(@PathParam("name") String name) {
          return new SubResource(name);
      }
      

      I am attaching a simple application that reproduces this.

      The same application used to work correctly with JBoss AS 7 and Resteasy 2.3.2.

      Attachments

        1. api.tgz
          1.0 kB
        2. api.war
          4 kB

        Issue Links

          Activity

            People

              spyrkob Bartosz Spyrko-Smietanko
              vtunka Václav Tunka
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: