tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40881] Unable to receive message through TCP channel -> Nullpointer
Date Fri, 17 Jul 2009 00:12:02 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=40881


Mark Thomas <markt@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement




--- Comment #11 from Mark Thomas <markt@apache.org>  2009-07-16 17:11:59 PST ---
Changing this to an enhancement request.

The patch as provided can not be applied. GenericPrincipal is not Serializable
so this would break all the existing Realms.

Tracing through the code, it is the test for if (!(gp.getRealm() == this)) in
RealmBase.hasRole() that is at the root of all the complication. The only
purpose of that code for quite some time is to log a debug message. Therefore,
it should be possible to remove the Realm completely from GenericPrincipal
making it easy to make it Serializable.

That said, these sort of changes are going to be API changing so will almost
certainly have to limited to trunk (aka Tomcat 7).

I'll propose this change on the dev list.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message