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

Can't select my schema in Schema Designer in Admin UI: String cannot be cast to Boolean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 8.11
    • 9.0, 8.11.1
    • Admin UI, Schema Designer
    • None

    Description

      I can't select my schema in Schema Designer tab in Admin UI.

      It happens only when I disable automatic field guessing (according to this syntax reported in the code snippet below)

      The following errors are logged:

      • [AnnotatedApi]: Error executing command
      • [HttpSolrCall]: java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Boolean (java.lang.String and java.lang.Boolean are in module java.base of loader 'bootstrap')

      I can reproduce the bug with an example configuration:

      ./bin/solr start -e cloud -noprompt
      
      ./bin/solr config -c gettingstarted -p 8983 -action set-user-property -property update.autoCreateFields -value false
      
      

      Now go to Schema Designer and select the gettingstarted schema: you shouldn't be able to open it.

      Replacing false with "false" (with quotes) doesn't change the final result.

      Attachments

        Activity

          People

            thelabdude Timothy Potter
            simone-bid Simone
            Votes:
            0 Vote for this issue
            Watchers:
            4 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 - 50m
                50m