Users is not able to upload attachments during create issue or add to existing issue.
This is reproducible on Data Center: (yes)
- Log in to Jira on tab A
- Open a second tab B.
- In tab B, log out of Jira, and then log back in.
- Back in tab A, click the ‘Create’ button.
- Assuming the ‘Create Issue’ form has an ‘Attachment’ field, try to attach a file or image. It will fail.
The attachment would be uploaded successfully.
The attachment upload will failed with the following error
The problem is that there is a <meta id="atlassian-token" name="atlassian-token" content="…."> HTML element in the page. Normally it’s value is identical to the ‘atlassian.xsrf.token’ cookie value, but when Jira logs out and back in on another tab, its value becomes stale.
The insidious thing is that ‘Create Issue’ from a stale tab does work. It’s only the attachment upload that uses the < meta> attribute and fails.
Currently there is no known workaround for this behavior. A workaround will be added here when available.