nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
349 stars 115 forks source link

Disable creating new files when server-side encryption is enabled #565

Open brigriffin opened 5 years ago

brigriffin commented 5 years ago

Is your feature request related to a problem? Please describe. When server-side encryption is enabled it is not possible to create a new CollaboraOnline document, spreadsheet or presentation file from Nextcloud directly.

Describe the solution you'd like Disable creating a new CollaboraOnline file in Nextcloud directly if server-side encryption is enabled.

Describe alternatives you've considered Disabling the possibility to create a new CollaboraOnline within Nextcloud could be done dynamically by Nextcloud (if server-side encryption enabled...) or it could even be a option in this app's settings (checkbox).

Additional context Do not hesitate to comment if you need additional info.

juliushaertl commented 5 years ago

I'd say this is rather a bug and we should make sure that creating files is possible on encrypted setups.

brigriffin commented 5 years ago

I totally agree with you but I was thinking maybe Nextcloud is not interested in that specific use-case (with encryption) so I thought let's open a feature request and see. I already spoke to the Collabora Online support guys and they would be very welcoming a move in that direction and recommended me to open an issue here directly.

JayVii commented 4 years ago

I believe I do have the same issue. is there any progress on this?

Whenever I try to create a new document, an empty office-window opens with the message: "Failed to load the document. Please ensure the filetype is supported and not corrupted, and try again." (see screenshot below).

However, the document will be created and when I re-open it, it works as expected.

Upon document-creation journalctl -xe gives:

loolwsd[32171]: wsd-32171-32171 2020-05-20 08:23:54.025647 [ loolwsd ] TRC  Have 1 new children.| wsd/LOOLWSD.cpp:3445
 loolwsd[32171]: wsd-32171-32171 2020-05-20 08:23:54.025679 [ loolwsd ] INF  WSD initialization complete: setting log-level to [warning] as configured.| wsd/LOOLWSD.cpp:3452
 loolwsd[32171]: wsd-32171-32185 2020-05-20 08:24:05.215175 [ websrv_poll ] WRN  FileServerRequestHandler: File not found: Invalid URI request: [/loleaflet/b889fbbff/branding.css].| wsd/FileServer.cpp:440
 loolwsd[32171]: wsd-32171-32185 2020-05-20 08:24:05.243501 [ websrv_poll ] WRN  FileServerRequestHandler: File not found: Invalid URI request: [/loleaflet/b889fbbff/branding.js].| wsd/FileServer.cpp:440
 loolwsd[32171]: kit-32183-32175 2020-05-20 08:24:07.523029 [ kitbroker_001 ] ERR  Failed to load: file:///user/docs/DGmpVGiOYG9DiMh7/2.docx, error: Unsupported URL <https://office.example.com/index.php/apps/richdocuments/wopi/template/1050?access_token=m9eyOqytgClIRVjhweqYs3tn9GP06kEc>: "type detection failed"| kit/Kit.cpp:1655
 loolwsd[32171]: kit-32183-32175 2020-05-20 08:24:07.523076 [ kitbroker_001 ] ERR  Failed to get LoKitDocument instance for [file:///user/docs/DGmpVGiOYG9DiMh7/2.docx].| kit/ChildSession.cpp:627
 loolwsd[32171]: kit-32183-32175 2020-05-20 08:24:07.523107 [ kitbroker_001 ] WRN  Document::ViewCallback. Session [-1] is no longer active to process [LOK_CALLBACK_ERROR] [{
 loolwsd[32171]:     "classification": "error",
 loolwsd[32171]:     "cmd": "load",
 loolwsd[32171]:     "kind": "network",
 loolwsd[32171]:     "code": "0x6b03(Error Area:Inet Class:Read Code:3)",
 loolwsd[32171]:     "message": "Server certificate verification failed: issuer is not trusted"
 loolwsd[32171]: }
 loolwsd[32171]: ] message to Master Session.| kit/Kit.cpp:1955
 loolwsd[32171]: wsd-32171-32292 2020-05-20 08:24:07.523140 [ docbroker_001 ] WRN  Document load failed: faileddocloading| wsd/ClientSession.cpp:1125
 loolwsd[32171]: kit-32183-32175 2020-05-20 08:24:07.551325 [ kitbroker_001 ] WRN  Skipping unload on incomplete view.| kit/ChildSession.cpp:102
 loolwsd[32171]: wsd-32171-32292 2020-05-20 08:24:07.551336 [ docbroker_001 ] WRN  Client session [004] not found to forward message: o9 disconnected:| wsd/DocumentBroker.cpp:2073
 loolwsd[32171]: kit-32183-32175 2020-05-20 08:24:07.551350 [ kitbroker_001 ] ERR  No socket associated with WebSocketHandler 0x5631a67827e0| ./net/WebSocketHandler.hpp:131
 loolwsd[32171]: Document [/index.php/apps/richdocuments/wopi/files/2549_oc7ctv9wwbod] has no more views, exiting bluntly.
 loolwsd[32171]: kit-32183-32175 2020-05-20 08:24:09.029828 [ kitbroker_001 ] FTL  Document [/index.php/apps/richdocuments/wopi/files/2549_oc7ctv9wwbod] has no more views, exiting bluntly.| kit/Kit.cpp:838

Using:

Error when creating new document

pierreozoux commented 3 years ago

@JayVii this issue looks more similar to https://github.com/nextcloud/richdocuments/issues/1014