tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patri...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets WebdavServlet.java
Date Tue, 13 Aug 2002 20:45:02 GMT
patrickl    2002/08/13 13:45:02

  Modified:    catalina/src/share/org/apache/catalina/connector
                        HttpResponseBase.java
               catalina/src/share/org/apache/catalina/servlets
                        WebdavServlet.java
  Log:
  Use SC_FOUND instead of SC_MOVED_TEMPORARILY in accordance with section 15.1.5 of the Servlet
2.4 specification
  
  Revision  Changes    Path
  1.2       +6 -6      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java
  
  Index: HttpResponseBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- HttpResponseBase.java	18 Jul 2002 16:47:57 -0000	1.1
  +++ HttpResponseBase.java	13 Aug 2002 20:45:02 -0000	1.2
  @@ -419,7 +419,7 @@
               return ("Method Not Allowed");
           case SC_MOVED_PERMANENTLY:
               return ("Moved Permanently");
  -        case SC_MOVED_TEMPORARILY:
  +        case SC_FOUND:
               return ("Moved Temporarily");
           case SC_MULTIPLE_CHOICES:
               return ("Multiple Choices");
  @@ -1138,7 +1138,7 @@
           // Generate a temporary redirect to the specified location
           try {
               String absolute = toAbsolute(location);
  -            setStatus(SC_MOVED_TEMPORARILY);
  +            setStatus(SC_FOUND);
               setHeader("Location", absolute);
           } catch (IllegalArgumentException e) {
               setStatus(SC_NOT_FOUND);
  
  
  
  1.2       +7 -7      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/WebdavServlet.java
  
  Index: WebdavServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/WebdavServlet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WebdavServlet.java	18 Jul 2002 16:47:42 -0000	1.1
  +++ WebdavServlet.java	13 Aug 2002 20:45:02 -0000	1.2
  @@ -2815,8 +2815,8 @@
        * moved to another location, but that future references should
        * still use the original URI to access the resource.
        */
  -    public static final int SC_MOVED_TEMPORARILY =
  -        HttpServletResponse.SC_MOVED_TEMPORARILY;
  +    public static final int SC_FOUND =
  +        HttpServletResponse.SC_FOUND;
   
   
       /**
  @@ -2998,7 +2998,7 @@
           addStatusCodeMap(SC_ACCEPTED, "Accepted");
           addStatusCodeMap(SC_NO_CONTENT, "No Content");
           addStatusCodeMap(SC_MOVED_PERMANENTLY, "Moved Permanently");
  -        addStatusCodeMap(SC_MOVED_TEMPORARILY, "Moved Temporarily");
  +        addStatusCodeMap(SC_FOUND, "Moved Temporarily");
           addStatusCodeMap(SC_NOT_MODIFIED, "Not Modified");
           addStatusCodeMap(SC_BAD_REQUEST, "Bad Request");
           addStatusCodeMap(SC_UNAUTHORIZED, "Unauthorized");
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message