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

Admin UI content is cached resulting in errors when switching between Solr versions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.6.6, 7.2.1, 8.1.1
    • Fix Version/s: None
    • Component/s: Admin UI
    • Labels:
      None

      Description

      Discussed on mailing list (Unexpected behaviour when Solr 6 Admin UI pages are cached and server is Solr 8?)

      I've encountered this in the process of preparing to migrate from Solr 6.6.6 to 8.1.x, with Basic Auth enabled.

       
      When switching between a Solr server version that uses the Login Form for the Admin UI and an older version that uses the browsers's Basic Auth prompt (and going in the opposite direction too), there is caching of Admin UI content that causes errors to be shown in the UI.
       
      In all cases, reloading the UI without going to cache fixes the problem. But that requires manual intervention after having encountered a very broken looking UI


      Going from Solr 6.6.6 to 8.1.1

       In Chrome, I got a Basic Auth prompt in the browser, rather than the login page. Then when trying to run a query (from http://localhost:8983/solr/#/gettingstarted/query), the results pane showed a 401 for the entire results frame. Reloading the page without cache fixed it. i.e the login page appeared and I then logged in through it, and things worked correctly.

      In Firefox, I got the login page, but it was malformed (see https://issues.apache.org/jira/secure/attachment/12971033/login8FF.jpg). In the dev console the error was

      Error: [$injector:unpr] Unknown provider: AuthenticationServiceProvider <- AuthenticationService <- LoginController
      http://errors.angularjs.org/1.3.8/$injector/unpr?p0=AuthenticationServiceProvider%20%3C-%20AuthenticationService%20%3C-%20LoginController
      minErr/<@http://localhost:8983/solr/libs/angular.js:86:12
      createInjector/providerCache.$injector<@http://localhost:8983/solr/libs/angular.js:4017:19
      getService@http://localhost:8983/solr/libs/angular.js:4164:39
      createInjector/instanceCache.$injector<@http://localhost:8983/solr/libs/angular.js:4022:28
      getService@http://localhost:8983/solr/libs/angular.js:4164:39
      invoke@http://localhost:8983/solr/libs/angular.js:4196:13
      instantiate@http://localhost:8983/solr/libs/angular.js:4213:27
      $ControllerProvider/this.$get</<@http://localhost:8983/solr/libs/angular.js:8472:18
      link@http://localhost:8983/solr/libs/angular-route.min.js:30:268
      invokeLinkFn@http://localhost:8983/solr/libs/angular.js:8236:9
      nodeLinkFn@http://localhost:8983/solr/libs/angular.js:7745:11
      compositeLinkFn@http://localhost:8983/solr/libs/angular.js:7098:13
      publicLinkFn@http://localhost:8983/solr/libs/angular.js:6977:30
      boundTranscludeFn@http://localhost:8983/solr/libs/angular.js:7116:16
      controllersBoundTransclude@http://localhost:8983/solr/libs/angular.js:7772:18
      x@http://localhost:8983/solr/libs/angular-route.min.js:29:364
      $broadcast@http://localhost:8983/solr/libs/angular.js:14725:15
      m/<@http://localhost:8983/solr/libs/angular-route.min.js:34:426
      processQueue@http://localhost:8983/solr/libs/angular.js:13193:27
      scheduleProcessQueue/<@http://localhost:8983/solr/libs/angular.js:13209:27
      $eval@http://localhost:8983/solr/libs/angular.js:14406:16
      $digest@http://localhost:8983/solr/libs/angular.js:14222:15
      $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
       <div ng-view="" id="content" class="ng-scope">
      angular.js:11617:18
      

      Going from Solr 8.1.1 to 6.6.6, both FF and Chrome have similar errors

      angular.js:86 Uncaught Error: [$injector:modulerr] Failed to instantiate module solrAdminApp due to:
      Error: [$injector:modulerr] Failed to instantiate module ab-base64 due to:
      Error: [$injector:nomod] Module 'ab-base64' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
      http://errors.angularjs.org/1.3.8/$injector/nomod?p0=ab-base64
          at http://localhost:8983/solr/libs/angular.js:86:12
          at http://localhost:8983/solr/libs/angular.js:1787:17
          at ensure (http://localhost:8983/solr/libs/angular.js:1711:38)
          at module (http://localhost:8983/solr/libs/angular.js:1785:14)
          at http://localhost:8983/solr/libs/angular.js:4117:22
          at forEach (http://localhost:8983/solr/libs/angular.js:346:20)
          at loadModules (http://localhost:8983/solr/libs/angular.js:4101:5)
          at http://localhost:8983/solr/libs/angular.js:4118:40
          at forEach (http://localhost:8983/solr/libs/angular.js:346:20)
          at loadModules (http://localhost:8983/solr/libs/angular.js:4101:5)
      http://errors.angularjs.org/1.3.8/$injector/modulerr?p0=ab-base64&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'ab-base64'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.3.8%2F%24injector%2Fnomod%3Fp0%3Dab-base64%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A86%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A1787%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A1711%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A1785%3A14)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A4117%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A346%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A4101%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A4118%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A346%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A4101%3A5)
          at http://localhost:8983/solr/libs/angular.js:86:12
          at http://localhost:8983/solr/libs/angular.js:4140:15
          at forEach (http://localhost:8983/solr/libs/angular.js:346:20)
          at loadModules (http://localhost:8983/solr/libs/angular.js:4101:5)
          at http://localhost:8983/solr/libs/angular.js:4118:40
          at forEach (http://localhost:8983/solr/libs/angular.js:346:20)
          at loadModules (http://localhost:8983/solr/libs/angular.js:4101:5)
          at createInjector (http://localhost:8983/solr/libs/angular.js:4027:11)
          at doBootstrap (http://localhost:8983/solr/libs/angular.js:1469:20)
          at bootstrap (http://localhost:8983/solr/libs/angular.js:1490:12)
      http://errors.angularjs.org/1.3.8/$injector/modulerr?p0=solrAdminApp&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20Failed%20to%20instantiate%20module%20ab-base64%20due%20to%3A%0AError%3A%20%5B%24injector%3Anomod%5D%20Module%20'ab-base64'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.3.8%2F%24injector%2Fnomod%3Fp0%3Dab-base64%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A86%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A1787%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A1711%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A1785%3A14)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A4117%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A346%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A4101%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A4118%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A346%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A4101%3A5)%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.3.8%2F%24injector%2Fmodulerr%3Fp0%3Dab-base64%26p1%3DError%253A%2520%255B%2524injector%253Anomod%255D%2520Module%2520'ab-base64'%2520is%2520not%2520available!%2520You%2520either%2520misspelled%2520the%2520module%2520name%2520or%2520forgot%2520to%2520load%2520it.%2520If%2520registering%2520a%2520module%2520ensure%2520that%2520you%2520specify%2520the%2520dependencies%2520as%2520the%2520second%2520argument.%250Ahttp%253A%252F%252Ferrors.angularjs.org%252F1.3.8%252F%2524injector%252Fnomod%253Fp0%253Dab-base64%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8983%252Fsolr%252Flibs%252Fangular.js%253A86%253A12%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8983%252Fsolr%252Flibs%252Fangular.js%253A1787%253A17%250A%2520%2520%2520%2520at%2520ensure%2520(http%253A%252F%252Flocalhost%253A8983%252Fsolr%252Flibs%252Fangular.js%253A1711%253A38)%250A%2520%2520%2520%2520at%2520module%2520(http%253A%252F%252Flocalhost%253A8983%252Fsolr%252Flibs%252Fangular.js%253A1785%253A14)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8983%252Fsolr%252Flibs%252Fangular.js%253A4117%253A22%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A8983%252Fsolr%252Flibs%252Fangular.js%253A346%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A8983%252Fsolr%252Flibs%252Fangular.js%253A4101%253A5)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8983%252Fsolr%252Flibs%252Fangular.js%253A4118%253A40%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A8983%252Fsolr%252Flibs%252Fangular.js%253A346%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A8983%252Fsolr%252Flibs%252Fangular.js%253A4101%253A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A86%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A4140%3A15%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A346%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A4101%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A4118%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A346%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A4101%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A4027%3A11)%0A%20%20%20%20at%20doBootstrap%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A1469%3A20)%0A%20%20%20%20at%20bootstrap%20(http%3A%2F%2Flocalhost%3A8983%2Fsolr%2Flibs%2Fangular.js%3A1490%3A12)
          at http://localhost:8983/solr/libs/angular.js:86:12
          at http://localhost:8983/solr/libs/angular.js:4140:15
          at forEach (http://localhost:8983/solr/libs/angular.js:346:20)
          at loadModules (http://localhost:8983/solr/libs/angular.js:4101:5)
          at createInjector (http://localhost:8983/solr/libs/angular.js:4027:11)
          at doBootstrap (http://localhost:8983/solr/libs/angular.js:1469:20)
          at bootstrap (http://localhost:8983/solr/libs/angular.js:1490:12)
          at angularInit (http://localhost:8983/solr/libs/angular.js:1384:5)
          at HTMLDocument.<anonymous> (http://localhost:8983/solr/libs/angular.js:26088:5)
          at j (http://localhost:8983/solr/libs/jquery-2.1.3.min.js:27:26911)
      (anonymous) @ angular.js:86
      (anonymous) @ angular.js:4140
      forEach @ angular.js:346
      loadModules @ angular.js:4101
      createInjector @ angular.js:4027
      doBootstrap @ angular.js:1469
      bootstrap @ angular.js:1490
      angularInit @ angular.js:1384
      (anonymous) @ angular.js:26088
      j @ jquery-2.1.3.min.js:27
      fireWith @ jquery-2.1.3.min.js:27
      ready @ jquery-2.1.3.min.js:27
      I @ jquery-2.1.3.min.js:27
      

        Attachments

        1. image-2019-06-06-10-00-35-262.png
          22 kB
          Colvin Cowie
        2. login8FF.jpg
          290 kB
          Colvin Cowie

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cjcowie Colvin Cowie
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: