Branch names with umlaut characters for Bitbucket Server repos can't be configured in branch plan

XMLWordPrintable

    • Type: Bug
    • Resolution: Answered
    • Priority: Low
    • None
    • Affects Version/s: 5.11.1
    • Component/s: None
    • None

      Summary

      Bamboo (MySQL database only) is not able to build branch names that contain umlaut characters.

      Steps to Reproduce

      1. Create a branch with umlaut characters such as UmläutTest in Bitbucket Server
      2. Create a linked repository to the repo and point it to the umlaut named branch
      3. Save

      Expected Results

      Bamboo should save the configuration with no errors.

      Actual Results

      The below exception is thrown in the atlassian-bamboo.log file:

      2016-05-11 16:20:56,844 INFO [http-nio-8085-exec-22] [StashRepository] Can't authenticate with Bitbucket Server despite successful public key storage: <public key> <bamboo URL>
      

      Extent

      • When the repository is configured as a Git type repository with the clone URL pointing to the umlaut branch, the configuration will be successful. However, starting the plan will throw such an error:
        2016-05-11 16:29:19,234 ERROR [6-DelayedChangeDetectionThread:pool-12-thread-14] [ChainExecutionManagerImpl] Plan 'TEST-STAS' could not be started. Exception: Cannot determine head revision of 'http://derics-mbp.local:7990/stash/scm/test/bambootest.git' on branch 'newUmla?utTest'. Branch has probably been removed.
        com.atlassian.bamboo.repository.InvalidRepositoryException: Cannot determine head revision of 'http://derics-mbp.local:7990/stash/scm/test/bambootest.git' on branch 'newUmla?utTest'. Branch has probably been removed.
        
      • When the plan is configured to create branch plans automatically, Bamboo will repetively create new branch plans for these umlaut branch but none of this will be enabled

      Workaround

      MySQL

      Add this parameter to the MySQL URL to prevent repetition of the branch creation:

      &amp;useUnicode=true&amp;characterEncoding=utf8
      

      Example:

      jdbc:mysql://localhost/bamboo?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf8
      

      Other databases are not affected.

            Assignee:
            Unassigned
            Reporter:
            Deric Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: