[Libreoffice-bugs] [Bug 113834] FILESAVE Crashes when saving remotely when service host is empty

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Apr 25 09:32:51 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=113834

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|wantBacktrace               |haveBacktrace
           Assignee|libreoffice-bugs at lists.free |serval2412 at yahoo.fr
                   |desktop.org                 |
             Status|NEW                         |ASSIGNED

--- Comment #8 from Julien Nabet <serval2412 at yahoo.fr> ---
After some investigation, the problem is here:
https://opengrok.libreoffice.org/xref/core/svtools/source/dialogs/ServerDetailsControls.cxx?r=e3e6f43b#450
449      // Get the Content
450      ::ucbhelper::Content aCnt( sUrl, m_xCmdEnv,
comphelper::getProcessComponentContext() );
451      Sequence<OUString> aProps { "Title" };
    try
    {
        Reference< XResultSet > xResultSet( aCnt.createCursor( aProps ),
UNO_QUERY_THROW );

The call of constructor of Content line 450 throws and since we're not in a
try/catch it triggers an hang.
I don't know why it's ok for Linux and not for Windows. Just for curiosity, I'd
like to know the behavior on Macos.

Anyway I'll submit a patch for review tonight after my daytime job.
I'll just put the quoted lines in the try/catch or perhaps we should just
return if url is empty.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190425/f8ef643c/attachment.html>


More information about the Libreoffice-bugs mailing list