[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 Cédric Bosdonnat cedric.bosdonnat@free.fr changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Assignee|libreoffice-b...@lists.free |cedric.bosdonnat.ooo@free.f |desktop.org |r Ever confirmed|0 |1 --- Comment #16 from Cédric Bosdonnat cedric.bosdonnat@free.fr --- Hello Marcus. Thanks for the investigations. I think you got the point here, but it won't be that easy to fix. There are several name properties here that need not to be messed up: * the one in cmis:properties is the one we really want. * the ones in the relationships need to be parsed with relationships (not yet implemented in libcmis) only. I did some more work on properties recently in libcmis master branch, but it would only enforce that problem as it is fetching all possible properties. We want aspect properties to be parsed if possible. -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 --- Comment #11 from Marcus Svensson marsv...@gmail.com --- Created attachment 90174 -- https://bugs.freedesktop.org/attachment.cgi?id=90174action=edit working cmis atom response (legacy endpoint) -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 Marcus Svensson marsv...@gmail.com changed: What|Removed |Added Attachment #90174|working cmis atom response |not working cmis atom description|(legacy endpoint) |response ||(/alfresco/cmisatom ||endpoint) -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 --- Comment #12 from Marcus Svensson marsv...@gmail.com --- Created attachment 90175 -- https://bugs.freedesktop.org/attachment.cgi?id=90175action=edit working cmis atom response (/alfresco/service/cmis legacy endpoint) -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 --- Comment #13 from Marcus Svensson marsv...@gmail.com --- Created attachment 90176 -- https://bugs.freedesktop.org/attachment.cgi?id=90176action=edit traffic log of working legacy endpoint -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 --- Comment #14 from Marcus Svensson marsv...@gmail.com --- Created attachment 90177 -- https://bugs.freedesktop.org/attachment.cgi?id=90177action=edit traffic log of not working /alfresco/cmisatom endpoint -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 --- Comment #15 from Marcus Svensson marsv...@gmail.com --- I've been investigating this some more. This might have something to do with libcmis and not libreoffice. I setup a proxy using charles through which I routed all libreoffice requests through to be able to see what was wrong. I was using Alfresco enterprise 4.2.0, but the same results can probably be reproduced in earlier versions. Using the old legacy endpoint /alfresco/service/cmis checking out will work using atom. This is because the returned cmis document on the checkout request is different to what is returned in the newer endpoints /alfresco/cmisatom (now also deprecated as of 4.2) and /alfresco/api/-default-/public/cmis/versions/1.0/atom. The newer endpoints also include information about relationships to other objects as specified in the cmis spec. Below is a snippet of the 5th request made on a checkout to the Alfresco server, the first one is on the working legacy endpoint, and the second is the failing newer endpoint. 1. http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/arg/p?path=%2FSites%2Flibreoffice-test%2FdocumentLibrary%2FTest%20document%20%28Working%20Copy%29.odtfilter=includeAllowableActions=trueincludePolicyIds=includeRelationships=includeACL=renditionFilter= 2. http://localhost:8080/alfresco/cmisatom/be392f77-bc41-4794-9367-f5b1cf00984b/path?path=%2FSites%2Flibreoffice-test%2FdocumentLibrary%2F76%7Cworkspace%3A%2FSpacesStore%2F5d8908d9-1b4a-4265-b1de-5d7244fcea70%7Cworkspace%3A%2FSpacesStore%2F3885d9a2-0540-41ab-810a-38ccb1b160d6%7C%7Bhttp%3A%2Fwww.alfresco.org%2Fmodel%2Fcontent%2F1.0%7Dworkingcopylinkfilter=includeAllowableActions=trueincludeACL=includePolicyIds=includeRelationships=renditionFilter= What is different in these two is the path argument. Libcmis parses the file name (cmis:name property from the response atom xml) and appends it to the path to the document to open. In the legacy response there is only one cmis:name property available in the xml which is equal to the file name: pre cmisra:object cmis:properties ... cmis:propertyString displayName=Name propertyDefinitionId=cmis:name queryName=cmis:name cmis:valueTest document (Working Copy).odt/cmis:value /cmis:propertyString ... /cmis:properties /cmisra:object /pre In the new endpoints there can be several occurances of this property in different parts of the response xml such as: pre cmisra:object cmis:properties ... cmis:propertyString displayName=Name propertyDefinitionId=cmis:name queryName=cmis:name cmis:valueTest document (Working Copy).odt/cmis:value /cmis:propertyString ... /cmis:properties cmis:relationship cmis:properties cmis:propertyString displayName=Name localName=name propertyDefinitionId=cmis:name queryName=cmis:name cmis:value75|workspace://SpacesStore/3885d9a2-0540-41ab-810a-38ccb1b160d6|workspace://SpacesStore/5d8908d9-1b4a-4265-b1de-5d7244fcea70|{http://www.alfresco.org/model/content/1.0}original/cmis:value /cmis:propertyString ... cmis:propertyString displayName=Name localName=name propertyDefinitionId=cmis:name queryName=cmis:name cmis:value76|workspace://SpacesStore/5d8908d9-1b4a-4265-b1de-5d7244fcea70|workspace://SpacesStore/3885d9a2-0540-41ab-810a-38ccb1b160d6|{http://www.alfresco.org/model/content/1.0}workingcopylink/cmis:value /cmis:propertyString /cmis:properties /cmis:relationship /cmisra:object /pre From what I could find in the source code of libcmis in it seems that it does not select the correct occurance of the cmis:name property, it uses the last found in the document (which is the one found in the cmis:relationship) which is not correct. This is also why you will see 1.0}workingcopylink in the title bar in libreoffice when you check out a document. My C++ is a bit rusty, so I'm not sure that I'm able to fix this in an quick way, perhaps someone else could look at it? It would be pretty easy I guess to write a test case in the libcmis module which reproduce this error. I've attached logs of the requests made to Alfresco and the resulting atom response on the checkout action. I hope my investigation is useful! -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 --- Comment #10 from Nikos gdna7...@hotmail.com --- reproducible on Libreoffice 4.1.1RC1, Alfresco Community v4.2.0c, windows 7 64bit, going to test openSUSE and Debian clients on the weekend. Moreover if you open the (working copy) with libreoffice you can work normally. However, if you check the document back in, it still displays the (working copy)...and behaves very inconsistent from there on...I will describe better when I see a pattern. Would be really nice if this got fixed as we are planning a move to Alfresco in the next weeks. -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 --- Comment #6 from Ingo Schnieders schnieders.i...@drako.de --- Could it be a file locking problem? I use LibreOffice from a WinXP client -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 --- Comment #7 from Cédric Bosdonnat cedric.bosdonnat@free.fr --- (In reply to comment #5) This is my configuration: - LibreOffice 4.0.4.2 - Alfresco 4.2.c I tried to set up a new connection Name: Alfresco Type: CMIS from the menu ServerType: Alfresco 4 URL: http://servername:8080/alfresco/cmisws/RepositoryService?wsdl doesn't work This is a known libcmis bug and fixed already. URL: http://servername:8080/alfresco/cmisatom/RepositoryService?wsdl works an gives me Main Repository when pushing the search buttom Path: empty User: empty I had to put the credentials first Alfresco has a special CMIS anonymous user, but libcmis can't autoguess that first as you need to be authenticated to get the Service document containing it. So I can navigate to the site where I find my LibreOffice document that I uploaded through the browser before. I'm able to open it I get the message on top in LibreOffice the document wasn't checked out. I edit the file and try to save it but the I become and input output error. When I check the document out it was marked as checked out in the browser view and it changes the file name filnename (Working Copy).ods. When I now try to save it I get an error missing user rights on that file and again input outpu error. What does the LibreOffice Window title give a title? As described by Marcus, in some cases (hard to define exactly when) LO doesn't update the opened document properly to the working copy. -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 --- Comment #8 from Ingo Schnieders schnieders.i...@drako.de --- Now I've tested it on Ubuntu 12.04 and LibreOffice 4.0.2.2 and everything seems to work: saving, locking, versioning and the URLs servername:8080/alfresco/cmisws and servername:8080/alfresco/cmisatom both work. What does the LibreOffice Window title give a title? As described by Marcus, in some cases (hard to define exactly when) LO doesn't update the opened document properly to the working copy. I will try to describe what it does on WindowsXP... -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 --- Comment #9 from Ingo Schnieders schnieders.i...@drako.de --- It is possible from WindowsXP LibreOffice to open a file from Alfresco CMIS, but when I try to save the changes (without checking out the document) I get the input output error. When hcecking out the document the title was not changed in LibreOffice but I can't check in a new version. When using LibreOffice with Ubuntu 12.04 all seems to work. -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 Ingo Schnieders schnieders.i...@drako.de changed: What|Removed |Added Version|4.0.1.2 release |4.0.4.2 release --- Comment #3 from Ingo Schnieders schnieders.i...@drako.de --- Same errors here: testing with LibreOffice 4.0.4.2 an ALFRESCO 4.2.c -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 Cédric Bosdonnat cedric.bosdonnat@free.fr changed: What|Removed |Added Version|4.0.4.2 release |4.0.1.2 release --- Comment #4 from Cédric Bosdonnat cedric.bosdonnat@free.fr --- Please don't change the version number as it indicates the oldest one where the bug can be reproduced. -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 --- Comment #5 from Ingo Schnieders schnieders.i...@drako.de --- This is my configuration: - LibreOffice 4.0.4.2 - Alfresco 4.2.c I tried to set up a new connection Name: Alfresco Type: CMIS from the menu ServerType: Alfresco 4 URL: http://servername:8080/alfresco/cmisws/RepositoryService?wsdl doesn't work URL: http://servername:8080/alfresco/cmisatom/RepositoryService?wsdl works an gives me Main Repository when pushing the search buttom Path: empty User: empty I had to put the credentials first So I can navigate to the site where I find my LibreOffice document that I uploaded through the browser before. I'm able to open it I get the message on top in LibreOffice the document wasn't checked out. I edit the file and try to save it but the I become and input output error. When I check the document out it was marked as checked out in the browser view and it changes the file name filnename (Working Copy).ods. When I now try to save it I get an error missing user rights on that file and again input outpu error. Kind regards INGO -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 --- Comment #2 from Marcus Svensson marsv...@gmail.com --- (In reply to comment #1) Might be related to issue https://bugs.freedesktop.org/show_bug.cgi?id=56156 Not related to the above issue as this reproduces on 4.x. The above does not. -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 62531] LibreOffice CMIS checkout does not work when using Alfresco atom endpoint
https://bugs.freedesktop.org/show_bug.cgi?id=62531 Marcus Svensson marsv...@gmail.com changed: What|Removed |Added CC||marsv...@gmail.com See Also||https://bugs.freedesktop.or ||g/show_bug.cgi?id=56156 --- Comment #1 from Marcus Svensson marsv...@gmail.com --- Might be related to issue https://bugs.freedesktop.org/show_bug.cgi?id=56156 -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs