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

Julien Nabet <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from Julien Nabet <[email protected]> ---
Michael: thought you might be interested in this one.
I wonder if StorageFormats::OFOPXML shouldn't be the only case when check is
not case sensitive, at least this patch works:
diff --git a/package/source/zippackage/ZipPackage.cxx
b/package/source/zippackage/ZipPackage.cxx
index 906acf4d7860..13144c1197a6 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -874,7 +874,7 @@ void SAL_CALL ZipPackage::initialize( const uno::Sequence<
Any >& aArguments )
     {
         m_pZipFile.emplace(m_aMutexHolder, m_xContentStream, m_xContext, true,
             m_bForceRecovery,
-            m_nFormat == embed::StorageFormats::ZIP ? ZipFile::Checks::Default
: ZipFile::Checks::CheckInsensitive);
+            m_nFormat == embed::StorageFormats::OFOPXML ?
ZipFile::Checks::CheckInsensitive : ZipFile::Checks::Default);
         getZipFileContents();
     }
     catch ( IOException & e )
@@ -1248,7 +1248,7 @@ void ZipPackage::ConnectTo( const uno::Reference<
io::XInputStream >& xInStream
     else
         m_pZipFile.emplace(m_aMutexHolder, m_xContentStream, m_xContext,
false,
             false,
-            m_nFormat == embed::StorageFormats::ZIP ? ZipFile::Checks::Default
: ZipFile::Checks::CheckInsensitive);
+            m_nFormat == embed::StorageFormats::OFOPXML ?
ZipFile::Checks::CheckInsensitive : ZipFile::Checks::Default);
 }

 uno::Reference< io::XInputStream > ZipPackage::writeTempFile()

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to