You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by th...@apache.org on 2006/08/31 16:10:51 UTC

svn commit: r438929 - /lenya/sandbox/ac-restricted-1.4-src/modules-core/ac-impl/java/src/org/apache/lenya/ac/file/FilePolicyManager.java

Author: thorsten
Date: Thu Aug 31 07:10:51 2006
New Revision: 438929

URL: http://svn.apache.org/viewvc?rev=438929&view=rev
Log:
we need to revert the order of the url credentials as well

Modified:
    lenya/sandbox/ac-restricted-1.4-src/modules-core/ac-impl/java/src/org/apache/lenya/ac/file/FilePolicyManager.java

Modified: lenya/sandbox/ac-restricted-1.4-src/modules-core/ac-impl/java/src/org/apache/lenya/ac/file/FilePolicyManager.java
URL: http://svn.apache.org/viewvc/lenya/sandbox/ac-restricted-1.4-src/modules-core/ac-impl/java/src/org/apache/lenya/ac/file/FilePolicyManager.java?rev=438929&r1=438928&r2=438929&view=diff
==============================================================================
--- lenya/sandbox/ac-restricted-1.4-src/modules-core/ac-impl/java/src/org/apache/lenya/ac/file/FilePolicyManager.java (original)
+++ lenya/sandbox/ac-restricted-1.4-src/modules-core/ac-impl/java/src/org/apache/lenya/ac/file/FilePolicyManager.java Thu Aug 31 07:10:51 2006
@@ -620,7 +620,9 @@
         policy = buildURLPolicy(controller, orgUrl);
         if (policy != null) {
             Credential[] tmp = policy.getCredentials();
-            for (int i = 0; i < tmp.length; i++) {
+            // we need to revert the order of the credentials
+            // to keep the most important policy on top
+            for (int i = tmp.length-1; i >= 0; i--) {
                 Credential credential = tmp[i];
                 orderedCredential.put(String.valueOf(position), credential);
             }



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