How to anonymously attach a file to an issue

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

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,189 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you