You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2017/11/18 14:02:33 UTC
[Bug 61781] New: NPE in
PersistentProviderRegistrations.writeProviders() if layer or app context are
null
https://bz.apache.org/bugzilla/show_bug.cgi?id=61781
Bug ID: 61781
Summary: NPE in
PersistentProviderRegistrations.writeProviders() if
layer or app context are null
Product: Tomcat 8
Version: 8.5.23
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: lazar.kirchev@gmail.com
Target Milestone: ----
PersistentProviderRegistrations.writeProviders() throws NPE if it tries to
persist a provider with null layer or app context. The NPE is caused by passing
null to Writer.write(). However, it is acceptable for a Provider to have its
layer and/or app context null.
It is allowed by the spec and there is logic which supports this in the
AuthConfigFactoryImpl. So the layer and the app context should be treated as
optional, just as the description is treated.
--
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
[Bug 61781] NPE in PersistentProviderRegistrations.writeProviders()
if layer or app context are null
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61781
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Again, many thanks.
Fixed in:
- trunk for 9.0.2 onwards
- 8.5.x for 8.5.24 onwards
--
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
[Bug 61781] NPE in PersistentProviderRegistrations.writeProviders()
if layer or app context are null
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61781
Lazar <la...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from Lazar <la...@gmail.com> ---
This pull request contains a test case which illustrates the problem and a fix
for it: https://github.com/apache/tomcat/pull/89
--
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