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

New admin UI, .txt files don't show in RHS of Cloud/Tree screen

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4, 6.0
    • Fix Version/s: 6.2, master (7.0)
    • Component/s: Admin UI
    • Labels:
      None

      Description

      In the new admin UI, clicking on the "files" link (cloud>>tree>>configs>>some_config_set) and then randomly clicking on files doesn't always show the text of the file. Sometimes it does, sometimes it is just blank and sometimes it's the previous file.

      An awful lot of space is eaten up by the info on top like "aversion", "ctime" and the like, is this useful? Or could it be shrunk?

      Related: If I select the collection then under that the "files" link this all seems to work fine. But, I cannot see my managed schema. I want to in order to see the fieldTypes I have available, or more accurately the analysis chains associated with them.

      1. SOLR-8379.patch
        1 kB
        Jan Høydahl
      2. SOLR-8379.patch
        2 kB
        Jan Høydahl
      3. SOLR-8379.patch
        2 kB
        Jan Høydahl

        Issue Links

          Activity

          Hide
          arafalov Alexandre Rafalovitch added a comment -

          Is this still happening?

          The managed schema part at least should be resolved as part of SOLR-6992, I believe.

          Show
          arafalov Alexandre Rafalovitch added a comment - Is this still happening? The managed schema part at least should be resolved as part of SOLR-6992 , I believe.
          Hide
          arafalov Alexandre Rafalovitch added a comment -

          Ok, I tracked it down. It happens with .txt files which throws a Javascript exception and screen does not update.

          Show
          arafalov Alexandre Rafalovitch added a comment - Ok, I tracked it down. It happens with .txt files which throws a Javascript exception and screen does not update.
          Hide
          arafalov Alexandre Rafalovitch added a comment -

          Exception (in Firefox tools):

          Error: y is undefined
          p@http://localhost:8983/solr/libs/highlight.js:31:1
          f@http://localhost:8983/solr/libs/highlight.js:31:2547
          d@http://localhost:8983/solr/libs/highlight.js:31:3865
          @http://localhost:8983/solr/js/angular/app.js:151:47
          $parseFilter@http://localhost:8983/solr/libs/angular.js:12165:16
          $parseFilter@http://localhost:8983/solr/libs/angular.js:12156:19
          regularInterceptedExpression@http://localhost:8983/solr/libs/angular.js:12855:21
          expressionInputsWatch@http://localhost:8983/solr/libs/angular.js:12783:24
          $RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost:8983/solr/libs/angular.js:14240:34
          $RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:8983/solr/libs/angular.js:14511:13
          done@http://localhost:8983/solr/libs/angular.js:9669:36
          completeRequest@http://localhost:8983/solr/libs/angular.js:9859:7
          requestLoaded@http://localhost:8983/solr/libs/angular.js:9800:9
          
          Show
          arafalov Alexandre Rafalovitch added a comment - Exception (in Firefox tools): Error: y is undefined p@http: //localhost:8983/solr/libs/highlight.js:31:1 f@http: //localhost:8983/solr/libs/highlight.js:31:2547 d@http: //localhost:8983/solr/libs/highlight.js:31:3865 @http: //localhost:8983/solr/js/angular/app.js:151:47 $parseFilter@http: //localhost:8983/solr/libs/angular.js:12165:16 $parseFilter@http: //localhost:8983/solr/libs/angular.js:12156:19 regularInterceptedExpression@http: //localhost:8983/solr/libs/angular.js:12855:21 expressionInputsWatch@http: //localhost:8983/solr/libs/angular.js:12783:24 $RootScopeProvider/ this .$get</Scope.prototype.$digest@http: //localhost:8983/solr/libs/angular.js:14240:34 $RootScopeProvider/ this .$get</Scope.prototype.$apply@http: //localhost:8983/solr/libs/angular.js:14511:13 done@http: //localhost:8983/solr/libs/angular.js:9669:36 completeRequest@http: //localhost:8983/solr/libs/angular.js:9859:7 requestLoaded@http: //localhost:8983/solr/libs/angular.js:9800:9
          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user arafalov opened a pull request:

          https://github.com/apache/lucene-solr/pull/58

          SOLR-8379: Text file extension is 'txt'

          The do-not-highlight comparison was expecting type to be text, but it is based on extension, so was actually 'txt'. This was causing a stack trace and aborted population of the content box.

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/arafalov/lucene-solr-contributions alex-SOLR-8379

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/lucene-solr/pull/58.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #58


          commit 8fa73cd6383b3db48d91dd792e756f0471bd0358
          Author: Alexandre Rafalovitch <arafalov@gmail.com>
          Date: 2016-07-28T02:35:28Z

          SOLR-8379: Text file extension is 'txt'


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user arafalov opened a pull request: https://github.com/apache/lucene-solr/pull/58 SOLR-8379 : Text file extension is 'txt' The do-not-highlight comparison was expecting type to be text, but it is based on extension, so was actually 'txt'. This was causing a stack trace and aborted population of the content box. You can merge this pull request into a Git repository by running: $ git pull https://github.com/arafalov/lucene-solr-contributions alex- SOLR-8379 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/lucene-solr/pull/58.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #58 commit 8fa73cd6383b3db48d91dd792e756f0471bd0358 Author: Alexandre Rafalovitch <arafalov@gmail.com> Date: 2016-07-28T02:35:28Z SOLR-8379 : Text file extension is 'txt'
          Hide
          janhoy Jan Høydahl added a comment -

          This patch incorporates Alexandre's fix, adds CHANGES entry, and also collapses the file metadata by default. By clicking a new text "Toggle metadata" the metadata is shown/hidden.

          Show
          janhoy Jan Høydahl added a comment - This patch incorporates Alexandre's fix, adds CHANGES entry, and also collapses the file metadata by default. By clicking a new text "Toggle metadata" the metadata is shown/hidden.
          Hide
          janhoy Jan Høydahl added a comment -

          Splitting out the metadata collapse to own issue SOLR-9358. This newest patch is 100% equal to Alexandre Rafalovitch's PR dealing only with txt file display. I'll commit this shortly.

          Show
          janhoy Jan Høydahl added a comment - Splitting out the metadata collapse to own issue SOLR-9358 . This newest patch is 100% equal to Alexandre Rafalovitch 's PR dealing only with txt file display. I'll commit this shortly.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 96280d15e3f37cd497ec6de7d9e2f099d151b2d6 in lucene-solr's branch refs/heads/master from Jan Høydahl
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=96280d1 ]

          SOLR-8379: UI Cloud->Tree view now shows .txt files correctly. This closes #58

          Show
          jira-bot ASF subversion and git services added a comment - Commit 96280d15e3f37cd497ec6de7d9e2f099d151b2d6 in lucene-solr's branch refs/heads/master from Jan Høydahl [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=96280d1 ] SOLR-8379 : UI Cloud->Tree view now shows .txt files correctly. This closes #58
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user asfgit closed the pull request at:

          https://github.com/apache/lucene-solr/pull/58

          Show
          githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/lucene-solr/pull/58
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 0df3d5ad45e18d01c209ad039f53ad27d3adb7e1 in lucene-solr's branch refs/heads/branch_6x from Jan Høydahl
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=0df3d5a ]

          SOLR-8379: UI Cloud->Tree view now shows .txt files correctly. This closes #58
          (cherry picked from commit 96280d1)

          Show
          jira-bot ASF subversion and git services added a comment - Commit 0df3d5ad45e18d01c209ad039f53ad27d3adb7e1 in lucene-solr's branch refs/heads/branch_6x from Jan Høydahl [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=0df3d5a ] SOLR-8379 : UI Cloud->Tree view now shows .txt files correctly. This closes #58 (cherry picked from commit 96280d1)
          Hide
          janhoy Jan Høydahl added a comment -

          Thanks for the contribution!

          Show
          janhoy Jan Høydahl added a comment - Thanks for the contribution!
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 96280d15e3f37cd497ec6de7d9e2f099d151b2d6 in lucene-solr's branch refs/heads/apiv2 from Jan Høydahl
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=96280d1 ]

          SOLR-8379: UI Cloud->Tree view now shows .txt files correctly. This closes #58

          Show
          jira-bot ASF subversion and git services added a comment - Commit 96280d15e3f37cd497ec6de7d9e2f099d151b2d6 in lucene-solr's branch refs/heads/apiv2 from Jan Høydahl [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=96280d1 ] SOLR-8379 : UI Cloud->Tree view now shows .txt files correctly. This closes #58
          Hide
          mikemccand Michael McCandless added a comment -

          Bulk close resolved issues after 6.2.0 release.

          Show
          mikemccand Michael McCandless added a comment - Bulk close resolved issues after 6.2.0 release.

            People

            • Assignee:
              janhoy Jan Høydahl
              Reporter:
              erickerickson Erick Erickson
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development