This is an automated email from the ASF dual-hosted git repository.
ishan pushed a commit to branch ishan/upgrade-to-lucene-10
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/ishan/upgrade-to-lucene-10 by
this push:
new bcd4815994e Don't close a stream during request parsing
bcd4815994e is described below
commit bcd4815994e70e4497f8b8a930571845383376d8
Author: Ishan Chattopadhyaya <[email protected]>
AuthorDate: Sat Jan 18 17:50:50 2025 +0530
Don't close a stream during request parsing
---
solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.java
b/solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.java
index 8902acf51a3..7aec319e17f 100644
--- a/solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.java
+++ b/solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.java
@@ -763,7 +763,7 @@ public class SolrRequestParsers {
// Protect container owned streams from being closed by us, see
SOLR-8933
in =
FastInputStream.wrap(
- in == null ? new CloseShieldInputStream(req.getInputStream())
: in);
+ in == null ? new CloseShieldInputStream(req.getInputStream())
: new CloseShieldInputStream(in));
final long bytesRead = parseFormDataContent(in, maxLength, charset,
map, false);
if (bytesRead == 0L && totalLength > 0L) {