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

Create events not working for branches

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.2, 8.3, 8.3.1, 8.4, 8.4.1, 8.4.2, 8.5, 8.5.1
    • Fix Version/s: 8.7
    • Component/s: None
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      The WS endpoint api/project_analyses/create_event fails if the analysis id provided is part of a branch (other than the main branch).
      This bug was introduced in v8.2.

        1 java.lang.IllegalStateException: Project of analysis 'AXW81cL0i67mWeHUWE8n' is not found
         2   at org.sonar.server.projectanalysis.ws.CreateEventAction.lambda$getProjectOrApplication$1(CreateEventAction.java:138)
         3   at java.base/java.util.Optional.orElseThrow(Optional.java:408)
         4   at org.sonar.server.projectanalysis.ws.CreateEventAction.getProjectOrApplication(CreateEventAction.java:138)
         5   at org.sonar.server.projectanalysis.ws.CreateEventAction.doHandle(CreateEventAction.java:113)
         6   at org.sonar.server.projectanalysis.ws.CreateEventAction.handle(CreateEventAction.java:105)
      

        Attachments

          Activity

            People

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

              Dates

              Due:
              Created:
              Updated:
              Resolved: