ASF Bugzilla – Attachment 9131 Details for
Bug 24001
LOCK: parsing of Timeout request header
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for TC5 to fix this bug
WebdavServlet.patch (text/plain), 1.05 KB, created by
Mark Thomas
on 2003-11-16 13:56:39 UTC
(
hide
)
Description:
Patch for TC5 to fix this bug
Filename:
MIME Type:
Creator:
Mark Thomas
Created:
2003-11-16 13:56:39 UTC
Size:
1.05 KB
patch
obsolete
>Index: catalina/src/share/org/apache/catalina/servlets/WebdavServlet.java >=================================================================== >RCS file: /home/cvspublic/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/WebdavServlet.java,v >retrieving revision 1.6 >diff -u -r1.6 WebdavServlet.java >--- catalina/src/share/org/apache/catalina/servlets/WebdavServlet.java 14 Nov 2003 10:16:22 -0000 1.6 >+++ catalina/src/share/org/apache/catalina/servlets/WebdavServlet.java 16 Nov 2003 13:51:54 -0000 >@@ -848,6 +847,11 @@ > if (lockDurationStr == null) { > lockDuration = DEFAULT_TIMEOUT; > } else { >+ int commaPos = lockDurationStr.indexOf(","); >+ // If multiple timeouts, just use the first >+ if (commaPos != -1) { >+ lockDurationStr = lockDurationStr.substring(0,commaPos); >+ } > if (lockDurationStr.startsWith("Second-")) { > lockDuration = > (new Integer(lockDurationStr.substring(7))).intValue();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 24001
: 9131