tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ales Seifert <A.Seif...@mus.cz>
Subject JNDIRealm
Date Sat, 20 Jul 2002 13:59:14 GMT
Hi,
I'm sorry if i'm posting it to the wrong list,

I found small problem in JNDIRealm and I suggest small change.

in method     protected List getRoles(DirContext context,
                             String username, String dn)

is line

		String role = (String) attr.get();

which is throwing ClassCastException, bacause not every attribute can
be converted to String.

So my suggestion is to use this way:

		String role = attr.get().toString();

which should never thrown ClassCastException bacause every objects are 
subclass of the Object class.

Can somebody make this change into source for next release?

Thanks

Alesak



--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message