Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004422 [Resin] minor always 03-02-11 13:19 03-02-11 14:33
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.16 Product Version
  Product Build
Summary 0004422: access-log enhancement
Description (rep by Steffen Busch)


Please find below the suggested changes for two files:


Index: modules/resin/src/com/caucho/server/log/AccessLog.java
===================================================================
--- modules/resin/src/com/caucho/server/log/AccessLog.java (revision 7914)
+++ modules/resin/src/com/caucho/server/log/AccessLog.java (working copy)
@@ -319,7 +319,7 @@
       case 'r': case 's':
       case 'T': case 'D': case 'o':
       case 'u': case 'U':
- case 'v':
+ case 'v': case 'S':
         if (cb.length() > 0)
           segments.add(new Segment(this, Segment.TEXT, cb.toString()));
         cb.clear();
@@ -505,6 +505,15 @@
         else
           offset = print(buffer, offset, value);
         break;
+
+ // Session id, specified with the request
+ case 'S':
+ value = request.getRequestedSessionId();
+ if (! request.isRequestedSessionIdValid() || value == null)
+ buffer[offset++] = (byte) '-';
+ else
+ offset = print(buffer, offset, value);
+ break;

       case 'r':
         offset = print(buffer, offset, request.getMethod());




Index: doc/reference.xtp
===================================================================
--- doc/reference.xtp (revision 7914)
+++ doc/reference.xtp (working copy)
@@ -171,6 +171,8 @@
     <td>request URL</td></tr>
 <tr><td>%s</td>
     <td>status code</td></tr>
+<tr><td>%S</td>
+ <td>SessionId specified with the Request</td></tr>
 <tr><td>%{<var>xxx</var>}t</td>
     <td>request date with optional time format string.</td></tr>
 <tr><td>%T</td>



Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0005103)
ferg
03-02-11 14:33

server/02ef
 

- Issue History
Date Modified Username Field Change
03-02-11 13:19 ferg New Issue
03-02-11 14:33 ferg Note Added: 0005103
03-02-11 14:33 ferg Assigned To  => ferg
03-02-11 14:33 ferg Status new => closed
03-02-11 14:33 ferg Resolution open => fixed
03-02-11 14:33 ferg Fixed in Version  => 4.0.16


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker