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

Default @OPTIONS SUPPORT

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • Beta 6
    • Beta 5
    • jaxrs
    • None

      Hi,

      I just tried to call OPTIONS on a Resource and always get a "405 Method not allowed". Should it work already using beta5? Also I could not find @OPTIONS in javax.ws.rs as described in http://wiki.jboss.org/wiki/UsingPathAndGETPOSTEtc.

      From the spec I get 3.3.5:
      On receipt of an OPTIONS request an implementation MUST either:
      1. Call a method annotated with a request method designator for OPTIONS or, if none present,
      2. Generate an automatic response using the metadata provided by the JAX-RS annotations on the matching class and its methods.

      Is this still to be implemented or has there be any change in plan? I think if no @OPTIONS is present RESTeasy should at least return the Allow header. It might also make sense to annotate a resource method with @OPTIONS to provide a custom response maybe a machine readable description, but I am not sure about this.

      A while ago I also promised some more feedback on the client framework. I can only say that I didn't have any problems and everything worked fine for me.

      Thanks!

      Christian

            patriot1burke@gmail.com Bill Burke (Inactive)
            patriot1burke@gmail.com Bill Burke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: