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

Header params are not propagated in REST calls from end point if resteasy.original.webapplicationexception.behavior=true is used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Blocker
    • None
    • 7.4.0.Beta
    • REST
    • None
    • False
    • False
    • Undefined

    Description

      Header params are not propagated in REST calls from end point if resteasy.original.webapplicationexception.behavior=true is used

      This issue could be related with EAP7-1571

      Reproducer:

      • deploy deployment from file single-application.zip
      • curl -v http://localhost:8080/custom-application/test/behavior/true # 204 expected
      • curl -v http://localhost:8080/custom-application/test/nocatch/old/0
        • WF 22.0.1.Final returns "foo: bar" header, server doesn't prints 333 exception, but returns 333 code in HTTP request
        • EAP 7.4.0.beta doesn't return "foo: bar" header, server prints 333 exception
          15:14:12,484 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-1) RESTEASY002010: Failed to execute: org.jboss.resteasy.client.exception.ResteasyRedirectionException: HTTP 333 Unknown
          	at org.jboss.resteasy.client.exception.WebApplicationExceptionWrapper.wrap(WebApplicationExceptionWrapper.java:107)
          	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:197)
          	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:467)
          	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.get(ClientInvocationBuilder.java:197)
          	at org.jboss.test.ClientWebApplicationExceptionResource.noCatchOld(ClientWebApplicationExceptionResource.java:78)
          
      • curl -v http://localhost:8080/custom-application/test/catch/old/old/0 # 333 expected
        • WF 22.0.1.Final returns 333, which is expected
          14:47:23,627 ERROR [stderr] (default task-1) javax.ws.rs.RedirectionException: HTTP 333 Unknown
          14:47:23,627 ERROR [stderr] (default task-1) 	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:197)
          14:47:23,628 ERROR [stderr] (default task-1) 	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:467)
          14:47:23,628 ERROR [stderr] (default task-1) 	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.get(ClientInvocationBuilder.java:197)
          14:47:23,628 ERROR [stderr] (default task-1) 	at org.jboss.test.ClientWebApplicationExceptionResource.catchOldOld(ClientWebApplicationExceptionResource.java:110)
          
        • EAP 7.4.0.beta return 500, see slightly different stacktrace for inner rest call:
          14:46:03,027 ERROR [stderr] (default task-2) org.jboss.resteasy.client.exception.ResteasyRedirectionException: HTTP 333 Unknown
          14:46:03,028 ERROR [stderr] (default task-2) 	at org.jboss.resteasy.client.exception.WebApplicationExceptionWrapper.wrap(WebApplicationExceptionWrapper.java:107)
          14:46:03,028 ERROR [stderr] (default task-2) 	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:197)
          14:46:03,028 ERROR [stderr] (default task-2) 	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:467)
          14:46:03,028 ERROR [stderr] (default task-2) 	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.get(ClientInvocationBuilder.java:197)
          14:46:03,028 ERROR [stderr] (default task-2) 	at org.jboss.test.ClientWebApplicationExceptionResource.catchOldOld(ClientWebApplicationExceptionResource.java:110)
          
      • similar for this request (500 on EAP 7.4.beta, 333 on wf 22.0.1.final)
        curl -v http://localhost:8080/custom-application/test/catch/old/new/0 # 333 expected
      • This issue can be reproduced by ClientWebApplicationExceptionTest, ClientWebApplicationExceptionResteasyProxyTest and ClientWebApplicationExceptionMicroProfileProxyTest from RESTEasy TS

      Attachments

        Issue Links

          Activity

            People

              rsigal@redhat.com Ronald Sigal
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: