SonarQube Eclipse
  1. SonarQube Eclipse
  2. SONARIDE-225

If force authentication is set, running local analysis does not use authentication and fails.

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      If you set Sonar to force authentication, and setup Sonar plugin for Eclipse up to use that Sonar server, and fill out authentication information, when you run a local analysis, it is unable to execute, and the following error is displayed:

      Can't run local analysis when Sonar is forced to authenticate a user with Eclipse plugin.

      An internal error occurred during: "Sonar Analysis".
      org.sonar.wsclient.connectors.ConnectionException: HTTP error: 401,
      msg: Unauthorized, query:
      org.apache.commons.httpclient.methods.GetMethod@12b07606
      

      See http://old.nabble.com/Can%27t-run-local-analysis-when-Sonar-is-forced-to-authenticate-a-user-with-Eclipse-plugin.-to31380039.html

        Activity

        Hide
        Yves Langisch added a comment -

        The local analysis is a great feature but for us it's essential that we can use with 'Force authentication' enabled. Any idea when you are going to fix this?

        Yves

        Show
        Yves Langisch added a comment - The local analysis is a great feature but for us it's essential that we can use with 'Force authentication' enabled. Any idea when you are going to fix this? Yves
        Hide
        Lei Sun added a comment - - edited

        I also got this problem. The local analysis feature will be very helpful if this problem can be fixed.

        Thanks
        Lei

        Show
        Lei Sun added a comment - - edited I also got this problem. The local analysis feature will be very helpful if this problem can be fixed. Thanks Lei
        Hide
        Evgeny Mandrikov added a comment -

        Hi guys,

        I found from where this problem comes. And it would be fixed in 2.2.
        Sorry for inconvenience.

        Show
        Evgeny Mandrikov added a comment - Hi guys, I found from where this problem comes. And it would be fixed in 2.2. Sorry for inconvenience.
        Show
        Evgeny Mandrikov added a comment - Fixed in https://github.com/SonarSource/sonar-eclipse/commit/5e93aac80dc7bb329f19f3e35a3673f12ac750df
        Hide
        Freddy Mallet added a comment -

        Tested

        Show
        Freddy Mallet added a comment - Tested
        Hide
        Roger Hsu added a comment -

        I still met this problem with "Sonar Integration for Eclipse" version 2.2.0.20110721-1444,
        and it's the latest update I can get for now.

        The interesting part is, I can run local analysis on some projects, but met this problem on some others.

        Show
        Roger Hsu added a comment - I still met this problem with "Sonar Integration for Eclipse" version 2.2.0.20110721-1444, and it's the latest update I can get for now. The interesting part is, I can run local analysis on some projects, but met this problem on some others.

          People

          • Assignee:
            Evgeny Mandrikov
            Reporter:
            Larry Shatzer
          • Votes:
            14 Vote for this issue
            Watchers:
            16 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: