[Libreoffice-commits] core.git: Branch 'feature/cib_contract3756' - package/source

Vasily Melenchuk (via logerrit) logerrit at kemper.freedesktop.org
Mon Nov 18 09:21:17 UTC 2019


 package/source/zippackage/ZipPackage.cxx |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit 62aa393f5bd497512384e45e6aa550bcf7e65793
Author:     Vasily Melenchuk <vasily.melenchuk at cib.de>
AuthorDate: Mon Nov 18 11:26:23 2019 +0300
Commit:     Vasily Melenchuk <vasily.melenchuk at cib.de>
CommitDate: Mon Nov 18 11:26:23 2019 +0300

    package: ignore unknown encryption parameters.
    
    Do not throw an exception if there are encryption parameters,
    but they are not supported in current output format.
    
    Change-Id: I21e4cf2f73d7c218ab5444b2016e838695163ca3

diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index 63178c7fec24..4715298b4bfb 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -1642,11 +1642,6 @@ uno::Sequence< sal_Int8 > ZipPackage::GetEncryptionKey()
         for ( const auto& rKey : std::as_const(m_aStorageEncryptionKeys) )
             if ( rKey.Name == aNameToFind )
                 rKey.Value >>= aResult;
-
-        // empty keys are not allowed here
-        // so it is not important whether there is no key, or the key is empty, it is an error
-        if ( !aResult.hasElements() )
-            throw uno::RuntimeException(THROW_WHERE "No expected key is provided!" );
     }
     else
         aResult = m_aEncryptionKey;


More information about the Libreoffice-commits mailing list