Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
6e354149
Unverified
Commit
6e354149
authored
3 weeks ago
by
Thomas Mortagne
Browse files
Options
Downloads
Patches
Plain Diff
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
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/resources/user/CurrentUserPropertyResourceImpl.java
+3
-0
3 additions, 0 deletions
...ernal/resources/user/CurrentUserPropertyResourceImpl.java
with
3 additions
and
0 deletions
xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/resources/user/CurrentUserPropertyResourceImpl.java
+
3
−
0
View file @
6e354149
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment