Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5448

ShowFileRequestHandler treats everything as Directory, when in Cloud-Mode

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.7, 6.0
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      While working on SOLR-5446, i've discovered that the ShowFileRequestHandler changes its output.

        % curl -s 'http://arch.vm:8984/solr/collection1/admin/file?wt=json' | json
      {
          "files": {
              "admin-extra.html": {
                  "modified": "2013-08-25T01:44:06Z",
                  "size": 1068
              },
              "clustering": {
                  "directory": true,
                  "modified": "2013-08-25T01:44:05Z"
              },
              "currency.xml": {
                  "modified": "2013-08-25T01:44:06Z",
                  "size": 3974
              }
          }
      }

      While, when running in Cloud-Mode:

        % curl -s 'http://arch.vm:8984/solr/collection1/admin/file?wt=json' | json
      {
          "files": {
              "admin-extra.html": {
                  "directory": true
              },
              "clustering": {
                  "directory": true
              },
              "currency.xml": {
                  "directory": true
              }
          }
      }

      That's valid for trunk as well as branch_4x.

        Attachments

        1. SOLR-5448.patch
          4 kB
          Erick Erickson

          Activity

            People

            • Assignee:
              erickerickson Erick Erickson
              Reporter:
              steffkes Stefan Matheis (steffkes)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: