luehe       2003/11/20 12:56:28

  Modified:    catalina/src/share/org/apache/coyote/tomcat5
                        CoyoteRequest.java
  Log:
  Backing out this change for the time being, as it breaks some of the
  Servlet compatibility tests.
  
  I've suggested to the Servlet spec lead that the spec be clarified to
  say that an IllegalStateException is to be thrown if
  ServletRequest.setCharacterEncoding() is called after the request
  params/body have been read.
  
  Revision  Changes    Path
  1.23      +4 -8      
jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteRequest.java
  
  Index: CoyoteRequest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteRequest.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- CoyoteRequest.java        20 Nov 2003 01:14:31 -0000      1.22
  +++ CoyoteRequest.java        20 Nov 2003 20:56:28 -0000      1.23
  @@ -1493,10 +1493,6 @@
       public void setCharacterEncoding(String enc)
           throws UnsupportedEncodingException {
   
  -     if (requestParametersParsed || usingReader || usingInputStream) {
  -            return;
  -        }
  -  
           // Ensure that the specified encoding is valid
           byte buffer[] = new byte[1];
           buffer[0] = (byte) 'a';
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to