jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r392931 - /jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/security/CurrentUserPrivilegeSetProperty.java
Date Mon, 10 Apr 2006 12:28:55 GMT
Author: angela
Date: Mon Apr 10 05:28:54 2006
New Revision: 392931

URL: http://svn.apache.org/viewcvs?rev=392931&view=rev
Log:
CurrentUserPrivilegeSet property is protected. Since xml representation of DavProperty does
not report the protection of a prop. set flag manually and limit validation check to name.

Modified:
    jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/security/CurrentUserPrivilegeSetProperty.java

Modified: jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/security/CurrentUserPrivilegeSetProperty.java
URL: http://svn.apache.org/viewcvs/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/security/CurrentUserPrivilegeSetProperty.java?rev=392931&r1=392930&r2=392931&view=diff
==============================================================================
--- jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/security/CurrentUserPrivilegeSetProperty.java
(original)
+++ jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/security/CurrentUserPrivilegeSetProperty.java
Mon Apr 10 05:28:54 2006
@@ -58,8 +58,8 @@
      * @throws DavException
      */
     public CurrentUserPrivilegeSetProperty(DavProperty xmlDavProperty) throws DavException
{
-        super(xmlDavProperty.getName(), xmlDavProperty.isProtected());
-        if (!SecurityConstants.CURRENT_USER_PRIVILEGE_SET.equals(getName()) || !isProtected())
{
+        super(xmlDavProperty.getName(), true);
+        if (!SecurityConstants.CURRENT_USER_PRIVILEGE_SET.equals(getName())) {
             throw new DavException(DavServletResponse.SC_BAD_REQUEST, "DAV:current-user-privilege-set
expected.");
         }
         privileges = new HashSet();



Mime
View raw message