unotools/source/misc/mediadescriptor.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cdcfd8b1df94a9e58557bfb195accd7cb43d2e3c
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sat Jun 15 00:14:22 2024 +0500
Commit:     Mike Kaganski <[email protected]>
CommitDate: Sat Jun 15 06:04:04 2024 +0200

    Reduce console noise
    
     
warn:unotools.misc:21376:31920:unotools/source/misc/mediadescriptor.cxx:372:
     url: 'private:factory/scalc' com.sun.star.ucb.ContentCreationException
     message: "No Content Provider available for URL: private:factory/scalc
     at C:/lo/core/ucbhelper/source/client/content.cxx:205"
     eError: (com.sun.star.ucb.ContentCreationError) NO_CONTENT_PROVIDER
    
    Change-Id: Ibb430ed0779f2064975b8fcc43204164adaeb8d0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168895
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins

diff --git a/unotools/source/misc/mediadescriptor.cxx 
b/unotools/source/misc/mediadescriptor.cxx
index 44647c1f860e..87dcbab0cbf1 100644
--- a/unotools/source/misc/mediadescriptor.cxx
+++ b/unotools/source/misc/mediadescriptor.cxx
@@ -334,8 +334,8 @@ bool MediaDescriptor::impl_openStreamWithPostData( const 
css::uno::Reference< cs
 /*-----------------------------------------------*/
 bool MediaDescriptor::impl_openStreamWithURL( const OUString& sURL, bool 
bLockFile )
 {
-    if (sURL.matchIgnoreAsciiCase(".component:"))
-        return false; // No UCB content for .component URLs
+    if (sURL.matchIgnoreAsciiCase(".component:") || 
sURL.matchIgnoreAsciiCase("private:factory/"))
+        return false; // No UCB content for .component URLs and factory URLs
 
     OUString referer(getUnpackedValueOrDefault(PROP_REFERRER, OUString()));
     if (SvtSecurityOptions::isUntrustedReferer(referer)) {

Reply via email to