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

Error: Invalid value 'explicit' for echoParams parameter, use 'EXPLICIT' or 'ALL'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.4.1
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      Invalid value 'explicit' for echoParams paramet2er, use 'EXPLICIT' or 'ALL' error is displayed when the default config file is used. In the config file echoParams value is 'explicit' , however for the Turkish locale uppercase of the word 'explicit' is EXPLİCİT and this doesn't match the word 'EXPLICIT'.

      toUpperCase(Locale.ENGLISH) can be used instead of using it with the default locale:

        public enum EchoParamStyle {
          EXPLICIT,
          ALL,
          NONE;
          
          public static EchoParamStyle get( String v ) {
            if( v != null ) {
              v = v.toUpperCase();
              if( v.equals( "EXPLICIT" ) ) {
                return EXPLICIT;
              }
              if( v.equals( "ALL") ) {
                return ALL;
              }
              if( v.equals( "NONE") ) {  // the same as nothing...
                return NONE;
              }
            }
            return null;
          }
        };
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rcmuir Robert Muir
                Reporter:
                bsrykt Başar Aykut
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: