office-gobmx/dbaccess
Julien Nabet 0390479ccf Related tdf#152381: fix "lengths do not match"
On console, I noticed these:
warn:dbaccess:111457:111457:dbaccess/source/ui/browser/unodatbr.cxx:754: DBG_UNHANDLED_EXCEPTION in InitializeGridModel exception: com.sun.star.lang.IllegalArgumentException message: "lengths do not match at /home/julien/lo/libreoffice/cppuhelper/source/propshlp.cxx:872" ArgumentPosition: -1

0  cppu::OPropertySetHelper::setPropertyValues(com::sun::uno::Sequence<rtl::OUString> const&, com::sun::uno::Sequence<com::sun::uno::Any> const&)
    (this=0x55eca23d3b90, rPropertyNames=uno::Sequence of length 6 = {...}, rValues=uno::Sequence of length 7 = {...}) at cppuhelper/source/propshlp.cxx:872
1  0x00007f39c7a7ecb6 in comphelper::OPropertySetAggregationHelper::setPropertyValues(com::sun::uno::Sequence<rtl::OUString> const&, com::sun::uno::Sequence<com::sun::uno::Any> const&)
    (this=0x55eca23d3b90, _rPropertyNames=uno::Sequence of length 6 = {...}, _rValues=uno::Sequence of length 7 = {...}) at comphelper/source/property/propagg.cxx:589
2  0x00007f39ac81f057 in dbaui::SbaTableQueryBrowser::InitializeGridModel(com::sun::uno::Reference<com::sun::form::XFormComponent> const&)
     (this=0x55eca23b1960, xGrid=uno::Reference to (frm::OGridControlModel *) 0x55eca23d3c30) at dbaccess/source/ui/browser/unodatbr.cxx:594
3  0x00007f39ac834d46 in dbaui::SbaTableQueryBrowser::implLoadAnything(rtl::OUString const&, rtl::OUString const&, int, bool, utl::SharedUNOComponent<com::sun::sdbc::XConnection, utl::DisposableComponent> const&) (this=0x55eca23b1960, _rDataSourceName="file:///tmp/Table_Default_Firebird.odb", _rCommand="Table2", nCommandType=0, _bEscapeProcessing=true, _rxConnection=...)
    at dbaccess/source/ui/browser/unodatbr.cxx:2384
4  0x00007f39ac8312ee in dbaui::SbaTableQueryBrowser::implSelect(weld::TreeIter const*) (this=0x55eca23b1960, pEntry=0x55eca243bd90) at dbaccess/source/ui/browser/unodatbr.cxx:2678
5  0x00007f39ac8343e2 in dbaui::SbaTableQueryBrowser::implSelect(rtl::OUString const&, rtl::OUString const&, int, bool, utl::SharedUNOComponent<com::sun::sdbc::XConnection, utl::DisposableComponent> const&, bool) (this=0x55eca23b1960, _rDataSourceName="file:///tmp/Table_Default_Firebird.odb", _rCommand="Table2", nCommandType=0, _bEscapeProcessing=true, _rxConnection=..., _bSelectDirect=true)
    at dbaccess/source/ui/browser/unodatbr.cxx:2445
6  0x00007f39ac8398c5 in dbaui::SbaTableQueryBrowser::impl_initialize() (this=0x55eca23b1960) at dbaccess/source/ui/browser/unodatbr.cxx:3251
7  0x00007f39ac7a3eee in dbaui::OGenericUnoController::initialize(com::sun::uno::Sequence<com::sun::uno::Any> const&) (this=0x55eca23b1960, aArguments=uno::Sequence of length 17 = {...})
    at dbaccess/source/ui/browser/genericcontroller.cxx:259
8  0x00007f39ac718dd7 in (anonymous namespace)::DBContentLoader::load(com::sun::uno::Reference<com::sun::frame::XFrame> const&, rtl::OUString const&, com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&, com::sun::uno::Reference<com::sun::frame::XLoadEventListener> const&)
     (this=0x55eca23aacf0, rFrame=uno::Reference to ((anonymous namespace)::XFrameImpl *) 0x55eca1f13750, rURL=".component:DB/DataSourceBrowser", rArgs=uno::Sequence of length 16 = {...}, rListener=uno::Reference to (framework::(anonymous namespace)::LoadEnvListener *) 0x55eca23b0828) at dbaccess/source/ui/browser/dbloader.cxx:230
9  0x00007f39c65f5f13 in framework::LoadEnv::impl_loadContent() (this=0x7fff7788a6e8) at framework/source/loadenv/loadenv.cxx:1154

At least from 59bc10eb46 "INTEGRATION: CWS insight01 (1.152.38); FILE MERGED" (2004-08-02)
this part seems the root pb:
-                Sequence< ::rtl::OUString> aProperties(6);
-                Sequence< Any> aValues(6);
+                Sequence< ::rtl::OUString> aProperties(6 + ( m_bPreview ? 5 : 0 ));
+                Sequence< Any> aValues(7 + ( m_bPreview ? 5 : 0 ));
if m_bPreview is false, there are only 6 attributes:
- PROPERTY_FONT
- PROPERTY_TEXTEMPHASIS
- PROPERTY_TEXTRELIEF
- PROPERTY_ROW_HEIGHT
- PROPERTY_TEXTCOLOR
- PROPERTY_TEXTLINECOLOR

Change-Id: I91cd81f87ae0685123e273fa6d106fdd22003147
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143889
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
Reviewed-by: Lionel Mamane <lionel@mamane.lu>
2022-12-10 06:17:58 +00:00
..
inc tdf#149221 Handle HID on Database Wizard dialog 2022-12-01 14:28:07 +01:00
qa dbaccess: remove unused includes 2022-11-29 14:51:01 +01:00
source Related tdf#152381: fix "lengths do not match" 2022-12-10 06:17:58 +00:00
uiconfig Resolves: tdf#152043 line wrap the label 2022-11-15 14:17:36 +01:00
util use single-use attribute for DataAccessDescriptorFactory 2021-03-23 09:46:53 +01:00
win32/source/odbcconfig
AllLangMoTarget_dba.mk
CppunitTest_dbaccess_dialog_save.mk don't link to vbahelper for --disable-scripting case 2021-09-22 14:38:27 +02:00
CppunitTest_dbaccess_dialogs_test.mk
CppunitTest_dbaccess_embeddeddb_performancetest.mk
CppunitTest_dbaccess_empty_stdlib_save.mk Missing test dependency 2022-08-25 10:47:41 +02:00
CppunitTest_dbaccess_firebird_test.mk move password handling from SwModelTestBase to UnoApiTest 2022-11-11 20:09:41 +01:00
CppunitTest_dbaccess_hsqlbinary_import.mk don't link to vbahelper for --disable-scripting case 2021-09-22 14:38:27 +02:00
CppunitTest_dbaccess_hsqldb_test.mk UnoApiTest: factor out common code 2022-11-09 19:08:32 +01:00
CppunitTest_dbaccess_hsqlschema_import.mk don't link to vbahelper for --disable-scripting case 2021-09-22 14:38:27 +02:00
CppunitTest_dbaccess_macros_test.mk don't link to vbahelper for --disable-scripting case 2021-09-22 14:38:27 +02:00
CppunitTest_dbaccess_nolib_save.mk don't link to vbahelper for --disable-scripting case 2021-09-22 14:38:27 +02:00
CppunitTest_dbaccess_RowSetClones.mk don't link to vbahelper for --disable-scripting case 2021-09-22 14:38:27 +02:00
CppunitTest_dbaccess_tdf119625.mk don't link to vbahelper for --disable-scripting case 2021-09-22 14:38:27 +02:00
CppunitTest_dbaccess_tdf126268.mk Missing test dependency 2022-08-17 17:35:05 +02:00
Executable_odbcconfig.mk
IwyuFilter_dbaccess.yaml dbaccess: remove unused includes 2022-11-29 14:51:01 +01:00
JunitTest_dbaccess_complex.mk
JunitTest_dbaccess_unoapi.mk
Library_dba.mk Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
Library_dbahsql.mk
Library_dbaxml.mk Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
Library_dbu.mk Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
Library_sdbt.mk Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
Makefile
Module_dbaccess.mk Fix --disable-scripting for DESKTOP build 2021-12-03 06:46:24 +01:00
PythonTest_dbaccess_python.mk
README.md Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
UIConfig_dbaccess.mk weld OTableWindowTitle 2021-02-16 15:57:32 +01:00
UIConfig_dbapp.mk
UIConfig_dbbrowser.mk
UIConfig_dbquery.mk
UIConfig_dbrelation.mk
UIConfig_dbtable.mk
UIConfig_dbtdata.mk

Database Access Tools for LibreOffice Base DB Apps

Database access tools, for base database application

Builds on top of drivers in connectivity.