Bug 59284 - jaspic.SimpleServerAuthConfig: erroneous "No ServerAuthModules configured"
Summary: jaspic.SimpleServerAuthConfig: erroneous "No ServerAuthModules configured"
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 9.0.0.M4
Hardware: All All
: P2 normal (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2016-04-07 05:44 UTC by Thomas Maslen
Modified: 2016-04-14 20:51 UTC (History)
0 users

patch against trunk (1.71 KB, patch)
2016-04-07 05:44 UTC, Thomas Maslen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Maslen 2016-04-07 05:44:44 UTC
Created attachment 33736 [details]
patch against trunk

The current property-merging code in SimpleServerAuthConfig.getAuthContext()
always ends up throwing a "No ServerAuthModules configured" AuthException
(even when the configuration data is valid).

I have attached a possible patch that works fine for me.  [I generated and tested
it against /tc8.5.x/trunk and have _not_ tried /trunk, i.e. Tomcat 9, but the patch
should also be valid for the current /trunk].
Comment 1 Mark Thomas 2016-04-14 20:51:16 UTC
Thanks for the report and the patch. It has been committed (with a few changes and some test cases) to 9.0.x for 9.0.0.M5 onwards and 8.5.x for 8.5.1. onwards.