-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 7.10-HF33
-
Component/s: Nuxeo Drive
-
Release Notes Summary:Drive configuration can be served by the Nuxeo Platform server-side
-
Backlog priority:600
-
Impact type:API change
-
Upgrade notes:
-
Sprint:nxfit 9.3.10, nxfit 9.10.1
-
Story Points:5
Previously, since NXP-22946, the Drive global configuration file located in the "drive" template of the nuxeo-drive package was directly copied to nxserver/nuxeo.war to be available as a static resource through $NUXEO_URL/nuxeo/drive/config.json.
This was an issue because the nuxeo.war folder is built dynamically and can be rebuilt completely during the preprocessing phase or by the hot reload for instance, which could remove the whole nuxeo.war/drive folder, especially in 7.10 under Windows. As a consequence, after installing the nuxeo-drive package (1.5.6) on Nuxeo 7.10 with the latest hotfixes and starting the server, the configuration file was not available.
Let's copy the configuration file to the server's configuration folder nxserver/config and serve it through a dedicated endpoint $NUXEO_URL/api/v1/drive/configuration.
------------------------------------------------------------
Note:
- In 9.10 we've added a REST API endpoint in the new nuxeo-drive-rest-api bundle
- In 8.10-HF20 and 7.10-HF35, to avoid adding a new bundle in the HF or nuxeo-drive package, we've mapped a plain servlet to /api/v1/drive/configuration.