https://bugs.freedesktop.org/show_bug.cgi?id=68084

--- Comment #3 from [email protected] ---
I traced to the following code in package/source/xstor/xstorage.cxx, where the
exception was thrown:


SotElement_Impl* OStorage::OpenStreamElement_Impl( const OUString& aStreamName,
sal_Int32 nOpenMode, sal_Bool bEncr )
{
    ::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );

    OSL_ENSURE( !m_pData->m_bReadOnlyWrap || ( nOpenMode &
embed::ElementModes::WRITE ) != embed::ElementModes::WRITE,
                "An element can not be opened for writing in readonly
storage!\n" );

    SotElement_Impl *pElement = m_pImpl->FindElement( aStreamName );
    if ( !pElement )
    {
        // element does not exist, check if creation is allowed
        if ( !( m_pImpl->m_nStorageMode & embed::ElementModes::WRITE )
          || (( nOpenMode & embed::ElementModes::WRITE ) !=
embed::ElementModes::WRITE )
          || ( nOpenMode & embed::ElementModes::NOCREATE ) ==
embed::ElementModes::NOCREATE )
            throw io::IOException( OSL_LOG_PREFIX, uno::Reference<
uno::XInterface >() ); // TODO: access_denied

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to