Skip to content

Openstack error messages are not propagated to user #201

Description

@mmirecki

Error messages form Openstack are not passed on to the caller.
Inside ApacheHttpClient4Executor (resteasy) in the execute method where we do the http request, we do not look at the contents of the output (so we loose the message), but return only the ErrorCode.
The problem could be solved by overriding the executor and setting the error message on the response.

The code:
https://github.com/resteasy/Resteasy/blob/e9374dfbb58abcb93ca546f7b8a94ab966c062c9/resteasy-legacy/src/main/java/org/jboss/resteasy/client/core/executors/ApacheHttpClient4Executor.java#L285
The missing error message:
response.setErrorMessage(IOUtils.toString(res.getEntity().getContent()));

The problem should preferably be solved in resteasy, and woorea should be updated to use the version with the fix.
If moving to the latest resteasy is not possible, woorea should provider its own improved Executor.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions