Maximo Integration

oslc namespaces returned when lean set to true

  • 1.  oslc namespaces returned when lean set to true

    Posted Thu August 20, 2020 04:15 PM
    I'm using the Maximo Java Rest Client and I'm seeing some odd behavior.
    ibmmaximorestjsonapis/maximorestclient

    I'm getting namespaces returned with resourceSet queries when I use the basic auth option.  I only seem to have this issue when using the maximo rest client.  I don't see the same behavior from PostMan testing the same configuration and query.  I'm also fine when the target Maximo instace is using native authentication.

    no namespaces:

    mc = new MaximoConnector(new Options().user("user")
    .password("password").mt(false).auth("maxauth")
    .host("host").port(port).maxrest().lean(true)).debug(true);

    namespaces returned:

    mc = new MaximoConnector(new Options().user("user")
    .password("password").mt(false).auth("basic")
    .host("host").port(port).maxrest().lean(true)).debug(true);
    ResourceSet selectSet = mc.resourceSet(...

    console
    FINE: http://<host>:<port>/maxrest/oslc?&lean=1
    FINE: http://<host>:<port>/maxrest/oslc/...

    return
    {"prefixes":{"rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#",...


    ------------------------------
    Donovan Smith
    ------------------------------