[Libreoffice-bugs] [Bug 138970] New: Maximum columns exceeded warning is shown while opening an MS Excel file via the SDK

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Dec 16 11:13:40 UTC 2020


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

            Bug ID: 138970
           Summary: Maximum columns exceeded warning is shown while
                    opening an MS Excel file via the SDK
           Product: LibreOffice
           Version: 6.3.3.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: koeneke at simuform.com

Description:
While opening an MS Excel file, with more than 1024 columns (AMJ), 
via the API, a warning is shown (maximum columns exceeded warning,
SCWARN_IMPORT_COLUMN_OVERFLOW). LibreOffice has been opened in "hidden" mode
through the API, the warning is the only visible part of LibreOffice and has to
be dismissed/acknowledged by user interaction (pressing the only button "OK").

I've attached a test document created in MS Excel with the value "Test" written
in cell 1:AMK (1:1025). I also attached an MWE using the API's C++ binding.

>From what I've found so far, this seems to be an error related to not calling
ScExternalRefManager::ApiGuard::ApiGuard. The warning is only shown if
rDoc.IsUserInteractionEnabled() returns true in
sc/source/filter/oox/excelfilter.cxx. ScExternalRefManager::ApiGuard::ApiGuard
sets the mbUserInteractionEnabled variable to false in the SCDocument.

My current knowledge of the LibreOffice source code is a bit short, therefore I
can't provide a fix right now. I will try to provide one, if you consider the
displaying of the warning (while in API mode) an unwanted behaviour.

I've tested this on Windows 10 using LibreOffice 6.3.3.2, 6.4.7.2 and 7.0.3.1.
All of them are affected. I also suspect this affects all operating systems and
likely earlier versions too.

Steps to Reproduce:
1. Start an instance of LibreOffice via the API.
2. Open an Excel file with more than 1024 columns calling
com::sun::star::frame::XDesktop2::loadComponentFromUrl(). Open the document in
hidden mode.


Actual Results:
The warning "maximum columns exceeded" is shown before
com::sun::star::frame::XDesktop2::loadComponentFromUrl() returns. This warning
is the only visible part of LibreOffice.

Expected Results:
The warning shouldn't be shown, since LibreOffice has been opened via the API
and no user interaction is to be expected.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 16; OS: Windows 10.0 Build 19041; UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201216/b07b746d/attachment.htm>


More information about the Libreoffice-bugs mailing list