You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@hyperreal.org on 1997/12/30 06:34:29 UTC

cvs commit: apache-site bugdb.cgi

coar        97/12/29 21:34:27

  Modified:    .        bugdb.cgi
  Log:
  	Display the canned closure text next to the closure buttons.
  
  Revision  Changes    Path
  1.22      +55 -17    apache-site/bugdb.cgi
  
  Index: bugdb.cgi
  ===================================================================
  RCS file: /export/home/cvs/apache-site/bugdb.cgi,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- bugdb.cgi	1997/11/14 22:18:36	1.21
  +++ bugdb.cgi	1997/12/30 05:34:21	1.22
  @@ -20,6 +20,30 @@
   [and leave the subject line UNCHANGED.  This is not done]
   [automatically because of the potential for mail loops. ]
   EOT
  +$CANNED_LABEL{"Stale"} =
  +    '[This is a standard response.]\n' .
  +    'No response from submitter, assuming issue has been resolved.';
  +$CANNED_LABEL{"Duplicate"} =
  +    '[This is a standard response.]\n' .
  +    'This issue has been reported before;\n' .
  +    'please search the FAQ and the bug database.\n' .
  +    'Thanks for using Apache!';
  +$CANNED_LABEL{"Inappropriate"} =
  +    '[This is a standard response.]\n' .
  +    'This is a CGI programming or basic configuration issue.\n' .
  +    'As mentioned on the main bug database page, we must refer\n' .
  +    'all such basic or non-Apache-related questions to the\n' .
  +    'comp.infosystems.www.servers.unix and related newsgroups.\n' .
  +    'Please ask your question there.\n' .
  +    'Please also search the FAQ and the bug database.\n' .
  +    'Thanks for using Apache!';
  +#
  +# Turn the \n markers in the canned text into real newlines.
  +#
  +foreach (keys(%CANNED_LABEL)) {
  +    $CANNED_TEXT{$_} = $CANNED_LABEL{$_};
  +    $CANNED_TEXT{$_} =~ s/\\n/\n/g;
  +}
   
   # Outside commands
   $MAILER      = "/usr/sbin/sendmail -oi -t";
  @@ -75,6 +99,9 @@
   #  11/14/1997 Ken Coar - Add a note to mail messages about how to get
   #    replies to go into the database.  Also add an Expires: header field
   #    (Dirk-Willem van Gulik).
  +#  12/30/1997 Ken Coar - Correct a pointer to the bugdb page, and add the
  +#    actual closure text to the editing display so editors know what will
  +#    be sent.
   #
   ### End Modification log
   
  @@ -212,7 +239,7 @@
   ### Main menu
   } elsif ($PATH_INFO eq "") {
       &main_menu();
  -    print "<HR><SMALL>Version: 13 November 1997<BR>Authors: ",
  +    print "<HR><SMALL>Version: 30 December 1997<BR>Authors: ",
   	"<A HREF=\"http://alumni.caltech.edu/~dank/gnats.html\">Dan Kegel ",
   	"and Huy Le</A>, <BR> ",
   	"with revamp work by ",
  @@ -482,7 +509,7 @@
     The developers do not have time to answer the same question again and
     again.  <BIG>Please search the FAQ and the
     <A
  -   HREF="http://www.apache.org/bugdb.cgi"
  +   HREF="http://bugs.apache.org/"
     >problem report database</A>
     before you enter this report!</BIG>
     </P>
  @@ -1423,17 +1450,17 @@
   	    local ($timestamp) = &timestamp($fullpr);
   	    print <<EOM;
   <TABLE>
  - <TR ALIGN="LEFT" VALIGN="MIDDLE">
  + <TR ALIGN="LEFT" VALIGN="TOP">
     <TD>
      <FORM ACTION="$SCRIPT_NAME/edit_pr">
       <INPUT TYPE="submit" VALUE=" Edit ">
       <INPUT NAME="pr" TYPE="hidden" VALUE="$pr">
      </FORM>
     </TD>
  -  <TD><STRONG>Edit this problem report</STRONG>
  +  <TD><STRONG>Edit this report</STRONG>
     </TD>
    </TR>
  - <TR ALIGN="LEFT" VALIGN="MIDDLE">
  + <TR ALIGN="LEFT" VALIGN="TOP">
     <TD>
      <FORM METHOD="POST" ACTION="$SCRIPT_NAME/handle_edit_pr/$pr&$fieldvalues{'State'}&$timestamp">
       <INPUT TYPE="submit" VALUE="Close">
  @@ -1445,17 +1472,21 @@
       <INPUT TYPE="hidden" NAME="Release" VALUE="$fieldvalues{'Release'}">
       <INPUT TYPE="hidden" NAME="Severity" VALUE="$fieldvalues{'Severity'}">
       <INPUT TYPE="hidden" NAME="State" VALUE="closed">
  -    <INPUT TYPE="hidden" NAME="StateReason" VALUE="[This is a standard response.]\nNo response from submitter, assuming issue has been resolved.">
  +    <INPUT TYPE="hidden" NAME="StateReason" VALUE="$CANNED_LABEL{'Stale'}">
       <INPUT TYPE="hidden" NAME="Category" VALUE="$fieldvalues{'Category'}">
       <INPUT TYPE="hidden" NAME="Responsible" VALUE="$fieldvalues{'Responsible'}">
       <INPUT TYPE="hidden" NAME="ResponsibleReason" VALUE="">
      </FORM>
     </TD>
  -  <TD><STRONG>Close due to no response from the submitter; assuming issue
  -   has been resolved.</STRONG>
  +  <TD><STRONG>No response from submitter</STRONG>
  +  </TD>
  +  <TD>
  +   <PRE>
  +$CANNED_TEXT{'Stale'}
  +   </PRE>
     </TD>
    </TR>
  - <TR ALIGN="LEFT" VALIGN="MIDDLE">
  + <TR ALIGN="LEFT" VALIGN="TOP">
     <TD>
      <FORM METHOD="POST" ACTION="$SCRIPT_NAME/handle_edit_pr/$pr&$fieldvalues{'State'}&$timestamp">
       <INPUT TYPE="submit" VALUE="Close">
  @@ -1467,17 +1498,21 @@
       <INPUT TYPE="hidden" NAME="Release" VALUE="$fieldvalues{'Release'}">
       <INPUT TYPE="hidden" NAME="Severity" VALUE="$fieldvalues{'Severity'}">
       <INPUT TYPE="hidden" NAME="State" VALUE="closed">
  -    <INPUT TYPE="hidden" NAME="StateReason" VALUE="[This is a standard response.]\nThis issue has been reported before;\nplease search the FAQ and the bug database.\nThanks for using Apache!">
  +    <INPUT TYPE="hidden" NAME="StateReason" VALUE="$CANNED_LABEL{'Duplicate'}">
       <INPUT TYPE="hidden" NAME="Category" VALUE="$fieldvalues{'Category'}">
       <INPUT TYPE="hidden" NAME="Responsible" VALUE="$fieldvalues{'Responsible'}">
       <INPUT TYPE="hidden" NAME="ResponsibleReason" VALUE="">
      </FORM>
     </TD>
  -  <TD><STRONG>Close as being a duplicate report.  (Refers submitter to bugdb
  -   and the FAQ.)</STRONG>
  +  <TD><STRONG>Already reported<STRONG>
  +  </TD>
  +  <TD>
  +   <PRE>
  +$CANNED_TEXT{'Duplicate'}
  +   </PRE>
     </TD>
    </TR>
  - <TR ALIGN="LEFT" VALIGN="MIDDLE">
  + <TR ALIGN="LEFT" VALIGN="TOP">
     <TD>
      <FORM METHOD="POST" ACTION="$SCRIPT_NAME/handle_edit_pr/$pr&$fieldvalues{'State'}&$timestamp">
       <INPUT TYPE="submit" VALUE="Close">
  @@ -1489,15 +1524,18 @@
       <INPUT TYPE="hidden" NAME="Release" VALUE="$fieldvalues{'Release'}">
       <INPUT TYPE="hidden" NAME="Severity" VALUE="non-critical">
       <INPUT TYPE="hidden" NAME="State" VALUE="closed">
  -    <INPUT TYPE="hidden" NAME="StateReason" VALUE="[This is a standard response.]\nThis is a CGI programming or basic configuration issue.\nAs mentioned on the main bug database page, we must refer\nall such basic or non-Apache-related questions to the\ncomp.infosystems.www.servers.unix and related newsgroups.\nPlease ask your question there.\nPlease also search the FAQ and the bug database.\nThanks for using Apache!">
  +    <INPUT TYPE="hidden" NAME="StateReason" VALUE="$CANNED_LABEL{'Inappropriate'}">
       <INPUT TYPE="hidden" NAME="Category" VALUE="$fieldvalues{'Category'}">
       <INPUT TYPE="hidden" NAME="Responsible" VALUE="$fieldvalues{'Responsible'}">
       <INPUT TYPE="hidden" NAME="ResponsibleReason" VALUE="">
      </FORM>
     </TD>
  -  <TD><STRONG>Close as concerning CGI, basic configuration, or something else
  -   with which we say we don't provide assistance.  (Refers submitter to
  -   newsgroups and FAQ.)</STRONG>
  +  <TD><STRONG>Inappropriate report</STRONG>
  +  </TD>
  +  <TD>
  +   <PRE>
  +$CANNED_TEXT{'Inappropriate'}
  +   </PRE>
     </TD>
    </TR>
   </TABLE>