Bug 128819 - Copy and paste in LOOL (Collabora Code, 4.0.8) improper initialization
Summary: Copy and paste in LOOL (Collabora Code, 4.0.8) improper initialization
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-15 12:17 UTC by Vlastimil Pecinka
Modified: 2019-12-12 23:26 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vlastimil Pecinka 2019-11-15 12:17:10 UTC
I found a strange behavior with Copy and Paste in LOOL Collabora Code edition (currently 4.0.8, tried provided docker image as well as compiled by myself).

When I open document in my nextcloud installation, I cannot copy or paste cells (cmd-cmd-v on my Mac OS). It simply does nothing, Paste option in the menu is grey. However, if I copy e.g. a word from outside (like any word from the url location of the browser), I can paste it to the cell in LOOL. And since then, copying and pasting within the document works perfectly. 

It looks like something forbids copying and pasting after document initialization, but because of external copy/paste, it is reinitialized.

I also tried master branch of LibreOffice core (6.4.0.0.alpha) and Online, the copy/paste works here (but other things still block from using it).

I am ready to help to investigate further.

Thanks
Vlastimil
Comment 1 Vlastimil Pecinka 2019-11-15 12:37:54 UTC
BTW it is not only Calc related, in the Writer it is the same - first I have to paste text from outside document to start copy/paste working.

In the Javascript console there is plenty of output, to summarize:

- Unrecognized Content-Security-Policy directive 'worker-src'.  (main.js)

- Failed to load resource: the server responded with a status of 404 (for missing branding.css and branding.js)

- [Debug] callMobileMessage – "documentLoaded" – undefined (document.js, line 44)

- Toolbar button with id "fullscreen" not found. (in _postMessageListener)

- [Warning] The escapeHTML library is deprecated! It will be removed in nextcloud 19. (main.js, line 750)
Comment 2 Aron Budea 2019-12-12 23:26:33 UTC
Since it works in master, let's close this as WORKSFORME.

A new Collabora CODE version (4.2) will be released soon, for the time being you can check the unstable snapshots at: https://www.collaboraoffice.com/code/