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

Fail to display Porfolio Administration page when one of the project key is using UTF-8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.8
    • Fix Version/s: 7.9.3, 8.3
    • Labels:
      None
    • Edition:
      Enterprise
    • Production Notes:
      None

      Description

      How to reproduce

      1. Create a project: "<prj>."
      2. Add it to a Portfolio with manual selection mode.
      3. As a result Portfolio configuration page gets corrupted:

      Problem

      The documentation mentions in several places that only letters and a few characters are allowed in project keys. The UI shows an error when trying to create with a key using UTF-8 characters.
      But,

      • with SonarQube 7.9, it's possible to validate the project creation with such characters.
      • with SonarQube 7.9 and 8.2, it's possible to make a project a key use UTF-8 characters with several other ways: by creating the project with the first analysis, by updating an existing key or by calling directly web services.

      Project key validation is missing there.

      Work-around

      The project key using UTF-8 should be updated to not use anymore UTF-8 characters.

      How to fix this issue

      It should not be possible in any way to create (or update) a project with a key using UTF-8 characters.
      A warning should be displayed (in scanner console log and in project page) for projects who contain such characters to recommend updating the key.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.lancelot Julien Lancelot
              Reporter:
              julien.lancelot Julien Lancelot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: