Response for Guvnor repository REST API call for listing all the asset, returns "localhost" as hostname in "binaryLink"

Solution Unverified - Updated -

Issue

  • While using the below code to get the list of assets pertaining to a package (through invocation of Guvnor repository REST API jboss-brms/rest/categories/<packagename>/<subpackagename>/assets), instead of getting the binaryLink with the IP address of the BRMS server listed in the create() method , the value is replaced with localhost.
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) from REST API call ?

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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.