chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1235237 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/filter/LoggingFilter.java
Date Tue, 24 Jan 2012 13:09:31 GMT
Author: jens
Date: Tue Jan 24 13:09:31 2012
New Revision: 1235237

URL: http://svn.apache.org/viewvc?rev=1235237&view=rev
Log:
do not get InputStream in filter from request before servlet asks for it

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=1235237&r1=1235236&r2=1235237&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
Tue Jan 24 13:09:31 2012
@@ -328,16 +328,16 @@ public class LoggingFilter implements Fi
    
         public LoggingRequestWrapper(HttpServletRequest request) throws IOException {
            super(request);
-           this.is = new LoggingInputStream(request.getInputStream());
         }
    
         @Override
         public ServletInputStream getInputStream() throws IOException {
-           return is;
+            this.is = new LoggingInputStream(super.getInputStream());
+            return is;
         }
    
         public String getPayload() {
-           return is.getPayload();
+           return null == is ? "" : is.getPayload();
         }
      }
    



Mime
View raw message