Details
-
Bug
-
Resolution: Timed out
-
Low
-
None
-
7.3.0, 1000.695.1
-
7.03
-
1
-
Severity 3 - Minor
-
Description
NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.
Summary
Paste PDF into the editor from clipboard using Chrome does not work.
Environment
- JIRA 1000.695.1 (Cloud), JIRA 7.3.0 (Server)
- Chrome 55.0.2883.95
- macOS Sierra
Steps to Reproduce
Scenario1
- Copy a PDF file in Finder.app
- Open a JIRA issue in edit mode
- Press Cmd + V in the editor
Scenario2
- Open Terminal.app
- Execute the following commands
$ defaults write com.apple.screencapture type pdf $ killall SystemUIServer
- Press Command + Control + Shift + 3 to capture a screenshot into the clipboard
- Open a JIRA issue in edit mode
- Press Cmd + V in the editor
Expected Results
The paste from the clipboard should work correctly in the both scenario.
Actual Results
Scenario1
The PDF wasn't attached to the page and the filename is just pasted as a text.
Scenario2
The paste failed silently.
If we monitor the step in developer tools, we can see the following JavaScript error.
batch.js?acjsFiveVersionEnabled=true&agile_global_admin_condition=true&jag=true&jaguser=true&jira-n…:9238 Uncaught TypeError: Cannot read property 'slice' of undefined at Object.b.convertBlobToImage (batch.js?acjsFiveVersionEnabled=true&agile_global_admin_condition=true&jag=true&jaguser=true&jira-n…:9238) at batch.js?acjsFiveVersionEnabled=true&agile_global_admin_condition=true&jag=true&jaguser=true&jira-n…:9286 at new D (batch.js?acjsFiveVersionEnabled=true&agile_global_admin_condition=true&jag=true&jaguser=true&jira-n…:9286) at batch.js?acjsFiveVersionEnabled=true&agile_global_admin_condition=true&jag=true&jaguser=true&jira-n…:9286 at G (batch.js?acjsFiveVersionEnabled=true&agile_global_admin_condition=true&jag=true&jaguser=true&jira-n…:9286) at a (batch.js?acjsFiveVersionEnabled=true&agile_global_admin_condition=true&jag=true&jaguser=true&jira-n…:9286) at batch.js?acjsFiveVersionEnabled=true&agile_global_admin_condition=true&jag=true&jaguser=true&jira-n…:9286 at dispatch (batch.js?locale=ja-JP:120) at h (batch.js?locale=ja-JP:112)
When it comes to some of third-party apps, they try to store images as PDF when copying them into clipboard.
That's why these scenario should be also considered.
Notes
This problem might be caused by this browser's spec.
Even though we don't support pasting PDF from clipboard, it would be more user friendly if JIRA could show some error on the UI.
Workaround
Use the other browsers instead.
Attachments
Issue Links
- is cloned from
-
CONFSERVER-45815 Paste PDF into the editor from clipboard using Chrome does not work
- Closed
- relates to
-
JRACLOUD-63798 Paste PDF into the editor from clipboard using Chrome does not work
- Closed