Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-18230

Locale setting breaks build log timestamp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • None
    • 5.15.0.1
    • None

    Description

      Summary

      If locale setting in the Bamboo Server computer makes the date use a special character, Bamboo will fail to parse the date, returning null.

      Environment

      Linux with locale settings that use special characters for either days or months.

      Steps to reproduce

      1. In catalina.sh (for Linux), add "user.language=XX" for JAVA_OPTS. For example:
        JAVA_OPTS="$JAVA_OPTS $JSSE_OPTS -Duser.language=de -Duser.region=DE"
        

        We are now in March. In german, March is März. The "umlaut" cannot be parsed.

      2. Run a build.

      Expected results

      03-Mar-2017 16:33:55 	JOB1
      03-Mar-2017 16:33:55 	going to sleep.
      03-Mar-2017 16:33:58 	sleeping done
      

      Actual results

      01-Jan-1970 01:00:00 	JOB1
      01-Jan-1970 01:00:00 	going to sleep.
      01-Jan-1970 01:00:00 	sleeping done
      

      Workaround

      1. Force tomcat to use english locale:
        JAVA_OPTS="$JAVA_OPTS $JSSE_OPTS -Duser.language=en -Duser.region=DE"
        

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pdemitrio Patricio
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: