Task #12286 (closed)
Opened 10 years ago
Closed 10 years ago
Bug: Ldap throws ClassCastException
Reported by: | jamoore | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | 5.0.2 |
Component: | Security | Version: | 5.0.1 |
Keywords: | LDAP | Cc: | Jason.Kotecki@…, java@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
See: http://lists.openmicroscopy.org.uk/pipermail/ome-users/2014-April/004343.html
The cause of the "can't access users in another OU" issue (above) was actually that getAttributeSortedStringSet was throwing a ClassCastException:
2014-05-19 11:45:01,165 INFO [ ome.services.util.ServiceHandler] (erver-2895) Excp: java.lang.ClassCastException: [B cannot be cast to java.lang.Comparable 2014-05-19 11:45:01,165 ERROR [ o.s.blitz.fire.PermissionsVerifierI] (erver-2895) Exception thrown while checking password for:jason.kotecki ome.conditions.InternalException: Wrapped Exception: (java.lang.ClassCastException): [B cannot be cast to java.lang.Comparable at java.util.TreeMap.compare(Unknown Source) ~[na:1.8.0] at java.util.TreeMap.put(Unknown Source) ~[na:1.8.0] at java.util.TreeSet.add(Unknown Source) ~[na:1.8.0] at org.springframework.ldap.support.LdapUtils$CollectingAttributeValueCallbackHandler.handleAttributeValue(LdapUtils.java:291) ~[spring-ldap.jar:1.3.0.RELEASE] at org.springframework.ldap.support.LdapUtils.iterateAttributeValues(LdapUtils.java:268) ~[spring-ldap.jar:1.3.0.RELEASE] at org.springframework.ldap.support.LdapUtils.collectAttributeValues(LdapUtils.java:252) ~[spring-ldap.jar:1.3.0.RELEASE] at org.springframework.ldap.core.DirContextAdapter.getAttributeSortedStringSet(DirContextAdapter.java:785) ~[spring-ldap.jar:1.3.0.RELEASE] at ome.security.auth.AttributeSet.<init>(AttributeSet.java:46) ~[server.jar:na]
Change History (1)
comment:1 Changed 10 years ago by jamoore
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
See other implementations for these methods at: https://github.com/spring-projects/spring-ldap/blob/master/core/src/main/java/org/springframework/ldap/core/DirContextAdapter.java
PR opened: https://github.com/openmicroscopy/openmicroscopy/pull/2520