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, tools, and much more.