diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 04a8f1f442f..8a39f46d5f3 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -156,6 +156,8 @@ Bug Fixes * SOLR-7972: Fix VelocityResponseWriter template encoding issue. Templates must be UTF-8 encoded. (Erik Hatcher) +* SOLR-7929: SimplePostTool (also bin/post) -filetypes "*" now works properly in 'web' mode (Erik Hatcher) + Optimizations ---------------------- diff --git a/solr/core/src/java/org/apache/solr/util/SimplePostTool.java b/solr/core/src/java/org/apache/solr/util/SimplePostTool.java index 646f5918d9b..8b03cdcc0c1 100644 --- a/solr/core/src/java/org/apache/solr/util/SimplePostTool.java +++ b/solr/core/src/java/org/apache/solr/util/SimplePostTool.java @@ -1093,7 +1093,7 @@ public class SimplePostTool { // Raw content type of form "text/html; encoding=utf-8" String rawContentType = conn.getContentType(); String type = rawContentType.split(";")[0]; - if(typeSupported(type)) { + if(typeSupported(type) || "*".equals(fileTypes)) { String encoding = conn.getContentEncoding(); InputStream is; if (encoding != null && encoding.equalsIgnoreCase("gzip")) {