[Bug 62036] Roles stripped when using programmatic login() in tomcat 8.5 but not 8.0

2018-01-24 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62036 Mark Thomas changed: What|Removed |Added Status|NEW |RESOLVED

[Bug 62036] Roles stripped when using programmatic login() in tomcat 8.5 but not 8.0

2018-01-24 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62036 --- Comment #8 from Mark Thomas --- Regardless, this does look like a bug that needs to be fixed. Apart from NonLoginAuthenticator.doAuthenticate() everywhere else that caches the Principal in the session caches the

[Bug 62036] Roles stripped when using programmatic login() in tomcat 8.5 but not 8.0

2018-01-24 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62036 --- Comment #7 from Mark Thomas --- Hmm. 8.0.43 fails in the same way. Maybe the 8.0.43 tested by the OP was configured in such a way that this worked? -- You are receiving this mail because: You are the assignee for the

[Bug 62036] Roles stripped when using programmatic login() in tomcat 8.5 but not 8.0

2018-01-24 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62036 --- Comment #6 from Mark Thomas --- I see the same behaviour with trunk 8.0.x. This looks like a regression between 8.0.43 and 8.0.49. Nothing obvious in the change log. Still looking. -- You are receiving this mail

[Bug 62036] Roles stripped when using programmatic login() in tomcat 8.5 but not 8.0

2018-01-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62036 --- Comment #5 from Konstantin Kolinko --- (In reply to Konstantin Kolinko from comment #3) > 2). It is also odd that RealmBase.hasRole() check for a MemoryUser fails. Debugging Tomcat 9: The following methods in

[Bug 62036] Roles stripped when using programmatic login() in tomcat 8.5 but not 8.0

2018-01-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62036 --- Comment #4 from Konstantin Kolinko --- (In reply to Konstantin Kolinko from comment #3) > Note the following: > 1). The principal differs. > > The first call operates on a GenericPrincipal. > The second call

[Bug 62036] Roles stripped when using programmatic login() in tomcat 8.5 but not 8.0

2018-01-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62036 Konstantin Kolinko changed: What|Removed |Added OS||All ---

[Bug 62036] Roles stripped when using programmatic login() in tomcat 8.5 but not 8.0

2018-01-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62036 --- Comment #2 from Konstantin Kolinko --- Created attachment 35695 --> https://bz.apache.org/bugzilla/attachment.cgi?id=35695=edit catalina_2018-01-23_log.txt - Cumulative log file, Tomcat 8.5.27 To enable logging I

[Bug 62036] Roles stripped when using programmatic login() in tomcat 8.5 but not 8.0

2018-01-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62036 --- Comment #1 from Konstantin Kolinko --- Created attachment 35694 --> https://bz.apache.org/bugzilla/attachment.cgi?id=35694=edit test.war Test application. It differs from original: I corrected the values of