Solr
  1. Solr
  2. SOLR-7929

SimplePostTool (also bin/post) -filetypes "*" does not work properly in 'web' mode

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.3.1, 6.0
    • Component/s: None
    • Labels:
      None

      Description

       $ bin/post -c tmp http://lucene.apache.org/solr/assets/images/book_sia.png -filetypes “*”
          ...
       Entering auto mode. Indexing pages with content-types corresponding to file endings *
       Entering crawl at level 0 (1 links total, 1 new)
       SimplePostTool: WARNING: Skipping URL with unsupported type image/png
      

      the mapping from image/png to a file type does not exist, and thus fails. This works in 'file' mode though.

      1. SOLR-7929.patch
        0.7 kB
        Erik Hatcher

        Activity

        Hide
        Erik Hatcher added a comment -

        Here's a quick patch that just makes "*" for filetypes special in web crawling such that it doesn't do a reverse contentType -> file extension check.

        Show
        Erik Hatcher added a comment - Here's a quick patch that just makes "*" for filetypes special in web crawling such that it doesn't do a reverse contentType -> file extension check.
        Hide
        Erik Hatcher added a comment - - edited

        The commits were not SOLR-7929 prefixed, so they didn't get added here automatically. Here's the relevant commits:

        • trunk: r1697798
        • branch_5x: r1697799
        Show
        Erik Hatcher added a comment - - edited The commits were not SOLR-7929 prefixed, so they didn't get added here automatically. Here's the relevant commits: trunk: r1697798 branch_5x: r1697799
        Hide
        ASF subversion and git services added a comment -

        Commit 1701886 from Erik Hatcher in branch 'dev/branches/lucene_solr_5_3'
        [ https://svn.apache.org/r1701886 ]

        SOLR-7972, SOLR-7929, SOLR-7978: merge fixes to 5.3 branch for 5.3.1 release

        Show
        ASF subversion and git services added a comment - Commit 1701886 from Erik Hatcher in branch 'dev/branches/lucene_solr_5_3' [ https://svn.apache.org/r1701886 ] SOLR-7972 , SOLR-7929 , SOLR-7978 : merge fixes to 5.3 branch for 5.3.1 release

          People

          • Assignee:
            Erik Hatcher
            Reporter:
            Erik Hatcher
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development