{"record":{"id":"5a6ad1fc5a9f6057","repo":"apache/hadoop","slug":"invalid-configuration-value-detected-for-s-5a6ad1","errorCode":null,"errorMessage":"Invalid configuration value detected for %s","messagePattern":"Invalid configuration value detected for (.+?)","errorType":"validation","errorClass":"InvalidConfigurationValueException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/diagnostics/ConfigurationBasicValidator.java","lineNumber":49,"sourceCode":"  private final boolean throwIfInvalid;\n\n  ConfigurationBasicValidator(final String configKey, final T defaultVal, final boolean throwIfInvalid) {\n    this.configKey = configKey;\n    this.defaultVal = defaultVal;\n    this.throwIfInvalid = throwIfInvalid;\n  }\n\n  /**\n   * This method handles the base case where the configValue is null, based on the throwIfInvalid it either throws or returns the defaultVal,\n   * otherwise it returns null indicating that the configValue needs to be validated further.\n   * @param configValue the configuration value set by the user\n   * @return the defaultVal in case the configValue is null and not required to be set, null in case the configValue not null\n   * @throws InvalidConfigurationValueException in case the configValue is null and required to be set\n   */\n  public T validate(final String configValue) throws InvalidConfigurationValueException {\n    if (configValue == null) {\n      if (this.throwIfInvalid) {\n        throw new InvalidConfigurationValueException(this.configKey);\n      }\n      return this.defaultVal;\n    }\n    return null;\n  }\n\n  public T getDefaultVal() {\n    return this.defaultVal;\n  }\n\n  public String getConfigKey() {\n    return this.configKey;\n  }\n\n  public boolean getThrowIfInvalid() {\n    return this.throwIfInvalid;\n  }\n}","sourceCodeStart":31,"sourceCodeEnd":67,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/diagnostics/ConfigurationBasicValidator.java#L31-L67","documentation":"Error \"Invalid configuration value detected for %s\" thrown in apache/hadoop.","triggerScenarios":"A configuration property fails the generic ABFS configuration validation during filesystem initialization.","commonSituations":"See trigger scenarios.","solutions":["Correct the value of the named configuration key so it passes its validator.","Consult the ABFS configuration documentation for the accepted format of the key."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-23T01:17:44.959Z"}