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

Clicking 'Retry' on missing XSRF token when creating a new issue results in a client-side error

XMLWordPrintable

      Issue Summary

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. Open create issue dialog
      2. Make the current form token to be invalid.
        (for example, directly modifying the token in the page source/Elements tab; or performing the action in a new tab and then going back here).
      3. Fill in the create issue form as usual.
      4. Submit.
      5. Missing XSRF token dialog will appear with 'Retry' button.
      6. Click 'Retry'.

      https://www.loom.com/share/e068919ee2314d849667074ddcef9659 

      Expected Results

      The form will be submitted as usual, i.e. either it'll close with a success flag or when 'create another' is checked, the form should stay with the form success message within.

      Actual Results

      Fortunately, the issue is created under the hood, so there's no data loss.
      However, the form is broken since that action. A user cannot cancel/close it. A user doesn't know whether the issue was saved or data has been lost. A user can click 'Create' one more time and this may create duplicates under the hood.

      Workaround

      The recovery requires refreshing the page.

              mrzymski Maciej Rzymski
              mrzymski Maciej Rzymski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: