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

Attachment getting added on MS Edge when an element is dropped on any area.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.0.0
    • Issue - Attachments

    Description

      Summary

      When using the Microsoft Edge Browser, items from the page that are dragged can be dropped onto Jira, which Jira will treat as attachments.

      Steps to Reproduce

      1. Using the Microsoft Edge browser, view a Jira issue
      2. Drag the comment button, or an avatar of a User
      3. Drop the item you're dragging onto the Jira image

      Expected Results

      Nothing happens.

      Actual Results

      When dragging links or images, Edge will treat those as URL or image files - and then attach them to the ticket, which may be undesirable.

      Workaround

      Add the following to Jira's announcement banner:

      <script type="text/javascript">
      document.ondragstart = function () { return false; };
      </script>
      

      As with all changes to the announcement banner involving Javascript, you might see an XSS Blocked warning message from your browser - that's normal; and your changes should still be saved.

      Please ensure you test this change in a test environment first, before applying to production. If you see unusual behaviour in pages after applying this fix, you may need to remove the adjustments - we also have steps to remove the announcement banner through the database.

      The fix prevents the "ondragstart" event. This will stop users from dragging things off the Jira page (even to the desktop), but it will not stop users dropping things onto the Jira page (which is the behaviour of other browsers). You may not wish to use this workaround if you have large numbers of users who drag links to their bookmarks, desktop or other locations.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gtanczyk Grzegorz Tanczyk (Inactive)
              Votes:
              17 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: