Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
7.0.0
-
7
-
1
-
Severity 3 - Minor
-
0
-
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
- Using the Microsoft Edge browser, view a Jira issue
- Drag the comment button, or an avatar of a User
- 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
- is cloned from
-
JDDAP-135 Loading...