How to anonymously attach a file to an issue

Boyan Biandov December 7, 2017

Hi everyone,

I have already figured out how to allow issues to be created anonymously. However attaching files does not work. The screen shots up just fine; one can browse and select the file to be attached and once the "SUBMIT" button is clicked the issue is created; no errors to the end user or any other indication of any anomaly.

However on the back end no file is to be found in that newly created issue?

Any ideas? Thank you

1 answer

0 votes
somethingblue
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 20, 2017

Hi Boyan,

  • If you take a look at the logs do you see any errors? 
  • What version of JIRA are you using?

There was a bug for JIRA 6.4 OnDemand that was fixed a couple years ago and in the stack trace we were able to see errors similar to the following:

 java.lang.NullPointerException
     at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187)
     at com.atlassian.jira.issue.attachment.CreateAttachmentParamsBean$Builder.build(CreateAttachmentParamsBean.java:242)
     at com.atlassian.jira.issue.managers.DefaultAttachmentManager.transformTemporaryAttachment(DefaultAttachmentManager.java:428)
     at com.atlassian.jira.issue.managers.DefaultAttachmentManager.access$200(DefaultAttachmentManager.java:92)
     at com.atlassian.jira.issue.managers.DefaultAttachmentManager$3.apply(DefaultAttachmentManager.java:409)
     at com.atlassian.jira.issue.managers.DefaultAttachmentManager$3.apply(DefaultAttachmentManager.java:405)
     at com.google.common.collect.Iterators$8.next(Iterators.java:812)
     at com.google.common.collect.Lists.newArrayList(Lists.java:139)
     at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256)
     at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:217)

Take a look at the logs and let us know if you see anything and the version of JIRA you're on and we'll go from there.

Also, if you're using a version of JIRA prior to 7.0.x you may also want to consider installing JIRA on another box and import a backup and see if you run into the same behavior.  If not then an upgrade will probably be in order.

Cheers,

Branden

Suggest an answer

Log in or Sign up to answer