You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jf...@apache.org on 2003/04/11 17:02:41 UTC
cvs commit: jakarta-servletapi-5/jsr154/src/share/javax/servlet/http Cookie.java HttpServlet.java HttpServletRequest.java HttpServletResponse.java
jfarcand 2003/04/11 08:02:40
Modified: jsr154/src/share/javax/servlet ServletContext.java
ServletRequest.java
jsr154/src/share/javax/servlet/http Cookie.java
HttpServlet.java HttpServletRequest.java
HttpServletResponse.java
Log:
Apply patch submitted by Yutaka Yoshida.
Fix bug 18204: Regression in Tomcat 5: no IllegalArgumentException thrown with new Cookie("$test", "Valueless")
Revision Changes Path
1.3 +3 -2 jakarta-servletapi-5/jsr154/src/share/javax/servlet/ServletContext.java
Index: ServletContext.java
===================================================================
RCS file: /home/cvs/jakarta-servletapi-5/jsr154/src/share/javax/servlet/ServletContext.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ServletContext.java 5 Mar 2003 19:42:47 -0000 1.2
+++ ServletContext.java 11 Apr 2003 15:02:40 -0000 1.3
@@ -195,7 +195,8 @@
- *@param the partial path used to match the resources, which must start with a /
+ *@param path the partial path used to match the resources,
+ * which must start with a /
*@return a Set containing the directory listing, or null if there are no resources in the web application whose path
* begins with the supplied path.
@@ -277,7 +278,7 @@
* to a servlet from any location, without using a class loader.
*
*
- * @param name a <code>String</code> specifying the path
+ * @param path a <code>String</code> specifying the path
* to the resource
*
* @return the <code>InputStream</code> returned to the
1.5 +1 -1 jakarta-servletapi-5/jsr154/src/share/javax/servlet/ServletRequest.java
Index: ServletRequest.java
===================================================================
RCS file: /home/cvs/jakarta-servletapi-5/jsr154/src/share/javax/servlet/ServletRequest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ServletRequest.java 22 Mar 2003 15:21:59 -0000 1.4
+++ ServletRequest.java 11 Apr 2003 15:02:40 -0000 1.5
@@ -161,7 +161,7 @@
* or reading input using getReader().
*
*
- * @param a <code>String</code> containing the name of
+ * @param env a <code>String</code> containing the name of
* the chararacter encoding.
* @throws java.io.UnsupportedEncodingException if this is not a valid encoding
*/
1.2 +1 -0 jakarta-servletapi-5/jsr154/src/share/javax/servlet/http/Cookie.java
Index: Cookie.java
===================================================================
RCS file: /home/cvs/jakarta-servletapi-5/jsr154/src/share/javax/servlet/http/Cookie.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Cookie.java 13 Aug 2002 16:21:44 -0000 1.1
+++ Cookie.java 11 Apr 2003 15:02:40 -0000 1.2
@@ -177,6 +177,7 @@
|| name.equalsIgnoreCase("Path")
|| name.equalsIgnoreCase("Secure")
|| name.equalsIgnoreCase("Version")
+ || name.startsWith("$")
) {
String errMsg = lStrings.getString("err.cookie_name_is_token");
Object[] errArgs = new Object[1];
1.3 +1 -1 jakarta-servletapi-5/jsr154/src/share/javax/servlet/http/HttpServlet.java
Index: HttpServlet.java
===================================================================
RCS file: /home/cvs/jakarta-servletapi-5/jsr154/src/share/javax/servlet/http/HttpServlet.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- HttpServlet.java 5 Mar 2003 19:42:48 -0000 1.2
+++ HttpServlet.java 11 Apr 2003 15:02:40 -0000 1.3
@@ -821,7 +821,7 @@
* the servlet
*
*
- * @param resp the {@link HttpServletResponse} object that
+ * @param res the {@link HttpServletResponse} object that
* contains the response the servlet returns
* to the client
*
1.4 +1 -1 jakarta-servletapi-5/jsr154/src/share/javax/servlet/http/HttpServletRequest.java
Index: HttpServletRequest.java
===================================================================
RCS file: /home/cvs/jakarta-servletapi-5/jsr154/src/share/javax/servlet/http/HttpServletRequest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- HttpServletRequest.java 22 Mar 2003 15:22:00 -0000 1.3
+++ HttpServletRequest.java 11 Apr 2003 15:02:40 -0000 1.4
@@ -591,7 +591,7 @@
*
*
*
- * @param <code>true</code> to create
+ * @param create <code>true</code> to create
* a new session for this request if necessary;
* <code>false</code> to return <code>null</code>
* if there's no current session
1.3 +2 -2 jakarta-servletapi-5/jsr154/src/share/javax/servlet/http/HttpServletResponse.java
Index: HttpServletResponse.java
===================================================================
RCS file: /home/cvs/jakarta-servletapi-5/jsr154/src/share/javax/servlet/http/HttpServletResponse.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- HttpServletResponse.java 5 Mar 2003 19:42:48 -0000 1.2
+++ HttpServletResponse.java 11 Apr 2003 15:02:40 -0000 1.3
@@ -246,7 +246,7 @@
* presence of a header before setting its value.
*
* @param name the name of the header to set
- * @param value the assigned date value
+ * @param date the assigned date value
*
* @see #containsHeader
* @see #addDateHeader
@@ -262,7 +262,7 @@
* to have multiple values.
*
* @param name the name of the header to set
- * @param value the additional date value
+ * @param date the additional date value
*
* @see #setDateHeader
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org