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

Missing token when attaching a file after login while accessing a project.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 8.12.0
    • 7.13.1, 8.1.0, 7.13.2, 7.6.12, 8.5.1, 8.7.1, 8.10.0, 8.5.6
    • Issue - View Issue

      Issue Summary

      JIRA doesn't correctly create a session token when you access the <Jira URL>/projects/<Project key>/issues page prior to login. If you directly click on the create button and try to attach an attachment a missing token error is thrown. This is rectified by cancelling the issue creation or navigating to the dashboard.

      Steps to Reproduce

      1. Log off from Jira
      2. Go to <Jira URL>/projects/<Project key>/issues
        • after login automatic redirected to <Jira url>/projects/<Project key>/issues/<Issue key>?filter=allopenissues
      3. Click create button
      4. Try to attach a file

      Expected Results

      Attachment is attached.

      Actual Results

      An error is thrown:
      JIRA could not attach the file as there was a missing token. Please try attaching the file again.

      Note on fix

      xsrf-token-addition filter was moved before Dispatcher so in case request is flushed, it will have all necessary XSRF headers.

      Workaround

      Cancel the issue creation and try again.

            4a4b131c106c Lukasz Gosiewski
            sdegroot@atlassian.com Steven de Groot
            Votes:
            119 Vote for this issue
            Watchers:
            140 Start watching this issue

              Created:
              Updated:
              Resolved: