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

Preview analysis might be impossible if it occurs right after an analysis that was executed on a different timezone

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      SonarQube 4.1

      Description

      The case:

      • Project Foo is analysed at time T on a central SQ instance located in Europe
      • A few minutes later, Mr Bar wants to run a preview analysis of project Foo but he's working in USA => the analysis fails with a message like:
      Caused by: java.lang.IllegalArgumentException: 'sonar.projectDate' property cannot be older than the date of the last known quality snapshot on this project. Value: '2014-01-23T14:40:35-0700'. Latest quality snapshot: '2014-01-23'. This property may only be used to rebuild the past in a chronological order.
      at
      org.sonar.batch.ProjectConfigurator.checkCurrentAnalysisIsTheLatestOne(ProjectConfigurator.java:87)
         at org.sonar.batch.ProjectConfigurator.configure(ProjectConfigurator.java:71)
         at org.sonar.batch.DefaultProjectTree.doStart(DefaultProjectTree.java:72)
         at org.sonar.batch.DefaultProjectTree.start(DefaultProjectTree.java:49)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
      

      See discussion on user ML.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bteryk OLD - Teryk Bellahsene
                Reporter:
                fabemn OLD - Fabrice Bellingard
              • Votes:
                16 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: