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

            Bug ID: 123293
           Summary: FILEOPEN: (from stream) shows a warning "Not all
                    Attributes could be read."
           Product: LibreOffice
           Version: 6.1.5.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: regression
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 149048
  --> https://bugs.documentfoundation.org/attachment.cgi?id=149048&action=edit
SCWARN_IMPORT_FEATURES_LOST

opening a calc file via "private:stream" will show a warning 
"SCWARN_IMPORT_FEATURES_LOST".

this seems to start with lo 6.1, i can not reproduce it in lo 6.0.7.3.

i think the problem is in "sc\source\filter\xml\xmlwrap.cxx", imho
"createBaseURI" could fail, cause there is no "aBaseURL" available?

bool ScXMLImportWrapper::Import( ImportFlags nMode, ErrCode& rError )
[...]
bool bOasis = ( SotStorage::GetVersion( xStorage ) > SOFFICE_FILEFORMAT_60 );

if ((nMode & ImportFlags::Metadata) && bOasis)
    {
        // RDF metadata: ODF >= 1.2
        try
        {
            const uno::Reference< rdf::XDocumentMetadataAccess > xDMA(
                xModel, uno::UNO_QUERY_THROW );
            const uno::Reference< rdf::XURI > xBaseURI(
                ::sfx2::createBaseURI( xContext, xStorage, aBaseURL, aName ) );
            uno::Reference<task::XInteractionHandler> xHandler =
                mrDocShell.GetMedium()->GetInteractionHandler();
            xDMA->loadMetadataFromStorage( xStorage, xBaseURI, xHandler );
        }
        catch ( const lang::WrappedTargetException & e)
        {
            ucb::InteractiveAugmentedIOException iaioe;
            if ( e.TargetException >>= iaioe )
            {
                rError = SCERR_IMPORT_UNKNOWN;
            }
            else
            {
                rError = SCWARN_IMPORT_FEATURES_LOST;
            }
        }
        catch ( const uno::Exception &)
        {
            rError = SCWARN_IMPORT_FEATURES_LOST;
        }
    }

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

Reply via email to