chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1233122 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/filter/LoggingFilter.java
Date Wed, 18 Jan 2012 23:30:15 GMT
Author: jens
Date: Wed Jan 18 23:30:15 2012
New Revision: 1233122

URL: http://svn.apache.org/viewvc?rev=1233122&view=rev
Log:
fix in logging filter: parsing error for multipart boundary

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/filter/LoggingFilter.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/filter/LoggingFilter.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/filter/LoggingFilter.java?rev=1233122&r1=1233121&r2=1233122&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/filter/LoggingFilter.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/filter/LoggingFilter.java
Wed Jan 18 23:30:15 2012
@@ -216,6 +216,8 @@ public class LoggingFilter implements Fi
     private String processMultipart(String cType, String messageBody) throws IOException
{
         int beginIndex = cType.indexOf("boundary=\"") + 10;
         int endIndex = cType.indexOf("\"", beginIndex);
+        if (endIndex < 0)
+            endIndex = cType.length();
         String boundary = "--" + cType.substring(beginIndex, endIndex);
         log.debug("Boundary = " + boundary);
         BufferedReader in = new BufferedReader(new StringReader(messageBody));



Mime
View raw message