Skip to content
Snippets Groups Projects
Unverified Commit 6e354149 authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

XWIKI-22912: The current user proerty update REST endpoint is modifying the cached document

(cherry picked from commit 8e9d9225)
parent 5d7dc3d3
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,9 @@ public Response setNextPropertyValue(String propertyName) throws XWikiRestExcept
throw new WebApplicationException(Status.UNAUTHORIZED);
}
// Clone the document to avoid modifying the cache directly
userDocument = userDocument.clone();
BaseObject object = userDocument.getXObject(USER_REFERENCE);
if (object == null) {
throw new WebApplicationException(Status.NOT_FOUND);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment