You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Simone (Jira)" <ji...@apache.org> on 2021/11/22 17:49:00 UTC

[jira] [Updated] (SOLR-15813) Can't select my schema in Schema Designer in Admin UI: String cannot be cast to Boolean

     [ https://issues.apache.org/jira/browse/SOLR-15813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simone updated SOLR-15813:
--------------------------
    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|#disabling-automatic-field-guessing])] (reported in the code snippet below)

The following errors are logged:
 * [{_}Annotated{_} Api]: 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:
{code:java}
./bin/solr start -e cloud -noprompt

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

{code}
Replacing _false_ with "{_}false{_}" (with quotes) doesn't change the final result.

  was:
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|[https://solr.apache.org/guide/8_11/schemaless-mode.html#disabling-automatic-field-guessing])] (reported in the code snippet below)

The following errors are logged:
 * [{_}Annotated Api{_}]: 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:
{code:java}
./bin/solr start -e cloud -noprompt

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

{code}
Replacing _false_ with "{_}false{_}" (with quotes) doesn't change the final result.


> Can't select my schema in Schema Designer in Admin UI: String cannot be cast to Boolean
> ---------------------------------------------------------------------------------------
>
>                 Key: SOLR-15813
>                 URL: https://issues.apache.org/jira/browse/SOLR-15813
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Admin UI
>    Affects Versions: 8.11
>            Reporter: Simone
>            Priority: Minor
>
> 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|#disabling-automatic-field-guessing])] (reported in the code snippet below)
> The following errors are logged:
>  * [{_}Annotated{_} Api]: 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:
> {code:java}
> ./bin/solr start -e cloud -noprompt
> ./bin/solr config -c gettingstarted -p 8983 -action set-user-property -property update.autoCreateFields -value false
> {code}
> Replacing _false_ with "{_}false{_}" (with quotes) doesn't change the final result.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org