[Libreoffice-bugs] [Bug 107471] New: add an option to configure crashreporter

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Apr 27 06:16:00 UTC 2017


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

            Bug ID: 107471
           Summary: add an option to configure crashreporter
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: oliver.brinzing at gmx.de

the crash reporter source code in app.cxx is currently hard-coded to
http://crashreport.libreoffice.org/submit/.
there is no way to configure/disable the crashreporter.
one has to rebuild libreoffice without FEATURE_BREAKPAD.

in an enterprise environment it may be necessary to prevent users from sending
data due to security restrictions.

an option in Tools/Options/LibreOffice/General would be helpful.
for example, there is already an option to disable CollectUsageInformation.

app.cxx:
#if HAVE_FEATURE_BREAKPAD
void handleCrashReport()
{
    static const char SERVICENAME_CRASHREPORT[] =
"com.sun.star.comp.svx.CrashReportUI";

    css::uno::Reference< css::uno::XComponentContext > xContext =
::comphelper::getProcessComponentContext();

    Reference< css::frame::XSynchronousDispatch > xRecoveryUI(
       
xContext->getServiceManager()->createInstanceWithContext(SERVICENAME_CRASHREPORT,
xContext),
        css::uno::UNO_QUERY_THROW);

    Reference< css::util::XURLTransformer > xURLParser =
       
css::util::URLTransformer::create(::comphelper::getProcessComponentContext());

    css::util::URL aURL;
    css::uno::Any aRet = xRecoveryUI->dispatchWithReturnValue(aURL,
css::uno::Sequence< css::beans::PropertyValue >());
    bool bRet = false;
    aRet >>= bRet;
}

-- 
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/20170427/62fa4737/attachment.html>


More information about the Libreoffice-bugs mailing list