Bug 65201 - Enhancement request: Better error messages when using CMIS
Summary: Enhancement request: Better error messages when using CMIS
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
(earliest affected) release
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL: https://github.com/Redpill-Linpro/alf...
Depends on:
Blocks: Error-Messages CMIS
  Show dependency treegraph
Reported: 2013-05-31 07:39 UTC by Marcus Svensson
Modified: 2018-12-18 19:08 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Svensson 2013-05-31 07:39:26 UTC

There is an alternate way of opening CMIS documents in LibreOffice which we are using for an Alfresco plugin which allows for direct opening of Alfresco files in LibreOffice using CMIS from Alfresco.

The way to do this is to start LibreOffice the following way (on linux, similar commands on Mac OSX and Windows):

soffice vnd.libreoffice.cmis://http%3A%2F%2Fcmis.alfresco.com%2Fcmisws%2FRepositoryService%3Fwsdl%23371554cd-ac06-40ba-98b8-e6b60275cca7/mars-test/http-test.odt

The problem is that whenever an error occurs opening a document it will always generate the following generic error in a popup: "The specified device is invalid", or no error at all. This error message provides no information on what the cause of the error was. What we would like is that the popup should either show "Could not connect to server", "Invalid user credentials", "The document could not be found" or "You do not have permission to open this file" to give the user a hint on what was wrong.

To reproduce errors like this, you need to find out the url used to connect, it will be displayed in the "path bar" when browsing an CMIS resource using the Open dialog in LibreOffice.

Some example urls:
Working command (authenticate with admin / admin): soffice vnd.libreoffice.cmis://http%3A%2F%2Fcmis.alfresco.com%2Fcmisws%2FRepositoryService%3Fwsdl%23371554cd-ac06-40ba-98b8-e6b60275cca7/mars-test/http-test.odt

Could not connect to server: soffice vnd.libreoffice.cmis://http%3A%2F%2Fcmis123.alfresco.com%2Fcmisws%2FRepositoryService%3Fwsdl%23371554cd-ac06-40ba-98b8-e6b60275cca7/mars-test/http-test.odt

The document could not be found (will not generate any error at all): soffice vnd.libreoffice.cmis://http%3A%2F%2Fcmis.alfresco.com%2Fcmisws%2FRepositoryService%3Fwsdl%23371554cd-ac06-40ba-98b8-e6b60275cca7/mars-test/http-test-doesnotexist.odt

The following commands are reproducible on a local alfresco but not on the public cmis.alfresco.com (no error at all will be shown, libreoffice will just hang, on local instance it will show the error Invalid device specified).

Invalid user credentials (authenticate with nonexistinguser / nonexistinguser): soffice vnd.libreoffice.cmis://http%3A%2F%2Flocalhost%3A8080%2Falfresco%2Fcmisws%2FRepositoryService%3Fwsdl%2372b93dd6-4c4b-4d29-8c80-253e86e3d16a/Sites/test/documentLibrary/Testdocument.odt

You do not have permission to open this file (This is only testable on a local instance, log in with user with no access to site test):
soffice vnd.libreoffice.cmis://http%3A%2F%2Flocalhost%3A8080%2Falfresco%2Fcmisws%2FRepositoryService%3Fwsdl%2372b93dd6-4c4b-4d29-8c80-253e86e3d16a/Sites/test/documentLibrary/Testdocument.odt

The alfresco module we are working on is: https://github.com/Redpill-Linpro/alfresco-libreoffice-online-edit

Comment 1 Owen Genat (retired) 2013-12-06 22:38:55 UTC
Severity set to enhancement in keeping with summary.
Comment 2 Arnaud Versini 2014-05-08 11:29:43 UTC
Confirmed of course !