Uploaded image for project: 'Nuxeo JS Client'
  1. Nuxeo JS Client
  2. NXJS-217

Fix JS client does not return the expected base URL when using nuxeo-stacks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Not A Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: AngularJS

      Description

      Using a docker image created by nuxeo-stacks with mongo, elastic, kafka
      Using LTS 2023
      Using the admin console snapshot package that deploys a standalone app written in Angular at nuxeo/nuxeoadmin
      Access the angular app deployed in the server at nuxeo/nuxeoadmin as an administrator (http://nuxeo.docker.localhost/nuxeo/nuxeoadmin/)

      The app creates a Nuxeo object without passing any parameters (we cannot guess what the domain URL will be for customers)

      => JS client returns the base URL as http://localhost:8080/nuxeo/ and the REST URL as http://localhost:8080/nuxeo/api/v1/
      => Docker image expects base URL to be http://nuxeo.docker.localhost/nuxeo/ and REST URL to be http://nuxeo.docker.localhost/nuxeo/api/v1/
      => No API call can be done and the app cannot be used

      Expected: JS client should return the URL expected by the docker image to call the REST API

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: