Skip to content

Commit 09e9ade

Browse files
authored
Merge pull request #60 from joewiz/support-legacy-find-xql-endpoint
Explicitly handle requests for legacy find.xql
2 parents 26a9157 + 53c7e76 commit 09e9ade

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

controller.xql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@ else if (contains($exist:path, "/public/") and (ends-with($exist:resource, ".png
9999
</forward>
100100
</dispatch>
101101

102+
(: Explicitly handle legacy client requests for modules/find.xql, redirecting it to the find endpoint.
103+
: Clients that hardcode modules/find.xql include:
104+
: - atom-editor-support v1.0.1 and earlier (fixed in https://github.com/eXist-db/atom-editor-support/releases/tag/v1.1.0) --> and thus all versions of existdb-langserver up to and including v1.5.3 and earlier (fixed in https://github.com/wolfgangmm/existdb-langserver/pull/24, not yet released).
105+
: - existdb-packageservice v1.3.9 and earlier (fixed in https://github.com/eXist-db/existdb-packageservice/releases/tag/v1.3.10) --> and thus all versions of eXist up to and including v5.2.0.
106+
: - shared-resources v0.8.4 and earlier (fixed in https://github.com/eXist-db/shared-resources/releases/tag/v0.8.5) --> and thus all versions of eXist up to and including v4.7.0.
107+
:)
108+
else if ($exist:path eq "/modules/find.xql") then
109+
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
110+
<redirect url="../find?{request:get-query-string()}"/>
111+
</dispatch>
112+
102113
else if ($exist:path eq "/find") then
103114
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
104115
<forward url="modules/find.xq">

0 commit comments

Comments
 (0)