Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

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)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.61698 sec.)

We're Hiring!