-
Notifications
You must be signed in to change notification settings - Fork 63
Upgrading MarkLogic
When you upgrade the version of MarkLogic that a project is deployed to, you may need to make some changes to your Roxy configuration.
Best practice is to upgrade Roxy itself first, make sure it works, then upgrade MarkLogic and make the necessary adjustments.
-
change the
server-versionproperty from 7 to 8 -
In MarkLogic 8, REST API instances must use the declarative rewriter.
- Make the following property change for --app-type=rest applications:
url-rewriter=/MarkLogic/rest-api/rewriter.xml - For --app-type=hybrid, see the fix suggested in issue #416
- --app-type=mvc is not affected by this change
- Make the following property change for --app-type=rest applications:
-
Remove
error-formatfrom rest-api/config/properties.xml -
For rest or hybrid applications, you may need to specify update mode for POST functions in REST extensions. MarkLogic 8.0-2+ defaults POST functions to query mode. If your function makes any changes to the database, you will get an
XDMP-UPDATEFUNCTIONFROMQUERYerror. Fix this by adding `%rapi:transaction-mode("update") to XQuery extensions.declare %roxy:params("") %rapi:transaction-mode("update") function yourNSAlias:post(