FAQ
Author: ehatcher
Date: Wed Aug 26 01:12:25 2015
New Revision: 1697798

URL: http://svn.apache.org/r1697798
Log:
Fix SimplePostTool (also bin/post) -filetypes * to work properly in 'web' mode

Modified:
     lucene/dev/trunk/solr/CHANGES.txt
     lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SimplePostTool.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1697798&r1=1697797&r2=1697798&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Wed Aug 26 01:12:25 2015
@@ -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
  ----------------------


Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SimplePostTool.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SimplePostTool.java?rev=1697798&r1=1697797&r2=1697798&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SimplePostTool.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/SimplePostTool.java Wed Aug 26 01:12:25 2015
@@ -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")) {

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcommits @
categorieslucene
postedAug 26, '15 at 1:12a
activeAug 26, '15 at 1:12a
posts1
users1
websitelucene.apache.org

1 user in discussion

Ehatcher: 1 post

People

Translate

site design / logo © 2021 Grokbase