Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21855

Implement routing for repositories

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Web UI

      Description

      Today Web UI is configured to use the default repository ootb. This configuration is done when defining the shared <nuxeo-connection> in our index page.
      This means that by changing the index page we can make Web UI work with any other repository.
      Still in order to Web UI working with multiple repositories, we need a way to make this configuration dynamic and we need it to be reflected in the URL.
      With the work done on NXP-25040 we have Tomcat's rewrite valve enabled by default so it should be possible to have the repository name in the URL injected into the index page and used in the connection.

      For instance, a rewrite rule like RewriteRule ^/repo/(.)/ui/(.) /ui/$2 [E=NXREPO:$1] would make the repository available as a NXREPO request attribute.

      The <nuxeo-app> baseUrl also needs to be properly set to ensure the `/repo/<repo>` prefix is kept in links.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 day
                  1d