Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-14181

DuplicateFormatFlagsException when trying to add repository without projectKey

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • None
    • DCON - old releases
    • DVCS Accounts
    • JIRA 4.4.1-studio-rc3
      BBC 0.15.4

    Description

      The virgin state of Studio lacks any projects. If someone tries to add a BB repository straight away without a project being setup yet in JIRA, the UI doesn't prevent you from doing so. When you try to add the repository, you are confronted with the normal JIRA 500 page spitting you out the following stack trace:

      ava.util.DuplicateFormatFlagsException: Flags = '0'
      	at java.util.Formatter$Flags.parse(Formatter.java:4140)
      	at java.util.Formatter$FormatSpecifier.flags(Formatter.java:2555)
      	at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2625)
      	at java.util.Formatter.parse(Formatter.java:2480)
      	at java.util.Formatter.format(Formatter.java:2414)
      	at java.util.Formatter.format(Formatter.java:2367)
      	at java.lang.String.format(String.java:2769)
      	at com.atlassian.jira.plugins.bitbucket.api.impl.DefaultEncryptor.encrypt(DefaultEncryptor.java:63)
      	at com.atlassian.jira.plugins.bitbucket.spi.DvcsRepositoryManager.addRepository(DvcsRepositoryManager.java:106)
      	at com.atlassian.jira.plugins.bitbucket.GlobalRepositoryManager.addRepository(GlobalRepositoryManager.java:86)
      	at com.atlassian.jira.plugins.bitbucket.spi.bitbucket.webwork.AddBitbucketRepository.doExecute(AddBitbucketRepository.java:64)
      	at webwork.action.ActionSupport.execute(ActionSupport.java:165)
      ...
      

      The best thing to do is probably to have a check if there are any projects currently setup, and to redirect/forward to /secure/project/ViewProjects.jspa if not.

      Attachments

        Activity

          People

            dhornik DusanA
            fakraemer fabs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: