Fixed a bug with the ARP filtering that was generating a Runtime Exception.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 15 Jan 2003 23:09:35 +0000 (23:09 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 15 Jan 2003 23:09:35 +0000 (23:09 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@399 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/arp/ArpEngine.java

index a96c3de..6856542 100755 (executable)
@@ -283,16 +283,15 @@ public class ArpEngine {
                                continue;
                        }
 
-                       //Handle Permit All-Except and Permit Specific
+                       //Handle "Permit All-Except" and "Permit Specific"
                        Object[] resolvedValues = attributes[i].getValues();
                        Set releaseValues = new HashSet();
                        for (int j = 0; resolvedValues.length > j; j++) {
-                               System.err.println(attribute.isValuePermitted(resolvedValues[j]));
                                if (attribute.isValuePermitted(resolvedValues[j])) {
                                        releaseValues.add(resolvedValues[j]);
                                }
                        }
-                       attributes[i].setValues((ArpAttribute[]) releaseValues.toArray(new ArpAttribute[0]));
+                       attributes[i].setValues((Object[]) releaseValues.toArray(new Object[0]));
                        releaseSet.add(attributes[i]);
                }
                return (ArpAttribute[]) releaseSet.toArray(new ArpAttribute[0]);