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

Fail to update an application branch name

    XMLWordPrintable

    Details

    • Edition:
      Enterprise
    • Production Notes:
      None

      Description

      Description

      When renaming the branch name of an application and recomputing all applications, an error message is displayed "An error has occurred, please contact your administrator".

      Here's the exception in ce.log :

      2019.12.11 10:12:17 ERROR web[AW70MeDPg8jBYoEFAAE8][o.s.s.w.WebServiceEngine] Fail to process request http://10.0.2.11:9000/api/views/refresh
      java.lang.IllegalStateException: Application branch with key ‘application1:BRANCH:branch2’ doesn’t exist
      at com.google.common.base.Preconditions.checkState(Preconditions.java:197)
      at com.sonar.governance.ce.B.A.A(Unknown Source)
      at com.sonar.governance.ce.B.A.A(Unknown Source)
      at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
      at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720)
      at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
      at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
      at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312)
      

      Technical details

      In order to rename the application branch name, we need to rename the internal key of the application branch, as the branch is part of the key in the PROJECTS table.
      This ticket should then be tackle when we'll be able to update the key of an application/portfolio with SONAR-10758.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zipeng.wu Zipeng Wu
              Reporter:
              julien.lancelot Julien Lancelot
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: