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

JAX-RS methods not annotated with @GET are still executed, but return RESTEASY003815

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • None
    • REST
    • None
    • False
    • None
    • False
    • If Release Note Needed, Set a Value
    • Set a Value

    Description

      This method is annotated with @PATH, but not with @GET:

       

          @Path("/test")

          public String test()

      {         log.info("test");         return "test";     }

       

      It is still executed (logs 'test'), but returns the following message to the client: RESTEASY003815: Subresource for target class has no jax-rs annotations.: java.lang.String

       

      There is a registered filter that implements javax.ws.rs.container.ContainerRequestFilter and it is not executed when there is no @GET.

       

      I think it should either work without @GET and execute the filter or not work without @GET and not execute the resource method.

      Attachments

        Activity

          People

            chaowan@redhat.com Chao Wang
            victorlessa VICTOR LESSA (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: