You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by en...@apache.org on 2018/09/18 22:25:45 UTC

[sling-org-apache-sling-jcr-jackrabbit-usermanager] branch master updated: SLING-7937 A post to update a nested "Date" property for a user or group sets the property at the wrong path

This is an automated email from the ASF dual-hosted git repository.

enorman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-jackrabbit-usermanager.git


The following commit(s) were added to refs/heads/master by this push:
     new 116c63e  SLING-7937 A post to update a nested "Date" property for a user or group sets the property at the wrong path
116c63e is described below

commit 116c63ec34cd104bea355aecadf0b3a8c7b6c312
Author: Eric Norman <en...@apache.org>
AuthorDate: Tue Sep 18 15:25:37 2018 -0700

    SLING-7937 A post to update a nested "Date" property for a user or group
    sets the property at the wrong path
---
 .../usermanager/impl/post/AbstractAuthorizablePostServlet.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/post/AbstractAuthorizablePostServlet.java b/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/post/AbstractAuthorizablePostServlet.java
index f136ff0..7017e2f 100644
--- a/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/post/AbstractAuthorizablePostServlet.java
+++ b/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/post/AbstractAuthorizablePostServlet.java
@@ -392,7 +392,7 @@ public abstract class AbstractAuthorizablePostServlet extends
                         } else {
                             Value cVal = session.getValueFactory().createValue(
                                 c);
-                            parent.setProperty(prop.getName(), cVal);
+                            parent.setProperty(relativePath, cVal);
                             changes.add(Modification.onModified(parentPath
                                 + "/" + relativePath));
                         }