Tynamo
  1. Tynamo
  2. TYNAMO-149

Resteasy filter should be implemented as a RequestFilter rather than a HttpServletRequestFilter

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: resteasy-0.3.0
    • Fix Version/s: None
    • Component/s: resteasy
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Else, the resource is invoked before Tapestry sets the Request and Response objects into RequestGlobals. Any service used by the rest resource that relies on those services will fail.

        Activity

        Alejandro Scandroli made changes -
        Field Original Value New Value
        Assignee Alejandro Scandroli [ ascandroli ]
        Alejandro Scandroli made changes -
        Comment [ Maybe making sure it executes after StoreIntoGlobals is enough, you could add something like this to your AppModule

        {code}

        @Contribute(HttpServletRequestHandler.class)
        public static void httpServletRequestHandler(OrderedConfiguration<HttpServletRequestFilter> configuration,
        @InjectService("ResteasyRequestFilter")
        HttpServletRequestFilter resteasyRequestFilter)
        {
        configuration.override("ResteasyRequestFilter", resteasyRequestFilter, "after:StoreIntoGlobals");
        }
        {code}


        Please, let me know if that works for you.

        ]
        Alejandro Scandroli made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]

          People

          • Assignee:
            Alejandro Scandroli
            Reporter:
            Guillaume Bodet
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: