Author: nbelaevski
Date: 2009-09-18 19:00:33 -0400 (Fri, 18 Sep 2009)
New Revision: 15629
Modified:
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java
Log:
https://jira.jboss.org/jira/browse/RF-7631
Modified:
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java
===================================================================
---
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java 2009-09-18
17:26:23 UTC (rev 15628)
+++
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/request/MultipartRequest.java 2009-09-18
23:00:33 UTC (rev 15629)
@@ -78,7 +78,7 @@
private int read = 0;
//we shouldn't allow to stop until request reaches PhaseListener because of
portlets
- private boolean canStop = false;
+ private volatile boolean canStop = false;
private Map<String, Param> parameters = null;
@@ -625,6 +625,8 @@
if (!this.shouldStop) {
throw new FileUploadException("IO Error parsing multipart request", e);
}
+ } finally {
+ canStop = false;
}
}