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 2007/01/23 01:38:45 UTC

DO NOT REPLY [Bug 41437] New: - The log API used and the log message is not corresponding.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41437>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41437

           Summary: The log API used and the log message is not
                    corresponding.
           Product: Tomcat 5
           Version: 5.5.20
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: trivial
          Priority: P4
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: suzuki.yuichiro@jp.fujitsu.com


The message level is double but not same.

In org.apache.catalina.startup.LocalStrings.properties.
---
contextConfig.role.auth=WARNING: Security role name ...
contextConfig.role.link=WARNING: Security role name ...
contextConfig.role.runas=WARNING: Security role name ...
---

In org.apache.catalina.startup.ContextConfig#validateSecurityRoles()
---
log.info(sm.getString("contextConfig.role.auth", roles[j]));
log.info(sm.getString("contextConfig.role.runas", runAs));
log.info(sm.getString("contextConfig.role.link", link));
---

I think it should be the following. 
---LocalStrings.properties
contextConfig.role.auth=Security role name ...
contextConfig.role.link=Security role name ...
contextConfig.role.runas=Security role name ...

---ContextConfig#validateSecurityRoles()
log.warn(sm.getString("contextConfig.role.auth", roles[j]));
log.warn(sm.getString("contextConfig.role.runas", runAs));
log.warn(sm.getString("contextConfig.role.link", link));
---

Regards,
Yuichiro

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

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


DO NOT REPLY [Bug 41437] - The log API used and the log message is not corresponding.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41437>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41437


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From markt@apache.org  2007-01-23 19:39 -------
Many thanks for the suggested fix. It has been applied to svn and will be
included in 5.5.21 onwards.

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

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