From 6f64e8e1dc2866dc5ee4283d3e094860c15e15b5 Mon Sep 17 00:00:00 2001 From: Reece Dunn Date: Wed, 31 Aug 2016 11:02:34 +0100 Subject: [PATCH] Fix #654: Handle conf:rewrite not being present in rest-api's config.xqy. --- src/roxy/rewrite.xqy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roxy/rewrite.xqy b/src/roxy/rewrite.xqy index 6dc45a09..4e7931fa 100644 --- a/src/roxy/rewrite.xqy +++ b/src/roxy/rewrite.xqy @@ -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()