https://bugs.freedesktop.org/show_bug.cgi?id=68551

          Priority: medium
            Bug ID: 68551
          Assignee: [email protected]
           Summary: CMIS checkout URL broken when using https
          Severity: major
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: All
            Status: UNCONFIRMED
           Version: 4.1.0.4 release
         Component: Libreoffice
           Product: LibreOffice

When using LibreOffice to connect to an HTTPS server through CMIS, LibreOffice
incorrectly uses an http URL when trying to check out a document.

For example, when using the binding URL
'https://alfresco-internal.example.com/alfresco/cmisatom', browsing the
repository and opening a document works perfectly, but when clicking "check
out" the following errors appear in the log:

http://alfresco-internal.example.com/alfresco/cmisatom/09d6f8b9-38cc-11dd-9df2-4f7a305b5205/checkedout?objectId=workspace%3A%2F%2FSpacesStore%2F8109dd63-6982-4031-a733-11ea9e19c921%3B0.2:1:
parser error : Space required after the Public Identifier
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
                                                 ^
http://alfresco-internal.example.com/alfresco/cmisatom/09d6f8b9-38cc-11dd-9df2-4f7a305b5205/checkedout?objectId=workspace%3A%2F%2FSpacesStore%2F8109dd63-6982-4031-a733-11ea9e19c921%3B0.2:1:
parser error : SystemLiteral " or ' expected
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
                                                 ^
http://alfresco-internal.example.com/alfresco/cmisatom/09d6f8b9-38cc-11dd-9df2-4f7a305b5205/checkedout?objectId=workspace%3A%2F%2FSpacesStore%2F8109dd63-6982-4031-a733-11ea9e19c921%3B0.2:1:
parser error : SYSTEM or PUBLIC, the URI is missing
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
                                                 ^
http://alfresco-internal.example.com/alfresco/cmisatom/09d6f8b9-38cc-11dd-9df2-4f7a305b5205/checkedout?objectId=workspace%3A%2F%2FSpacesStore%2F8109dd63-6982-4031-a733-11ea9e19c921%3B0.2:9:
parser error : Opening and ending tag mismatch: hr line 7 and body
</body></html>
       ^
http://alfresco-internal.example.com/alfresco/cmisatom/09d6f8b9-38cc-11dd-9df2-4f7a305b5205/checkedout?objectId=workspace%3A%2F%2FSpacesStore%2F8109dd63-6982-4031-a733-11ea9e19c921%3B0.2:9:
parser error : Opening and ending tag mismatch: body line 4 and html
</body></html>
              ^
http://alfresco-internal.example.com/alfresco/cmisatom/09d6f8b9-38cc-11dd-9df2-4f7a305b5205/checkedout?objectId=workspace%3A%2F%2FSpacesStore%2F8109dd63-6982-4031-a733-11ea9e19c921%3B0.2:10:
parser error : Premature end of data in tag html line 2

^



Which is consistent with hitting the HTTP URL with curl:

[10:18:44]florent@ubuntu:~/ $ curl
http://alfresco-internal.example.com/alfresco/cmisatom/09d6f8b9-38cc-11dd-9df2-4f7a305b5205/checkedout?objectId=workspace%3A%2F%2FSpacesStore%2F8109dd63-6982-4031-a733-11ea9e19c921%3B0.2:10
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a
href="https://alfresco-internal.example.com/alfresco/cmisatom/09d6f8b9-38cc-11dd-9df2-4f7a305b5205/checkedout?objectId=workspace%3A%2F%2FSpacesStore%2F8109dd63-6982-4031-a733-11ea9e19c921%3B0.2:10";>here</a>.</p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at alfresco-internal.example.com Port
80</address>
</body></html>


(We have an Apache rule to redirect http requests to https.)


The correct fix would be to use the provided URL when checking out the
document, but a workaround could be to follow the 301 Redirect when doing the
request.

Regards,
Florent

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to