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

Environment banner not working if environment is not dev or prod

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 8.11.1
    • 9.0
    • None
    • None

    Description

      When using the new system property to display a environment banner in Solr UI, I cannot make it work.

       

      First attempt with `-Dsolr.environment=unknown,color=red` gives the following error message on the UI: "Bad environment pattern: unknown,color=red".

       

      Second attempt with just `-Dsolr.environment=unknown` gives no error but no banner appear nowhere.

       

      Third attempt using "dev" or "prod" do work. Thus I'm guessing there is a list of allowed values?

      I believe any value should be accepted as orgs can have various name for their environment, especially with ephemeral environment.

      Or at least the documentation should mention the list of allowed values.

      Attachments

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              gjourdan Gaël Jourdan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m