exist
exist copied to clipboard
Can't properly run with $exist:context /
What is the problem
eXist-db 5.0.0
We always run exist-db with context / instead of /exist (the default). This trips up the package manager/dashboard applications. I.e. I cannot login or list packages. This because of some hardcoded and improperly commented stuff in those packages.
Manual solution I found so far
- /db/apps/dashboard/bower_components/existdb-backup/controller.xql
Remove all (:<redirect url="/exist/apps/{$exist:controller}/index.html"/>:)
- /db/apps/dashboard/bower_components/existdb-launcher/existdb-login.html
url="/exist/apps/dashboard/login" to url="/apps/dashboard/login"
- /db/apps/dashboard/bower_components/existdb-packagemanager/controller.xql
Remove all (:<redirect url="/exist/apps/{$exist:controller}/index.html"/>:)
/db/apps/dashboard/bower_components/existdb-packagemanager/existdb-packagemanager.html
targetUrl="/exist/apps/packagemanager/modules/install.xql" to targetUrl="/apps/packagemanager/modules/install.xql"
- /db/apps/dashboard/existdb-local-packages.html
url="/exist/apps/dashboard/apps/local" to url="/apps/dashboard/apps/local"
- /db/apps/packagemanager/controller.xql
Remove all (:<redirect url="/exist/apps/{$exist:controller}/index.html"/>:)
- /db/apps/packagemanager/index.html
targetUrl="/exist/apps/packagemanager/modules/install.xql" to targetUrl="/apps/packagemanager/modules/install.xql"
What did you expect
Normal operations when you use a supported feature.
Describe how to reproduce or add a test
Context information
Please always add the following information
- eXist-db version 5.0.0 stable Sept 2
- Java version 1.8.0_202
- macOS Catalina
- 64 bit
- dmg installer
- etc/jetty/webapps/exist-webapp-context.xml Contains context path ‘/‘ instead of ‘/exist‘
- etc/jetty/webapps/portal/WEB-INF/jetty-web.xml Contains conficting context path '/', change this to /portal
see #2919 as somewhat related
I have found since filing this issue that all the above is not enough to make eXist-db 5 run properly with context /. Maybe I should rephrase:
- Is context / still supported?
- What would be the recommended procedure for applying that?
The eXist core supports this fine; the problem is that the referenced apps naively hardcode the assumed context, instead of dynamically adjusting to it. We need issues opened in the respective apps’ repos.
see #441
Upcoming dashboard 3 addresses this issue. All pathes are relative now.
Duncan Paterson [email protected] schrieb am Mo., 11. Nov. 2019, 22:15:
see #441 https://github.com/eXist-db/exist/issues/441
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/eXist-db/exist/issues/3061?email_source=notifications&email_token=AADWFW3COLQDNJR5KQ6RFBLQTHDNVA5CNFSM4JCS3WW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDYEXVQ#issuecomment-552618966, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADWFW6L2VDNABPDXBXFHV3QTHDNVANCNFSM4JCS3WWQ .
see https://github.com/eXist-db/dashboard/issues/73