Commit Graph
9992 Commits
Author SHA1 Message Date
Xisco Fauli c3f05fb301 Reapply "firebird: keep each embedded database's files in one directory"
This reverts commit 23a5d0dc30.

it also contains https://gerrit.collaboraoffice.com/c/core/+/7093
"firebird: upper-case the DatabaseAccess Restrict path on Windows"

Change-Id: I52ea962a51da19a112892d6a2497a7ddf682c579
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208208
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-19 10:49:43 +02:00
Xisco Fauli 23a5d0dc30 Revert "firebird: keep each embedded database's files in one directory"
This reverts commit c656bab4c9.

Reason for revert: it breaks the Windows build with
[_RUN_____] MigrationTest::testBinaryImport
warn:sfx.appl:12852:4132:sfx2/source/appl/app.cxx:148: No DDE-Service possible. Error: 16399
warn:vcl:12852:4132:vcl/win/window/salframe.cxx:1046: WinSalFrame::SetIcon(): Could not load large icon !
warn:vcl:12852:4132:vcl/win/window/salframe.cxx:1047: WinSalFrame::SetIcon(): Could not load small icon !
warn:comphelper:12852:4132:comphelper/source/misc/logging.cxx:65: EventLogger_Impl::impl_createLogger_nothrow: caught an exception! com.sun.star.uno.DeploymentException message: "component context fails to supply singleton com.sun.star.logging.LoggerPool of type com.sun.star.logging.XLoggerPool at E:\jenkins\workspace\gerrit_windows_wsl\workdir\UnoApiHeadersTarget\offapi\normal\com/sun/star/logging/LoggerPool.hpp:38" context: class cppu::`anonymous namespace'::ComponentContext
warn:connectivity.firebird:12852:4132:connectivity/source/drivers/firebird/Util.cxx:58: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD4.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'

unknown:0:MigrationTest::testBinaryImport
An uncaught UNO exception
- com.sun.star.sdbc.SQLException: {Message: "firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD4.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69", Context: @00000054DD385300, SQLState: "", ErrorCode: 1, NextException: void: void}

warn:connectivity.firebird:12852:4132:connectivity/source/drivers/firebird/Util.cxx:58: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD4.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_service_start'

warn:cppuhelper:12852:4132:cppuhelper/source/implbase.cxx:82: class com::sun::star::uno::Exception msg: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD4.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_service_start'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Connection.cxx:922
warn:dbaccess:12852:4132:dbaccess/source/core/dataaccess/ModelImpl.cxx:925:  com.sun.star.uno.DeploymentException message: "component context fails to supply service com.sun.star.security.DocumentDigitalSignatures of type com.sun.star.security.XDocumentDigitalSignatures at E:\jenkins\workspace\gerrit_windows_wsl\workdir\UnoApiHeadersTarget\offapi\normal\com/sun/star/security/DocumentDigitalSignatures.hpp:79" context: class cppu::`anonymous namespace'::ComponentContext
MigrationTest::testBinaryImport finished in: 878ms
[_RUN_____] MigrationTest::testNumbers
warn:vcl:12852:4132:vcl/win/window/salframe.cxx:1046: WinSalFrame::SetIcon(): Could not load large icon !
warn:vcl:12852:4132:vcl/win/window/salframe.cxx:1047: WinSalFrame::SetIcon(): Could not load small icon !
warn:connectivity.firebird:12852:4132:connectivity/source/drivers/firebird/Util.cxx:58: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD6.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'

unknown:0:MigrationTest::testNumbers
An uncaught UNO exception
- com.sun.star.sdbc.SQLException: {Message: "firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD6.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69", Context: @00000054DD386320, SQLState: "", ErrorCode: 1, NextException: void: void}

warn:connectivity.firebird:12852:4132:connectivity/source/drivers/firebird/Util.cxx:58: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD6.TMP\FIREBIRD.FDB is not allowed by server configuration
*Exiting before completion due to errors
caused by
'isc_service_start'

warn:cppuhelper:12852:4132:cppuhelper/source/implbase.cxx:82: class com::sun::star::uno::Exception msg: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD6.TMP\FIREBIRD.FDB is not allowed by server configuration
*Exiting before completion due to errors
caused by
'isc_service_start'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Connection.cxx:922
warn:dbaccess:12852:4132:dbaccess/source/core/dataaccess/ModelImpl.cxx:925:  com.sun.star.uno.DeploymentException message: "component context fails to supply service com.sun.star.security.DocumentDigitalSignatures of type com.sun.star.security.XDocumentDigitalSignatures at E:\jenkins\workspace\gerrit_windows_wsl\workdir\UnoApiHeadersTarget\offapi\normal\com/sun/star/security/DocumentDigitalSignatures.hpp:79" context: class cppu::`anonymous namespace'::ComponentContext
MigrationTest::testNumbers finished in: 145ms
[_RUN_____] MigrationTest::testTime
warn:vcl:12852:4132:vcl/win/window/salframe.cxx:1046: WinSalFrame::SetIcon(): Could not load large icon !
warn:vcl:12852:4132:vcl/win/window/salframe.cxx:1047: WinSalFrame::SetIcon(): Could not load small icon !
warn:connectivity.firebird:12852:4132:connectivity/source/drivers/firebird/Util.cxx:58: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD8.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'

unknown:0:MigrationTest::testTime
An uncaught UNO exception
- com.sun.star.sdbc.SQLException: {Message: "firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD8.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69", Context: @00000054DD3863A0, SQLState: "", ErrorCode: 1, NextException: void: void}

warn:connectivity.firebird:12852:4132:connectivity/source/drivers/firebird/Util.cxx:58: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD8.TMP\FIREBIRD.FDB is not allowed by server configuration
*Exiting before completion due to errors
caused by
'isc_service_start'

warn:cppuhelper:12852:4132:cppuhelper/source/implbase.cxx:82: class com::sun::star::uno::Exception msg: firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD8.TMP\FIREBIRD.FDB is not allowed by server configuration
*Exiting before completion due to errors
caused by
'isc_service_start'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Connection.cxx:922
warn:dbaccess:12852:4132:dbaccess/source/core/dataaccess/ModelImpl.cxx:925:  com.sun.star.uno.DeploymentException message: "component context fails to supply service com.sun.star.security.DocumentDigitalSignatures of type com.sun.star.security.XDocumentDigitalSignatures at E:\jenkins\workspace\gerrit_windows_wsl\workdir\UnoApiHeadersTarget\offapi\normal\com/sun/star/security/DocumentDigitalSignatures.hpp:79" context: class cppu::`anonymous namespace'::ComponentContext
MigrationTest::testTime finished in: 128ms
##Failure Location unknown## : Error
Test name: MigrationTest::testBinaryImport
An uncaught UNO exception
- com.sun.star.sdbc.SQLException: {Message: "firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD4.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69", Context: @00000054DD385300, SQLState: "", ErrorCode: 1, NextException: void: void}

##Failure Location unknown## : Error
Test name: MigrationTest::testNumbers
An uncaught UNO exception
- com.sun.star.sdbc.SQLException: {Message: "firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD6.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69", Context: @00000054DD386320, SQLState: "", ErrorCode: 1, NextException: void: void}

##Failure Location unknown## : Error
Test name: MigrationTest::testTime
An uncaught UNO exception
- com.sun.star.sdbc.SQLException: {Message: "firebird_sdbc error:
*Use of database at location E:\JENKINS\WORKSPACE\GERRIT_WINDOWS_WSL\TMP\TEST_DBACCESS_MIGRATION.DLL2JVD3.TMP\TEST_DBACCESS_MIGRATION.DLL2JVD8.TMP\FIREBIRD.FDB is not allowed by server configuration
caused by
'isc_create_database'
 at E:/jenkins/workspace/gerrit_windows_wsl/connectivity/source/drivers/firebird/Util.cxx:69", Context: @00000054DD3863A0, SQLState: "", ErrorCode: 1, NextException: void: void}

Failures !!!
Run: 3   Failure total: 3   Failures: 0   Errors: 3

Change-Id: I5a4c4b072cc1898340eac176d23a689a3cb67128
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208154
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-15 21:03:48 +02:00
Caolán McNamara 8cfa628be8 firebird: only write back an embedded database that was opened
When construct throws before the attach succeeds, the connection is
disposed with the temporary .fdb extracted but never opened, but
storeDatabase ran the backup service against it anyway.

Note whether the database was opened and skip the write back when it was
not.

Change-Id: I7c1bfdd880699d661e4b798fff441a357c141f12
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/6703
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit a73db8b145af1c74cb181e094c0b7ccc4d92d8f0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208041
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-14 10:29:32 +02:00
Caolán McNamara 736210ff4c firebird: don't attach a database that is not in the normal backup state
A database we extract from a .odb is always in the normal backup state,
so refuse one that is not, we're not interested in the difference file
mode case.

firebird upstream attempt as:
https://github.com/FirebirdSQL/firebird/pull/9089

And do it manually for the system-firebird case.

Change-Id: Iff9ebbb075379ca47a7f7f5886b693ac23860566
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/6702
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit e7ea381e87cadaf31bf1ad2213a23f17a6284d1c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208040
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-14 10:29:25 +02:00
Caolán McNamara c656bab4c9 firebird: keep each embedded database's files in one directory
Give the driver a directory of its own, extract each embedded database
into a subdirectory of it, and set DatabaseAccess so firebird keeps any
associated files it makes for a database in the same directory.

A distro firebird reads only firebird.conf from the directory the
FIREBIRD variable names and finds its other resources at their normal
absolute paths. A bundled firebird finds everything relative to it.

Change-Id: If082a30d2426e7942fc9dd48f7124928fc984434
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/6701
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 520d8173cef39a4da85b3ba21bdaaa3150384c25)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208039
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-14 10:29:05 +02:00
Caolán McNamara cc5ac2a819 firebird: don't run an attached database's own event triggers
for the embedded and file cases suppress the database's ON CONNECT and
similar event triggers when attaching, they should not fire just because
the document was opened

Change-Id: I37edab43f25d8cb72cc6dcafd743045f96b4c2e6
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/6700
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 36335ff89ea2309e99da02b449c9b35517cd6f9d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208029
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-13 17:36:08 +02:00
Andreas Heinisch 68ef2c72bb tdf#65685 - Treat constants in SELECT as leaf nodes instead of rules
Change-Id: I292175065255a4337dc426c8fbfd2ea6dd56638d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206981
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2026-06-19 17:00:43 +02:00
Noel Grandin b1712dadb7 the depth parameter to the configmgr open call has never done anything
Change-Id: I74c803a93f561d09d6ec8cccc9bdc764596f321a
Signed-off-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3591
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 758e96b21b067487931bb1e1f3c49815e976955e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206438
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-18 11:17:33 +02:00
Vissarion Fisikopoulos 67b51abd65 tdf#42713: maintain SQL comments in design view
When an SQL query has comments then those were deleted
when switching to design view. This is fixed and the comments
are maintained. In the case the query is edited in design
view then the comments are inevitably lost.

Change-Id: Ibcf6e36fce88a526c7340d352aca9859b1b3714e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205441
Tested-by: Jenkins
Reviewed-by: Vissarion Fisikopoulos <vfisikop@libreoffice.org>
2026-06-09 16:11:29 +02:00
Mike Kaganski 084e6e1ac7 Move ODatabaseMetaDataResultSet to use OPropertyContainerImplHelper
Simplifies the implementation, removing boilerplate.

Change-Id: Ic3b0d27178ba730144afadbab9a15b40719320d8
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/238
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit ed7d521ba17e11d281e1819078423897c349b5f1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205660
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-25 14:33:03 +02:00
Rareș-Constantin Rîjniță 1fe039c6f8 tdf#158237 use c++20 contains() instead of find() and end()
Change-Id: I6ea030b875fc6897fdba5c53c1114fd3dc17603d
Signed-off-by: Rareș-Constantin Rîjniță <rares.rijnita2005@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204971
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-05-13 07:00:52 +02:00
Vissarion Fisikopoulos ec73986ca7 tdf#153057 enable Base to filter date and time values with firebird embedded db
Add cases for date, time and timestamp data types in prepared statement
of firebird embedded database. Add unit tests for this particular case
and for testing the DBTypeConversion functions toDate, toTime,
toDateTime that used in the fix.

Change-Id: I91fd2322598b14f84a96f071ed029c9b3e64d51e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204841
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-05-06 16:48:48 +02:00
Krunal Baraskar 076d033de3 tdf#82579 Related: remove unnecessary premac.h/postmac.h header includes
The macOS headers included do not collide with LibreOffice types, so the
premac/postmac wrappers are unnecessary.

Change-Id: I3671e6af5f84144eab3439eea076192342ad9fa6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201677
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Tested-by: Jenkins
2026-03-16 20:56:08 +01:00
Noel Grandin 4e6f8e76bf SvStream::ReadByteStringLine should not need to specify encoding
Instead, rely on the stream being set into the correct encoding
during stream initialisation.

Change-Id: Icceb067e600140589c329429d12add2ef3d471c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200458
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2026-02-26 20:19:02 +01:00
ashtroll c5ed66adbe tdf#42982 Improve UNO API error reporting
Change-Id: I2fb3f830c6f44a59917b1ed5b1d50dd4f0000000
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196355
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-02-20 16:42:05 +01:00
Simon Chenery e91a6e9b9f tdf#158237 Use C++20 contains() in PColumn.cxx
Change-Id: Ic4853b8baa691eaa3027605bd6e9278fbd767fef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199362
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-02-19 18:55:29 +01:00
Xisco Fauli df481fa4ad reapply "tdf#134526 Firebird: upgrade to release 3.0.11"
This reverts commit 26cfd0d699.

Reason for revert: Let's check if it works with vs2022 now...

Change-Id: I4b4661b7586d21774e05eb75fd73fe505b8c7ebc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198992
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-09 20:18:39 +01:00
Caolán McNamara a44fc53d05 Related: tdf#170410 remove redundant CRYPT_LIBS
commit a726c634ac
Date:   Mon Jan 12 23:02:34 2026 +0100

    Fix "unable to find library -lcrypt" with recent glibc

added a use of CRYPT_LIBS, but that doesn't appear in config_host.mk.in

so effectively that universally removed -lcrypt from the mysqlc link line

Change-Id: I58f49cddeec2b2d3445e569610e4848d310c84d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198886
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2026-02-07 20:15:58 +01:00
Gabor Kelemen 0bdcfc2900 tdf#146619 Use more forward declarations in include/unotools/
This shaves off some 40M of input

Change-Id: I12e10deb87ceea1f7a23f3de4ea624befe187c3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198238
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-05 17:35:46 +01:00
Noel Grandin 01253d0ead no need to use SAL_WHERE when throwing exception
we already add the source location to UNO exception messages

Change-Id: I950d6ecab6fd674335db3d118e50f56aef51bed1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198649
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-02-04 13:02:56 +01:00
Mike Kaganski a6e0ba8386 Use some more IID_PPV_ARGS_Helper to avoid reinterpret_cast
It was already used in commits like e2bfc34d14
(Reimplement OleComponentNative_Impl to use IGlobalInterfaceTable, 2024-03-11).

Change-Id: I8fd60d8eab3ce2d16bfd6766b7fcdcb8b0b182ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198041
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-01-24 16:24:54 +01:00
Gabor Kelemen 3fc666e120 Fix some non self contained headers in modules [a-r]*
Change-Id: I844cfcfa2bc31fae0256e0c7b757b6223ac8ac35
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196633
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-18 00:34:04 +01:00
Tor Lillqvist d3d7943ddf Don't do CppunitTest_connectivity_mysql_test unless ENABLE_MARIADBC
It won't even be attempted, make will complain:
.../solenv/gbuild/ComponentTarget.mk:81: *** No LIBFILENAME set at component target: .../workdir/ComponentTarget/connectivity/source/drivers/mysqlc/mysqlc.component. Stop.

Change-Id: I7be5953fb40bfc2034ed4ddf348e1c5e68a85b19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197256
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@iki.fi>
2026-01-14 14:25:45 +01:00
Julien Nabet a726c634ac Fix "unable to find library -lcrypt" with recent glibc
ld.lld: error: unable to find library -lcrypt
[LNK] Library/libunotest.so
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[MOD] svtools
make[1]: *** [/home/julien/lo/libreoffice/connectivity/Library_mysqlc.mk:10: /home/julien/lo/libreoffice/instdir/program/libmysqlclo.so] Error 1

Change-Id: I6472de619971f631c76e2d463d2057fb26562db4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197155
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-01-13 22:54:45 +01:00
Gabor Kelemen 2a9fd078ff Add some customAssumeFilenames to yaml files
After checking all modules with
bin/find-unneeded-includes --finderrors --headers --recursive

these subdirectories seemed to need custom assumes for an
error free run of IWYU

Change-Id: I8e0553355809e49e3ec3d06aa4404e6cd7b72aff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196631
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-12 11:21:38 +01:00
Mike Kaganski 7b04ef05cd Drop some uses Sequence::getConstArray
Similar to commit b280efcb9b
(Drop some uses Sequence::getConstArray, 2025-12-07).

Change-Id: Ieac325a660fe64e8172c5ed139380caa3d26a73c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195200
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-12-08 10:00:21 +01:00
Neacsa Leonard 9f25059ea1 tdf#163691 Use std::copy() and std::copy_n instead of memcpy()
Signed-off-by: Neacsa Leonard <leonardneacsa2005@gmail.com>
Change-Id: I7d69cbb0c93f5d9223607f519bbcf5e2acb393cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194359
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-12-08 07:58:45 +01:00
Mike Kaganski 23508cdec1 Drop connectivity::mysqlc::concatSequences; use the one from comphelper
Change-Id: I01382b8c418e88339066bd343c964f6c828baf22
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195186
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-12-07 16:59:10 +01:00
Mike Kaganski b280efcb9b Drop some uses Sequence::getConstArray
Replace by operator[], begin() and end(), which don't have overhead
since commit 2484de6728 (Remove non-
const Sequence::begin()/end() in internal code, 2021-10-15)
and commit fb3c04bd19 (Drop non-const
Sequence::operator[] in internal code, 2021-11-05).

Change-Id: I221470b3439bb0dc6e7705b0d99deb3cd2063484
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195176
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-12-07 12:54:23 +01:00
Hossein 577f902198 Avoid using local variable that hides a class member
rBHelper was a local variable with the same name of a member variable of
the class ODatabaseMetaDataResultSet. With this patch, we avoid this
name duplication.

The above duplication was causing build problem with the latest VS 2026
compiler:

error C2220: the following warning is treated as an error
warning C4458: declaration of 'rBHelper' hides class member

Change-Id: Id70c690c3b09611aefab720aef1f8c8c1dd46829
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193965
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2025-11-13 21:24:18 +01:00
Gabor Kelemen fd2e467ba3 tdf#146619 Run IWYU in fw decl mode on include/[a-c]*
After recent commit 851fb75779
recheck these directories in include/ again
to test drive the new --headersfwd mode of bin/find-unneeded-includes

Change-Id: I0ede437c4f9958cd98210ed1760a5b98ea8bd1ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192377
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-08 09:37:19 +01:00
kallial 5553052f30 tdf#157664 Drop operator !=, where respective operator == is defined
Change-Id: I2f99ffc7099dfc2bb47a5102cdb6fd661858a8cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192540
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-10-17 12:43:52 +02:00
Simon Chenery e8b8727027 tdf#158237 Use C++20 contains() instead of find(), end() in dbtools.cxx
Change-Id: I32256e1d9615d0b9f224a311d47e094d54a21862
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192049
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2025-10-08 17:49:36 +02:00
Caolán McNamara 41a20e67c8 cid#1421169 Uncaught exception
and

cid#1421161 Uncaught exception
cid#1421146 Uncaught exception
cid#1421145 Uncaught exception
cid#1421100 Uncaught exception
cid#1659879 Uncaught exception

Change-Id: Ib117e8f2de0d51189d7277d3eec8a1ed685f0724
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191947
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-10-06 11:22:08 +02:00
Caolán McNamara 153b4dc2e0 drop some more COVERITY stuff
Change-Id: I5964880c3eb62875c45e3262a9c657f7bade236d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191946
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-10-06 11:22:01 +02:00
prrvchr 3081701aa8 tdf#156776 Base need to save new table with unique name
In Base if you create a new table with:

- Insert -> Table Design...

when saving this new table with:

- File -> Save As

If the underlying database supports catalogs and/or schemas, it will always be proposed as a table name: Table1

It is necessary to propose a table name that does not yet exist in the pre-selected catalog and/or schema.

Change-Id: I4ca8cb8013f34e1c92211040c7ab0558d94c4243
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190289
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-28 13:53:44 +02:00
Stephan Bergmann c7d1e00d1e loplugin:external
Change-Id: I15c91df5990a4c998fff09be720c9ede7949603a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191358
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2025-09-22 20:25:24 +02:00
Dan Williams 15ee3a4637 connectivity/macab: avoid errors due to missing contacts.notes entitlement
Accessing an address book contact's Note field requires an entitlement since
Mac OS 13. Without that entitlement the following error occurs:

CoreData: error: Unhandled error occurred during faulting: Error Domain=NSCocoaErrorDomain Code=134092 "(null)"

It seems unlikely that the Note field functionality is widely used for
anything the address book functionality is used for, so just ignore the
field entirely.

Signed-off-by: Dan Williams <dan@ioncontrol.co>
Change-Id: I694f3ac40a8dccb49f51818dcdb3da7948f560d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191057
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
2025-09-21 15:26:37 +02:00
Noel Grandin ec3a22ca67 reduce warning spam in connectivity
Change-Id: Iba03e3e18586b8d40775c11ec0156a522fa5dac8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191118
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-18 15:22:04 +02:00
Gabor Kelemen 752083b08c IWYU: drop some exceptions related to rtl::math and std::
at least recent 0.24 no longer warns about these

Change-Id: I1f7c4069df7d47bcd720298c93d71fd6c7bbed9b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191002
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
2025-09-17 19:23:35 +02:00
Dan Williams 87e3e111d2 connectivity/macab: ensure records array is zero-initialized
When constructing a MacabRecords by passing an existing MacabRecords
object, the new object allocates storage for records but does not copy
them, which is left up to the caller. But if the caller does not copy
records, the 'records' array elements are uninitialized garbage, leading
to a crash when the new MacabRecords object is disposed and those
garbage pointers are freed.

Signed-off-by: Dan Williams <dan@ioncontrol.co>
Change-Id: I6d381e523dd3f252f088bb879e886854ffe0163a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191058
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-17 16:27:19 +02:00
Dan Williams 4dc20af897 connectivity/macab: use CoreFoundation instead of Carbon
The Mac address book connector doesn't actually use Carbon,
so just import/link to CoreFoundation.

Signed-off-by: Dan Williams <dan@ioncontrol.co>
Change-Id: I17f42ba6a9355d45ed5c7c60214cb50d803ffbc2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191051
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2025-09-17 16:13:11 +02:00
Julien Nabet 83904a8af7 Fix following 2c0c0ff155
Change-Id: I67b9ae87e9ae7caab546ffffe5f9c66e416f33e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190916
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2025-09-13 15:37:33 +02:00
Gabor Kelemen 2c0c0ff155 tdf#146619 Run IWYU on connectivity/
Note: the --ns mode gives a lot of false positives on cxx files,
the script needs improvements here

Change-Id: Ie9181da8a1b8525f6bb8d85c25ecefc4814b39d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189787
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2025-09-13 00:04:41 +02:00
Mike Kaganski 4b750f6ed5 Use RepeatedChar
Change-Id: I3eb055746d9600b5290f7390900ad2f932345fd7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190347
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-08-29 06:12:07 +02:00
Mike Kaganski 02e946c1d1 Use RepeatedUChar in connectivity, editeng, sc and svl
Change-Id: If7cae3388c644e2c1dacfc63dd904f7048f77070
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190344
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-08-29 06:11:45 +02:00
Patrick Luby 67e05014a2 tdf#111634 Eliminate some macOS Address Book driver memory leaks
The memory leaks that have been eliminated were found using the
steps in the following post:

https://bugs.documentfoundation.org/show_bug.cgi?id=111634#c0

Change-Id: Ifb4ec1837737fe5430ade571e1a45e0aa76078ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190100
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
2025-08-23 18:44:03 +02:00
Mike Kaganski 961cd7f635 Make the test build always
It seems it was never built in our CI. That it needs an environment
variable to run, doesn't mean it can't build - at least to prevent
bitrot.

This adds conditions to execute setup/teardown, and specific tests.
Modernizes the string literals, and fixes the types in asserts to
enable building on Windows.

Change-Id: Ie46333b5b5e516328d7236de1ff1f3b17181c789
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189968
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-08-20 21:01:12 +02:00
Caolán McNamara be6015e3c4 cid#1659971 silence Overflowed return value
and

cid#1659699 Overflowed return value
cid#1659759 Overflowed return value
cid#1659922 Overflowed return value
cid#1660190 Overflowed return value
cid#1660286 Overflowed return value
cid#1660457 Overflowed return value

Change-Id: Ie9fffe4994b10ed3d4feb14eaf7950e3f01714ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189927
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-20 15:08:44 +02:00
Caolán McNamara 16bd75a56c cid#1659785 Variable copied when it could be moved
and

cid#1659793 Variable copied when it could be moved
cid#1659830 Variable copied when it could be moved
cid#1659841 Variable copied when it could be moved
cid#1659856 Variable copied when it could be moved
cid#1659863 Variable copied when it could be moved
cid#1659864 Variable copied when it could be moved
cid#1659865 Variable copied when it could be moved
cid#1659903 Variable copied when it could be moved
cid#1659909 Variable copied when it could be moved
cid#1659917 Variable copied when it could be moved
cid#1659924 Variable copied when it could be moved
cid#1659929 Variable copied when it could be moved
cid#1659930 Variable copied when it could be moved
cid#1659932 Variable copied when it could be moved
cid#1660056 Variable copied when it could be moved
cid#1660112 Variable copied when it could be moved
cid#1660169 Variable copied when it could be moved

Change-Id: I623009beb8e4a61b2253a17f356576bd3ac3f06c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189402
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-12 15:37:59 +02:00