-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 5.1
-
Component/s: Issue - Attachments
-
5.01
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
- is related to
-
JRASERVER-30580 Autotransition Listener NPE : Failed to publish web-hooks for event
-
- Closed
-