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

Graph of SolrCloud is not shown in UI

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 8.4
    • None
    • Admin UI, SolrCloud
    • None
    • Linux RHEL

    Description

      Since 8.4 the Graph in the Admin UI (Solr Cloud) is not shown. The console reveals that it uses the eval function which is blocked by Content-Security-Policy (probably introduced in 8.4).

      I dont want to prescribe a solution here, but you could find the eval statement in the Admin UI and get rid of it (if possible, it might be a third party library) or relax the CSP for this specific page.

       

      At the moment, the page is not usable, but this only means a limited view on what happens in Solr - it does not affect running Solr.

      Attachments

        Issue Links

          Activity

            krisden Kevin Risden added a comment -

            No worries - Thanks for reporting and checking. 

            krisden Kevin Risden added a comment - No worries - Thanks for reporting and checking. 
            jornfranke Jörn Franke added a comment -

            It was the browser cache containing the previous Admin UI version of Solr

            jornfranke Jörn Franke added a comment - It was the browser cache containing the previous Admin UI version of Solr
            jornfranke Jörn Franke added a comment -

            Thank you all for the investigation. It was the cache.

            Sorry for the inconvenience.

            jornfranke Jörn Franke added a comment - Thank you all for the investigation. It was the cache. Sorry for the inconvenience.
            janhoy Jan Høydahl added a comment -

            Think it's a cache. It works here both on Safari, Chrome and Firefox:

            docker run --rm --name solr84 -d -p 8983:8983 solr:8.4.0 -c
            docker exec solr84 solr create -c testcoll -replicationFactor 3
            open http://localhost:8983/solr/#/~cloud?view=graph
            # Verify GUI
            docker stop solr84
            
            janhoy Jan Høydahl added a comment - Think it's a cache. It works here both on Safari, Chrome and Firefox: docker run --rm --name solr84 -d -p 8983:8983 solr:8.4.0 -c docker exec solr84 solr create -c testcoll -replicationFactor 3 open http://localhost:8983/solr/#/~cloud?view=graph # Verify GUI docker stop solr84
            jornfranke Jörn Franke added a comment -

            Ok let me come back on this tomorrow. Maybe it is just a cache despite I believed I cleared it.

            jornfranke Jörn Franke added a comment - Ok let me come back on this tomorrow. Maybe it is just a cache despite I believed I cleared it.
            krisden Kevin Risden added a comment -

            This is on a Mac with Chrome 79.0.3945.88

            krisden Kevin Risden added a comment - This is on a Mac with Chrome 79.0.3945.88
            krisden Kevin Risden added a comment - - edited

            jornfranke so I checked this quickly:

            Downloaded Apache Solr 8.4.0

            tar zxvf solr-8.4.0.tgz
            cd solr-8.4.0
            ./bin/solr -e cloud -noprompt
            

            Opened http://localhost:8983/solr/#/~cloud?view=graph

            I see the following graph page:

            krisden Kevin Risden added a comment - - edited jornfranke so I checked this quickly: Downloaded Apache Solr 8.4.0 tar zxvf solr-8.4.0.tgz cd solr-8.4.0 ./bin/solr -e cloud -noprompt Opened http://localhost:8983/solr/#/~cloud?view=graph I see the following graph page:

            People

              Unassigned Unassigned
              jornfranke Jörn Franke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: