You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Matti Kokkola <ma...@firsthop.fi> on 1999/06/03 10:43:22 UTC

mod_jserv/4521: sendRedirect() sets the status to 200 instead of 302

>Number:         4521
>Category:       mod_jserv
>Synopsis:       sendRedirect() sets the status to 200 instead of 302
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Jun  3 01:50:01 PDT 1999
>Last-Modified:
>Originator:     matti.kokkola@firsthop.fi
>Organization:
apache
>Release:        1.3.6 + 1.05b
>Environment:
SunOS 5.7, JDK 1.1.7, JSDK 2.0
>Description:
When redirecting with Location HTTP-header, one should use status code 302
(moved temporarily) instead of 200 (ok). 

In some situations this causes problems.
>How-To-Repeat:

>Fix:
In JServConnection.sendRedirect() replace setStaus(SC_OK) with 
setStatus(SC_MOVED_PERMAMENTLY).
>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!     ]