Response for Guvnor repository REST API call for listing all the asset, returns "localhost" as hostname in "binaryLink"
Issue
- While using the below code to get the list of assets pertaining to a package (through invocation of
Guvnorrepository REST APIjboss-brms/rest/categories/<packagename>/<subpackagename>/assets), instead of getting thebinaryLinkwith theIP addressof theBRMSserver listed in thecreate()method , the value is replaced withlocalhost.
WebClient webClient = WebClient.create(guvnorServer);
webClient.header("Authorization", authorization);
InputStream inStream= null;
try {
inStream= webClient.path("jboss-brms/rest/categories/<packagename>/<subpackagename>/assets").accept("application/json").get(InputStream.class);
}
- What is the default behaviour for such a response (even if the response type is
JSON) fromREST APIcall ?
Environment
- Red Hat JBoss BRMS (BRMS)
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
