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

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

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: