Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Fix #654: Handle conf:rewrite not being present in rest-api's config.xqy #655

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/roxy/rewrite.xqy
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ return
(rewriter:rewrite($method, $uri, $path), $uri)[1]
}
catch($ex) {
if ($ex/error:code = "XDMP-MODNOTFOUND") then
if ($ex/error:code = "XDMP-MODNOTFOUND" or $ex/error:code = "XDMP-UNDFUN") then
$uri
else
xdmp:rethrow()
Expand Down