Hi Florent,
Not sure what happens with the empty string case, but if you want to revert to the old behavior, just return whatever is received. You don’t have to rewrite the url, but MarkLogic does expect you to return a url, rewritten or not. That will be resolved in the same way url’s are resolved when there is no url-rewriter in place.. Kind regards, Geert *Van:* [email protected] [mailto: [email protected]] *Namens *Florent Georges *Verzonden:* zaterdag 10 november 2012 17:59 *Aan:* MarkLogic General ML *Onderwerp:* [MarkLogic Dev General] URL Resolver: revert back to default behavior sometimes? Hi, With the following URL resolver module, I get the expected 404: xquery version "3.0"; 'does-not-exist' But with the following: xquery version "3.0"; '' I get the following misleading error (it is a string, but empty): XDMP-RETURNTYPE: /.../url-rewriter.xq returned which is not of type string And with the following: xquery version "3.0"; () I get the following misleading error (it is not a string this time): XDMP-RETURNTYPE: /.../url-rewriter.xq returned empty string which is not of type a non-empty string value In addition, I couldn't find in the Dev Guide how a URL rewriter module can tell MarkLogic "you know what?, I cannot rewrite that URL, please resolve it yourself the usual way." I would have expected that returning the empty sequence does exactly that (but from above it is obvious it is not the case). Is there any other way? Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
