exist icon indicating copy to clipboard operation
exist copied to clipboard

Can't properly run with $exist:context /

Open ahenket opened this issue 5 years ago • 6 comments

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

ahenket avatar Oct 20 '19 06:10 ahenket

see #2919 as somewhat related

duncdrum avatar Oct 28 '19 19:10 duncdrum

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?

ahenket avatar Oct 29 '19 13:10 ahenket

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.

joewiz avatar Oct 30 '19 17:10 joewiz

see #441

duncdrum avatar Nov 11 '19 21:11 duncdrum

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 .

JoernT avatar Nov 13 '19 19:11 JoernT

see https://github.com/eXist-db/dashboard/issues/73

tohuuuuu avatar May 12 '22 10:05 tohuuuuu