You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kw...@apache.org on 2014/11/25 17:15:40 UTC

svn commit: r1641645 - /qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/security/encryption/AESKeyFileEncrypterFactory.java

Author: kwall
Date: Tue Nov 25 16:15:40 2014
New Revision: 1641645

URL: http://svn.apache.org/r1641645
Log:
QPID-6242: [Java Broker] Fix defect on Windows 7 where the newly created empty y file was not writable

Modified:
    qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/security/encryption/AESKeyFileEncrypterFactory.java

Modified: qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/security/encryption/AESKeyFileEncrypterFactory.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/security/encryption/AESKeyFileEncrypterFactory.java?rev=1641645&r1=1641644&r2=1641645&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/security/encryption/AESKeyFileEncrypterFactory.java (original)
+++ qpid/trunk/qpid/java/broker-core/src/main/java/org/apache/qpid/server/security/encryption/AESKeyFileEncrypterFactory.java Tue Nov 25 16:15:40 2014
@@ -319,15 +319,7 @@ public class AESKeyFileEncrypterFactory 
                 public List<AclEntry> value() {
                     AclEntry.Builder builder = AclEntry.newBuilder();
                     builder.setType(AclEntryType.ALLOW);
-                    builder.setPermissions(AclEntryPermission.APPEND_DATA,
-                            AclEntryPermission.DELETE,
-                            AclEntryPermission.READ_ACL,
-                            AclEntryPermission.READ_ATTRIBUTES,
-                            AclEntryPermission.READ_DATA,
-                            AclEntryPermission.READ_NAMED_ATTRS,
-                            AclEntryPermission.WRITE_ACL,
-                            AclEntryPermission.WRITE_ATTRIBUTES,
-                            AclEntryPermission.WRITE_DATA);
+                    builder.setPermissions(EnumSet.allOf(AclEntryPermission.class));
                     builder.setPrincipal(owner);
                     return Collections.singletonList(builder.build());
                 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org