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.

      1. SOLR-5448.patch
        4 kB
        Erick Erickson

        Activity

        Hide
        erickerickson Erick Erickson added a comment -

        Quick patch, one line fix and 30 lines to test. Siiiiggghhh.

        I'm going out now and won't have time to commit this until this evening or tomorrow morning.

        This has been in there since day 1, Stefan Matheis (steffkes) is just the first lucky one to find it.

        Show
        erickerickson Erick Erickson added a comment - Quick patch, one line fix and 30 lines to test. Siiiiggghhh. I'm going out now and won't have time to commit this until this evening or tomorrow morning. This has been in there since day 1, Stefan Matheis (steffkes) is just the first lucky one to find it.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 1542436 from Erick Erickson in branch 'dev/trunk'
        [ https://svn.apache.org/r1542436 ]

        SOLR-5448: ShowFileRequestHandler treats everything as Directory, when in Cloud-Mode

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1542436 from Erick Erickson in branch 'dev/trunk' [ https://svn.apache.org/r1542436 ] SOLR-5448 : ShowFileRequestHandler treats everything as Directory, when in Cloud-Mode
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 1542451 from Erick Erickson in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1542451 ]

        SOLR-5448: ShowFileRequestHandler treats everything as Directory, when in Cloud-Mode

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1542451 from Erick Erickson in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1542451 ] SOLR-5448 : ShowFileRequestHandler treats everything as Directory, when in Cloud-Mode

          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:

              Development