Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7037

Improve logging on authentication failure

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3
    • Component/s: Scanner
    • Labels:
      None

      Description

      On authentication problems, the error message is too technical.
      We should take the chance and see if messages caused by other predictable situations can be improved.

      ERROR: Caused by: Unable to load component class org.sonar.batch.bootstrap.BatchPluginInstaller: Unable to load component class org.sonar.home.cache.FileCache: Unable to load component class org.sonar.batch.bootstrap.GlobalSettings: Unable to load component class org.sonar.batch.protocol.input.GlobalRepositories: Not authorized. Analyzing this project requires to be authenticated. Please provide the values of the properties sonar.login and sonar.password.
      ERROR: Caused by: Unable to load component class org.sonar.home.cache.FileCache: Unable to load component class org.sonar.batch.bootstrap.GlobalSettings: Unable to load component class org.sonar.batch.protocol.input.GlobalRepositories: Not authorized. Analyzing this project requires to be authenticated. Please provide the values of the properties sonar.login and sonar.password.
      ERROR: Caused by: Unable to load component class org.sonar.batch.bootstrap.GlobalSettings: Unable to load component class org.sonar.batch.protocol.input.GlobalRepositories: Not authorized. Analyzing this project requires to be authenticated. Please provide the values of the properties sonar.login and sonar.password.
      ERROR: Caused by: Unable to load component class org.sonar.batch.protocol.input.GlobalRepositories: Not authorized. Analyzing this project requires to be authenticated. Please provide the values of the properties sonar.login and sonar.password.
      ERROR: Caused by: Not authorized. Analyzing this project requires to be authenticated. Please provide the values of the properties sonar.login and sonar.password.
      ERROR: Caused by: Fail to download [http://localhost:9000/batch/global]. Response code: 401
      

        Attachments

          Activity

            People

            Assignee:
            duarte.meneses Duarte Meneses
            Reporter:
            duarte.meneses Duarte Meneses
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: