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

Sending asynchronous requests through a client proxy may result in an MBW not being found

XMLWordPrintable

      Sending multipart/form-data with MicorProfileRestClient asynchronous results in exception. The same Request works synchronous as expected. During analysis it was found that the data is not coming as a GenericEntity to the available MessageBodyWriters in async flow, thus resulting in an incorrect MBW being picked up, which results in an exception. Further analysis led to the ClientInvoker.invokeAsync() method where this data is set to entity. Here entity is set in raw format and thus going as a immutable list to the downstream. So a code fix is required to cast the data to GenericEntity if it's not originally.

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: