You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Youichirou Koga <y-...@apache.or.jp> on 2000/12/30 16:26:18 UTC

mod_status/7021: "?auto" request shows some machine unreadable messages

>Number:         7021
>Category:       mod_status
>Synopsis:       "?auto" request shows some machine unreadable messages
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Dec 30 07:30:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     y-koga@apache.or.jp
>Release:        1.3.15-dev or before
>Organization:
apache
>Environment:
FreeBSD 4.2-STABLE, etc.
>Description:
"?auto" request shows following message:
<hr>To obtain a full report with current status information you need to use the <code>ExtendedStatus On</code> directive.
>How-To-Repeat:
enable server-status and request with "?auto"
eg) /server-status?auto
>Fix:
Index: src/modules/standard/mod_status.c
===================================================================
RCS file: /home/y-koga/work/cvs/apache-1.3-cvs/src/modules/standard/mod_status.c,v
retrieving revision 1.117
diff -u -r1.117 mod_status.c
--- src/modules/standard/mod_status.c	2000/12/13 05:10:41	1.117
+++ src/modules/standard/mod_status.c	2000/12/30 15:07:58
@@ -713,9 +713,10 @@
 
     } else {
 
-    ap_rputs("<hr>To obtain a full report with current status information ", r);
-    ap_rputs("you need to use the <code>ExtendedStatus On</code> directive. \n", r);
-
+	if (!short_report) {
+	    ap_rputs("<hr>To obtain a full report with current status information ", r);
+	    ap_rputs("you need to use the <code>ExtendedStatus On</code> directive. \n", r);
+	}
     }
 
     if (!short_report) {
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]