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

Error 500 when requesting invalid pages with credentials

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.2
    • Fix Version/s: 6.3
    • Component/s: Web API
    • Labels:

      Description

      In certain situations, we get a HTTP code 500 when requesting a non-existing page.
      It appears to happen only when doing the request with credentials, and to path under an existing page (for example /account/invalid).

      SonarQube should return 404 and avoid logging errors in its logs.

      Few tests:

      • [URL]/account/invalid with credentials: 500
      • [URL]/account/invalid w/o credentials: 404
      • [URL]/accountinvalid with credentials: 404
      • [URL]/accountinvalid w/o credentials: 404

      Same pattern can be seen if we try for example with /profile instead of /account.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: