[Bug 63545] New: enhancement - add a new pattern attribute for logging user roles
https://bz.apache.org/bugzilla/show_bug.cgi?id=63545 Bug ID: 63545 Summary: enhancement - add a new pattern attribute for logging user roles Product: Tomcat 9 Version: 9.0.x Hardware: All OS: All Status: NEW Severity: enhancement Priority: P2 Component: Connectors Assignee: dev@tomcat.apache.org Reporter: eugene.ad...@gmail.com Target Milestone: - The Access Log Valve already has a set of possible pattern attributes that covers most of production server needs. However if we can log the user name since the beginning of the project, we still can't log his role(s). I understand that being inspired from Apache httpd where such a notion doesn't exist, it has not been implemented. Implementing this new pattern attribute would : -log roles in the access log -make debug easier for problems related to user roles -track more easily user role changing, which is required for applications that implement role delegation (typically when a user goes on vacation and is replaced temporarily by someone having smaller rights during the rest of the year) I believe that production needs and Tomcat code have changed consequently since bugid 3588, and that Tomcat is almost ready to cover this feature without much effort. -- You are receiving this mail because: You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Bug 63545] enhancement - add a new pattern attribute for logging user roles
https://bz.apache.org/bugzilla/show_bug.cgi?id=63545 --- Comment #1 from Eugène Adell --- Created attachment 36646 --> https://bz.apache.org/bugzilla/attachment.cgi?id=36646&action=edit suggested patch for AbstractAccessLogValve.java created from 9.0.21 source code -- You are receiving this mail because: You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Bug 63545] enhancement - add a new pattern attribute for logging user roles
https://bz.apache.org/bugzilla/show_bug.cgi?id=63545 --- Comment #2 from Eugène Adell --- Created attachment 36647 --> https://bz.apache.org/bugzilla/attachment.cgi?id=36647&action=edit suggested patch for Request.java created from 9.0.21 source code -- You are receiving this mail because: You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Bug 63545] enhancement - add a new pattern attribute for logging user roles
https://bz.apache.org/bugzilla/show_bug.cgi?id=63545 --- Comment #3 from Eugène Adell --- The patches add a %R pattern attribute When the 2 patches are applied, I get the expected result when testing a DataSourceRealm with the following valve : Results one role : 127.0.0.1 - jimmy user [06/Jul/2019:11:54:11 +0200] "GET /db/restricted/index.jsp HTTP/1.1" 200 9 three roles : 127.0.0.1 - jimmy admin,contributor,user [06/Jul/2019:11:55:10 +0200] "GET /db/restricted/index.jsp HTTP/1.1" 200 9 -- You are receiving this mail because: You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Bug 63547] New: None
https://bz.apache.org/bugzilla/show_bug.cgi?id=63547 Bug ID: 63547 Summary: None Product: Tomcat 7 Version: unspecified Hardware: Other OS: Linux Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: he...@theeasymail.com Target Milestone: --- Created attachment 36649 --> https://bz.apache.org/bugzilla/attachment.cgi?id=36649&action=edit None -- You are receiving this mail because: You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Bug 63547] None
https://bz.apache.org/bugzilla/show_bug.cgi?id=63547 Felix Schumacher changed: What|Removed |Added Resolution|--- |INVALID Status|NEW |RESOLVED --- Comment #1 from Felix Schumacher --- Spam -- You are receiving this mail because: You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org