Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-29112

JIRA throws 'Failed to publish web-hooks for event' error in the logs when multiple attachment is added to issue

    XMLWordPrintable

Details

    Description

      When user attach multiple files into an issue, JIRA does attach the files successfully. However, the JIRA logs produce noise:

      2012-07-26 20:48:57,526 http-8082-6 WARN admin 1248x270x1 1ohq849 10.60.1.204 /secure/AttachFile.jspa [labs.remoteapps.webhook.WebHookRegistrationManager] Failed to publish web-hooks for event com.atlassian.jira.event.issue.IssueEvent
      java.lang.IllegalArgumentException: duplicate key: Attachment
      	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115)
      	at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:72)
      	at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:221)
      	at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:207)
      	at com.atlassian.labs.remoteapps.product.jira.webhook.IssueEventMapper.changeGroupToMap(IssueEventMapper.java:78)
      	at com.atlassian.labs.remoteapps.product.jira.webhook.IssueEventMapper.toMap(IssueEventMapper.java:40)
      	at com.atlassian.labs.remoteapps.product.jira.webhook.IssueEventMapper.toMap(IssueEventMapper.java:16)
      	at com.atlassian.labs.remoteapps.product.jira.webhook.JiraEventSerializerFactory.create(JiraEventSerializerFactory.java:41)
      
      Workaround

      This issue still exists in JIRA 5.2, the following will act as a workaround to the verbose logging:

      • On the file system navigate to your directory {JIRA_INSTALL}/atlassian-jira/WEB-INF/classes/
      • Make a backup copy of log4j.properties
      • Add the following line to the log4j.properties file:
        com.atlassian.jira.plugins.webhooks.jira-webhooks-plugin = OFF, console, filelog
      • Restart JIRA

      Attachments

        Issue Links

          Activity

            People

              edalgliesh Eric Dalgliesh
              jalbion Janet Albion (Inactive)
              Votes:
              7 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: