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

Project homepage cannot be displayed when project contains link of type 'scm_ro'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Description

      It's not possible to display the project homepage of a project that contains a link of type scm_ro.

      Here's the web console error :

      react-dom.production.min.js:164 TypeError: Cannot read property 'toLowerCase' of undefined 
          at utils.js:33
          at _baseOrderBy.js:24
          at t.exports (_arrayMap.js:16)
          at _baseOrderBy.js:23
          at _baseMap.js:17
          at _createBaseEach.js:24
          at t.exports (_baseMap.js:16)
          at t.exports (_baseOrderBy.js:22)
          at sortBy.js:45
          at t.exports (_apply.js:15)
          at _overRest.js:32
          at u (utils.js:33)
          at t.render (MetaLinks.tsx:71)
          at u (react-dom.production.min.js:130)
          at beginWork (react-dom.production.min.js:133)
          at r (react-dom.production.min.js:161)
          at i (react-dom.production.min.js:161)
          at a (react-dom.production.min.js:162)
          at x (react-dom.production.min.js:169)
          at E (react-dom.production.min.js:168)
          at v (react-dom.production.min.js:167)
          at h (react-dom.production.min.js:165)
          at Object.enqueueSetState (react-dom.production.min.js:108)
          at t.v.setState (react.production.min.js:12)
          at MetaLinks.tsx:58
      

      Here's the result of api/project_links/search?projectKey=XXX :

      {
        "id": "AWIZ_zWT3o6CyqrqirXR",
        "type": "scm_ro",
        "url": "scm:svn:http://svn.apache.org/repos/asf/commons/proper/io/trunk"
      }
      

      Name is missing, which is interpreted by the web as a bundled link, which is not the case as such links are supported since a while.

      Solution

      • Quick fix : Executing a new analysis of the project will remove the link, so the dashboard will be available.
      • Dev fix : A migration should be created to remove all project links of type 'scm_ro'

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: