[Bug 65144] New: deltaSession.notifying: Format string/argument mismatch

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 65144] New: deltaSession.notifying: Format string/argument mismatch

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=65144

            Bug ID: 65144
           Summary: deltaSession.notifying: Format string/argument
                    mismatch
           Product: Tomcat 9
           Version: 9.0.43
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Cluster
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: -----

Format String "deltaSession.notifying" expects two arguments:

deltaSession.notifying=Notifying cluster of session expiration: primary=[{0}],
sessionId [{1}]

However the code in DeltaSession.java invokes it with three arguments:

log.debug(sm.getString("deltaSession.notifying",
    ((ClusterManager)manager).getName(),
    Boolean.valueOf(isPrimarySession()),
    expiredId
));

This results in ambiguous log output:

15-Feb-2021 22:32:27.205 FEIN [http-nio-2015-exec-6]
org.apache.catalina.ha.session.DeltaSession.expire Notifying cluster of session
expiration: primary=[/clusterjsp], sessionId [false]

Notice the sessionId is displayed as "false", which is actually the
isPrimarySession() state

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 65144] deltaSession.notifying: Format string/argument mismatch

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=65144

Max Lohrmann <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 65144] deltaSession.notifying: Format string/argument mismatch

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=65144

Remy Maucherat <[hidden email]> changed:

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

--- Comment #1 from Remy Maucherat <[hidden email]> ---
The fixed string will be in Tomcat 10.0.3, 9.0.44, 8.5.64 and 7.0.109.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]