eXist-db / exist

eXist Native XML Database and Application Platform
https://exist-db.org
GNU Lesser General Public License v2.1
429 stars 179 forks source link

Can't properly run with $exist:context / #3061

Open ahenket opened 5 years ago

ahenket commented 5 years ago

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

Remove all (:<redirect url="/exist/apps/{$exist:controller}/index.html"/>:)

url="/exist/apps/dashboard/login" to url="/apps/dashboard/login"

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"

url="/exist/apps/dashboard/apps/local" to url="/apps/dashboard/apps/local"

Remove all (:<redirect url="/exist/apps/{$exist:controller}/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

duncdrum commented 5 years ago

see #2919 as somewhat related

ahenket commented 5 years ago

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:

joewiz commented 4 years ago

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.

duncdrum commented 4 years ago

see #441

JoernT commented 4 years ago

Upcoming dashboard 3 addresses this issue. All pathes are relative now.

Duncan Paterson notifications@github.com 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 .

tohuuuuu commented 2 years ago

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