Uploaded image for project: 'Capture for JIRA'
  1. Capture for JIRA
  2. BON-709

Invalid log message stops upgrade task



    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2
    • Component/s: None
    • Labels:


      Hmm looking at catalina.out we have this exception

      2011-12-22 21:35:31,769 main ERROR [jirafisheyeplugin.config.fisheye.FishEyeRepositoryStoreImpl] Could not retrieve deserialise repositories for unconfigured FishEye instance (id=1)
      2011-12-22 21:35:31,769 main ERROR [jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl] Cannot find configured repository for OPSMCAT: instance=1 repository=OPSMDigitalCatalogue path=/
      2011-12-22 21:35:31,819 main WARN [bonfire.upgradetasks.reindex.SessionStatusReindex] Starting upgrade - SessionStatusReindex
      2011-12-22 21:35:38,466 main WARN [atlassian.bonfire.upgradetasks.UpgradeTaskKit] Marking upgrade task com.atlassian.bonfire.upgradetasks.reindex.SessionStatusReindex as done for version 1.6.0
      2011-12-22 21:35:38,466 main WARN [bonfire.upgradetasks.reindex.SessionStatusReindex] Finishing upgrade - SessionStatusReindex
      2011-12-22 21:35:38,514 main WARN [atlassian.bonfire.upgradetasks.TemplatesUpgrade] Starting upgrade - TemplatesUpgrade
      2011-12-22 21:35:39,006 main ERROR [sal.core.upgrade.PluginUpgrader] Upgrade failed: Format specifier 's'
      java.util.MissingFormatArgumentException: Format specifier 's'
      at java.util.Formatter.format(Formatter.java:2432)
      at java.util.Formatter.format(Formatter.java:2367)
      at java.lang.String.format(String.java:2769)
      at com.atlassian.bonfire.upgradetasks.TemplatesUpgrade.doUpgrade(TemplatesUpgrade.java:123)
      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)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
      at org.spr
      The offending code is this

      // Need create issue permission in the project
      if (!jiraPermissionManager.hasPermission(Permissions.CREATE_ISSUE, projectResult.getProject(), creator))

      { log.warn(String.format("User %s cannot create issue in project with id %d")); continue; }

      The log message is invalid because its specifies a %s (string parameter) and then doesnt provide any parameters. We will have to fix that.

      We will look to get a 1.8.2 out to you as soon as possible.

      NOTE : this will only affect customers how have upgrade data that contains users that USED to have Create Issue permission but no longer do when the upgrade task runs.




            • Assignee:
              edwin@atlassian.com Edwin Wong
              bbaker Brad Baker
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: