Commit Graph
4262 Commits
Author SHA1 Message Date
Andrea Gelmini 32b95cfb89 Fix typos
Change-Id: Id56a6aa927accfdeab10c4680a8f7b0f398f282b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210374
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-02 15:23:38 +02:00
Andrea Gelmini f184f59c8a Fix typos
Change-Id: I05edaae7fc13c0fd5685ba55627046491b4446ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210078
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 14:17:25 +02:00
Andrea Gelmini b3baf599c7 Fix typos
Change-Id: I8edd05a26601baea5d3a416f2228eb439c4f9aa4

Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209816
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 15:15:53 +02:00
Andrea Gelmini ac5aeb3dc7 Fix typos
Change-Id: Ia69fe9989c414ebb69ed6365cc882be4fea38576
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209945
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 11:29:19 +02:00
Andrea Gelmini 467e3b4f49 Fix typos
Change-Id: I8000ee277d51b91e8e04c99afa4327a4245e435f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209475
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-22 10:26:48 +02:00
ApurvR20 ccba2e008f tdf#171853 Replace lastIndexOf by endsWith in pkgcontent.cxx
Change-Id: I9b1e840af20b80a946b7a79f141e505cc7aa4838
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209441
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-08-21 12:21:07 +02:00
RashmiVid bcd92d9ffd tdf#75280: ucb: replace sal_IntPtr with appropriate integer type
Part of tdf#75280

Change-Id: I627c42eb2acf5913a8a8a10b3261e0bf91d632fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203403
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-06-05 13:35:03 +02:00
Michael Weghorn 9044e8dfe4 ucb: Reduce local var scope in SortedResultSet::ResortNew
Change-Id: I0c7c17c4a344f2a018b065801865e8aa4a542d16
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205458
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-20 22:39:39 +02:00
Muhammad Naeem 5c812142b2 tdf#143148: Use pragma once instead of include guards
- Convert include guards to #pragma once in salhelper, starmath, tools, ucb, and o3tl.
- Kept changes minimal to a small cross-module batch as requested by the easyHack guidance.
- Verified with: container=1 make -j4 o3tl.build salhelper.build starmath.build tools.build ucb.build

Change-Id: Ic047061433985e12be41bdb6463ac4c8e8969ddd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204555
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-05-02 13:12:13 +02:00
Noel Grandin 65c0a26338 no need to use SAL_WHERE when throwing exception
we already add the source location to UNO exception messages

Change-Id: I01e68faad85d144b41e0abd2df3c783750862654
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198650
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2026-02-07 12:35:56 +01:00
Stephan Bergmann 394cd5db81 Use some more ""_ustr literals
(in places that were otherwise hit by a libstdc++ 16 trunk issue involving
std::source_location that is discussed at
<https://gcc.gnu.org/pipermail/libstdc++/2026-February/065220.html> "Re: [PATCH
6/9 v4] libstdc++, contracts: Add base P2900R14 contracts support.")

Change-Id: Iaedf3e44a5f2290e194286fa035ceed8fd40da45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198627
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins
2026-02-04 08:22:35 +01:00
Gabor Kelemen 8215006a9d tdf#146619 Use more forward declarations in include/ucbhelper/
Change-Id: I233162bb69e95c4b128e8189d1eb490a67c19ffa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198236
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-31 20:55:03 +01:00
Gabor Kelemen 1ebbe671ec Fix some non self contained headers in module toolkit, ucb, xmloff
Change-Id: Icedeb3f714e6da21d256f5ee26638b327e2c09d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196639
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-21 22:50:37 +01:00
Miklos Vajna 2dcc1c95b5 ucb curl: don't verify peer in the isExemptVerifyHost() case
Try to insert a https:// image URL into Writer when the URL's host is
meant to be not verified, 'curl -k' works with the URL but insertion in
Writer still fails.

Turns out this is an expired self-signed certificate (in a local test
env). Mechanism for not verifying SSL certs in the curl session was
added in commit 2a5c998d4c (allow an
exemption to be made for a specific host, 2024-08-23), but that results
in an image insertion failure.

Fix the problem by adapting the ucb/ code to do what
<https://github.com/curl/curl/blob/470e26ff6eb55e8d18d6fa44104834e9d1f71274/src/config2setopts.c#L375>
does for 'curl -k', also clear the CURLOPT_SSL_VERIFYPEER option.

With this, inserting https:// images from my local test server works
again in Writer.

Change-Id: I0c52f6c0c0dfd6ebf0b4081a8088b623935a96f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197093
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2026-01-12 17:01:28 +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
Caolán McNamara 02b0772b31 cid#1662039 silence Data race condition
Change-Id: I2618b7bd7bca94a8ffb2264c6f15469a1e0d577b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194306
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-11-22 21:03:03 +01:00
Caolán McNamara c9ce983230 revert cid#1662039 Data race condition
Change-Id: I30407ae9619f2159a5afcf692b886a6e69ae8c81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193414
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-11-04 20:53:14 +01:00
Caolán McNamara 4d897b5f02 tdf#168672 Closing webdav documents is extremely slow
Change-Id: I9b6c1cbd7ca4c1a8bcce589cbfda5604e66520f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193401
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-11-04 17:13:09 +01:00
Mike Kaganski a048c3193b Simplify a bit
Change-Id: I05d2a3f053a13d4d6c530f20fe9a70a2ae97b84f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193006
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-10-27 05:13:03 +01:00
Mike Kaganski 59a1b0d5a3 tdf#101630: Do not prompt twice for OAuth2 authentication
The problem was:
When adding a service for Google Drive, clicking OK in the File
Services dialog would initiate the OAuth2 authentication procedure;
after successful confirmation, immediately another authentication
procedure started.

The reason was, that the first procedure was initiated by the code
in RepoContent::getRepositories, which created a session, but did
not register it, nor saved its token. Then, in Content::getSession,
another session had to be created, which had to authenticate again.

Before this change, the registration for an OAuth2-authenticated
session used a key including the repo. Therefore, RepoContent did
not know which repo it had to use for registration.

This change unifies the previously duplicated code used to create
a session. For OAuth2-based sessions, the key for registration is
now only the service's binding URL, which allows to use the same
key both in RepoContent::getRepositories and Content::getSession.
Now the successfully created session in getRepositories is not
deleted, allowing it to be registered and reused.

Also, after the OAuth2 authentication failed (which means that it
was cancelled by the user), the password dialog is not shown.

Change-Id: Ic84a8e034eb0900aca3b4cac0d73dd7443d6380d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193002
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-10-26 17:52:37 +01:00
siddhi 8120172f8f tdf#75280 Convert inappropriate use of sal_IntPtr to better integer
types

In sortresult.cxx, the data type of loop counter i in Remove & SetChanged
methods seems incorrect. Change to sal_Int32 which aligns with nCount.

Change-Id: Iba61b8fda5ce9d11edd59e4f192723712fd42b4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192676
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2025-10-20 08:22:37 +02:00
Gabor Kelemen a20e7520c3 Sanity check all IwyuFilter files
This should not complain anymore:

for i in $(ls -1 */*yaml) ; do mod=$(echo "$i" | cut -d '/' -f1 ) ; bin/find-unneeded-includes --sanitycheck "$mod"; done

Change-Id: I5c4b99f5cb58c6f696b127c81edd6d323104cd7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191829
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2025-10-14 19:44:19 +02:00
Caolán McNamara 4d3ca43ac7 cid#1659708 Data race condition
Change-Id: I599782383b48417841854fbf0cea213b3316e18d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190518
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-09-02 16:16:22 +02:00
Caolán McNamara 7aab3f08de cid#1662039 Data race condition
Change-Id: I58ed464b9f49ddf12f21995f08a8a70f430e2669
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189930
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
2025-08-20 11:00:44 +02:00
Caolán McNamara 3f3aed0045 cid#1642989 Wait without held lock
restore the lock at the end of SerfLockStore::stopTicker

SerfLockStore::removeLockImpl calls this, and that is called
by SerfLockStore::refreshLocks in a loop, so if it was unlocked
at the end of the first loop, then its still unlocked on a 2nd
loop.

Probably doesn't matter as there's only a 2nd unlock attempt
if m_aLockInfoMap.empty() which presumably can only happen once.

Change-Id: Iede91b1b4ef9368bcf4e62cb85bf5a0c745e0ba7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189058
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-20 09:27:02 +02:00
Caolán McNamara 7841de4bf7 drop outdated coverity directives
Change-Id: Icbe3f0bb9433cfcf08efd28bc4eab1ba82efab74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189850
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-18 12:40:58 +02:00
Caolán McNamara 270f80c3f2 cid#1555415 Variable copied when it could be moved
and

cid#1659706 Variable copied when it could be moved
cid#1659716 Variable copied when it could be moved
cid#1659727 Variable copied when it could be moved
cid#1659735 Variable copied when it could be moved
cid#1659739 Variable copied when it could be moved
cid#1659740 Variable copied when it could be moved
cid#1659746 Variable copied when it could be moved

Change-Id: I981c42ebad50670d7704d5377b97917c966ee7da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189262
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-09 19:40:43 +02:00
Caolán McNamara b1ec05b4b1 cid#1662031 Variable copied when it could be moved
and

cid#1660225 Variable copied when it could be moved
cid#1660211 Variable copied when it could be moved
cid#1660185 Variable copied when it could be moved
cid#1660173 Variable copied when it could be moved
cid#1660168 Variable copied when it could be moved
cid#1660166 Variable copied when it could be moved
cid#1660165 Variable copied when it could be moved
cid#1660163 Variable copied when it could be moved
cid#1660152 Variable copied when it could be moved
cid#1660149 Variable copied when it could be moved
cid#1660147 Variable copied when it could be moved
cid#1660145 Variable copied when it could be moved
cid#1660142 Variable copied when it could be moved
cid#1660140 Variable copied when it could be moved
cid#1660137 Variable copied when it could be moved
cid#1660136 Variable copied when it could be moved
cid#1660135 Variable copied when it could be moved
cid#1660128 Variable copied when it could be moved
cid#1660124 Variable copied when it could be moved
cid#1660122 Variable copied when it could be moved
cid#1660117 Variable copied when it could be moved
cid#1660114 Variable copied when it could be moved
cid#1660110 Variable copied when it could be moved
cid#1660109 Variable copied when it could be moved
cid#1660105 Variable copied when it could be moved
cid#1660104 Variable copied when it could be moved
cid#1660102 Variable copied when it could be moved
cid#1660100 Variable copied when it could be moved
cid#1660098 Variable copied when it could be moved
cid#1660080 Variable copied when it could be moved
cid#1660079 Variable copied when it could be moved
cid#1660078 Variable copied when it could be moved
cid#1660075 Variable copied when it could be moved
cid#1660071 Variable copied when it could be moved
cid#1660070 Variable copied when it could be moved
cid#1660064 Variable copied when it could be moved
cid#1660063 Variable copied when it could be moved
cid#1660060 Variable copied when it could be moved
cid#1660058 Variable copied when it could be moved
cid#1660053 Variable copied when it could be moved
cid#1660050 Variable copied when it could be moved
cid#1660049 Variable copied when it could be moved
cid#1660046 Variable copied when it could be moved
cid#1660042 Variable copied when it could be moved
cid#1660028 Variable copied when it could be moved
cid#1660023 Variable copied when it could be moved
cid#1660022 Variable copied when it could be moved
cid#1660021 Variable copied when it could be moved
cid#1660020 Variable copied when it could be moved
cid#1660017 Variable copied when it could be moved
cid#1660013 Variable copied when it could be moved
cid#1660005 Variable copied when it could be moved
cid#1660003 Variable copied when it could be moved
cid#1659999 Variable copied when it could be moved
cid#1659998 Variable copied when it could be moved
cid#1659995 Variable copied when it could be moved
cid#1659993 Variable copied when it could be moved
cid#1659989 Variable copied when it could be moved
cid#1659988 Variable copied when it could be moved

Change-Id: I2a30c8a2ac8785050d49b98635b0b406535b185a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189056
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-07 20:51:26 +02:00
Caolán McNamara 7dfb235a60 cid#1659628 Data race condition
don't unlock guard on simple return case, so guard is always
still locked on leaving this method

Change-Id: I5c8aad5aad20280782e099cdb8a83bf434446249
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188996
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-06 12:49:11 +02:00
Caolán McNamara 9a2bcf52fb swap the if/else order
put the immediate return first, no logic change intended. Drop
stray ; at the of method.

Change-Id: Ifad2c2c25bfb3237710920dd945abcfeca01f655
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188995
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-06 12:48:49 +02:00
Caolán McNamara a2bbf65bb4 cid#1659628 can only reach this line in the case of a caught exception
so move it into that block protected by the rGuard.lock()

Change-Id: I8e0bde5a7de6ec5428b405f734d6c8e54fb1645e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188994
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-06 12:48:06 +02:00
Caolán McNamara a2a1a116e2 cid#1660059 silence bogus Use after free
Change-Id: Ic354f8cd6b609decca392bf3f1870932c2c91e31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188852
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-03 00:59:28 +02:00
Caolán McNamara 8f73de67cf cid#1660488 Variable copied when it could be moved
and

cid#1660483 Variable copied when it could be moved
cid#1660480 Variable copied when it could be moved
cid#1660473 Variable copied when it could be moved
cid#1660472 Variable copied when it could be moved
cid#1660471 Variable copied when it could be moved
cid#1660468 Variable copied when it could be moved
cid#1660464 Variable copied when it could be moved
cid#1660463 Variable copied when it could be moved
cid#1660462 Variable copied when it could be moved

Change-Id: I6380e6a6c2a63a5d6f2052264c54f250703e77fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188825
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-02 17:39:55 +02:00
Caolán McNamara 96939c7303 cid#1660121 Resource leak
and

cid#1660097 Resource leak

Change-Id: Ife9963022f93f1288439928156a10a10dc25da9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188592
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-07-31 10:01:01 +02:00
Noel Grandin 9b79ae1161 loplugin:blockblock
found with a modified copy of this plugin

Change-Id: Ib2ca97c7479abdf1a375e2700f9c947e1101f0e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188065
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-07-19 19:11:16 +02:00
Gabor Kelemen 8d736f84a0 Remove IWYU exceptions about comphelper/scopeguard.hxx
Noticed that newer versions of IWYU no longer give a false warning
about this, so just drop them

Change-Id: Ic45a8fab10965dc5d0a5432fc36e48db187834c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187143
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2025-07-01 20:54:16 +02:00
Gabor Kelemen 2d2ba47783 Remove obsolete fw declarations from ucb/
found with bin/find-unneeded-includes --fwdecl

Change-Id: I186a6e29a4a2a355ae0820c7b211db89c6d81d94
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184006
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2025-05-20 08:10:12 +02:00
Noel Grandin 68ba1c02ac no need to subclass std::unordered_map here
Change-Id: Ib7be7dac8f394a35eed7212c6fbad3cefa39eaa0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185399
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-05-16 13:38:01 +02:00
Noel Grandin 22f46bd89f use more concrete UNO classes
Change-Id: Id10786bbf7985adbb251224b45f9dabcc84d0a3d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182721
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-03-10 14:18:35 +01:00
Noel Grandin 591d57a21e fix dodgy lifecycle in OOoMountOperation
We fix/improve 3 things here
(1) Holding a pointer to something that might be on the stack seems dodgy.
I traced the calls back a few levels and ended up with lots of lots of
call sites, with no guarantee this pointer is safe to hold for any
length of time.

(2) we already have a unique_ptr in this structure, but we are not
properly constructing it.

(3) once we fix (1) and (2) by calling the constructor/destructor
explicitly, we can simply the password/username field handling.

This code has been here since:

    commit 065b374d69
    Author: Vladimir Glazounov <vg@openoffice.org>
    Date:   Wed May 14 13:49:20 2008 +0000
    INTEGRATION: CWS ucpgio1 (1.1.2); FILE ADDED
    2008/04/30 16:35:19 cmc 1.1.2.1: #i88090# add gio content provider

Change-Id: I3ffcf30fbf66c855cedc4a3a99985bc6ee42faa9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182483
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-03-05 17:10:12 +01:00
Noel Grandin 09e2627a83 use more concrete UNO types in some local vars
found by a little plugin I created.

Plugin parked into store/ folder because it needs hand-holding
when run.

Change-Id: I2b4da7378f0becbc5f020ac9e78cd765aa0119b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181768
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-02-26 16:56:56 +01:00
Caolán McNamara ddc09464d3 kit: enable metadata filter
Change-Id: I6814a9aa4fff5903258e92e4d1b56db1c452c49f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182041
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-02-22 23:02:58 +01:00
Caolán McNamara efc5ee18b3 filter out instance metadata connections
Change-Id: Iad8b06515700f88c07bd22fa31fb2deb85dde805
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181144
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ash@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181489
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-02-22 21:03:15 +01:00
Caolán McNamara 96a4272a84 cid#1642989 Double lock
since:

commit 867d380b0b
Commit:     Michael Stahl <michael.stahl@allotropia.de>

    tdf#161168 Improve constant repetitive loop thread

Change-Id: If8e70322db88f2356aebd6799449a542c0d8bdfb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181818
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-02-18 14:10:37 +01:00
Noel Grandin af7e4a555f loplugin:unusedmethods
Change-Id: If02eaf59ebc74001e82b70430bc32ef2edcb6d83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181470
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-02-12 12:13:00 +01:00
Manish Bera 867d380b0b tdf#161168 Improve constant repetitive loop thread
Change-Id: I01cebb1bb085c3b390c3ced48c431e8f5dc6bcbd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181005
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2025-02-06 10:12:20 +01:00
Caolán McNamara 1d4da92f7c cid#1607743 Data race condition
Change-Id: Ic7f4744fdb1cf43f6bcf6c66752f37be25c06cb6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178494
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-12-23 21:17:00 +01:00
Caolán McNamara aed39170ce cid#1606940 Check of thread-shared field evades lock acquisition
and

cid#1608607 Check of thread-shared field evades lock acquisition

futile to lock m_nState

 #1  0x00007f3bdc4a9cc1 in pthread_mutex_lock@@GLIBC_2.2.5 () at /lib64/libc.so.6
 #2  0x00007f3bc48b0683 in __gthread_mutex_lock (__mutex=0x29ae4698) at /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/x86_64-redhat-linux/bits/gthr-default.h:762
 #3  0x00007f3bc48b9505 in std::mutex::lock (this=0x29ae4698) at /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/std_mutex.h:113
 #4  0x00007f3bc48b8bec in std::unique_lock<std::mutex>::lock (this=0x7fffa21aa7e8) at /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_lock.h:147
 #5  0x00007f3bc48b0b58 in std::unique_lock<std::mutex>::unique_lock (this=0x7fffa21aa7e8, __m=...) at /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_lock.h:73
 #6  0x00007f3bc48af7cc in fileaccess::BaseContent::cDEL (this=0x29ae4600) at core/ucb/source/ucp/file/bc.cxx:1126
 #7  0x00007f3bc48af9d4 in non-virtual thunk to fileaccess::BaseContent::cDEL() () at core/instdir/program/../program/libucpfile1.so
 #8  0x00007f3bc492d43f in fileaccess::TaskManager::getContentDeletedEventListeners (this=0x29ab47e0, aName="file://core/instdir/program/../share/config/cdefghij.klm")
     at core/ucb/source/ucp/file/filtask.cxx:2581
 #9  0x00007f3bc492caaa in fileaccess::TaskManager::remove
     (this=0x29ab47e0, CommandId=5, aUnqPath="file://core/instdir/program/../share/config/cdefghij.klm", IsWhat=fileaccess::TaskManager::FileUrlType::File, MustExist=true)
     at core/ucb/source/ucp/file/filtask.cxx:1572
 #10 0x00007f3bc48ab8c2 in fileaccess::BaseContent::deleteContent (this=0x29ae4600, nMyCommandIdentifier=5) at core/ucb/source/ucp/file/bc.cxx:934
 #11 0x00007f3bc48a9891 in fileaccess::BaseContent::execute (this=0x29ae4600, aCommand=..., CommandId=5, Environment=empty uno::Reference) at core/ucb/source/ucp/file/bc.cxx:300
 #12 0x00007f3bc48ad00a in non-virtual thunk to fileaccess::BaseContent::execute(com::sun::star::ucb::Command const&, int, com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> const&) ()
     at core/instdir/program/../program/libucpfile1.so
 #13 0x00007f3bdc8f5537 in ucbhelper::Content_Impl::executeCommand (this=0x29adfb80, rCommand=...) at core/ucbhelper/source/client/content.cxx:1260
 #14 0x00007f3bdc8f673c in ucbhelper::Content::executeCommand (this=0x7fffa21ab0a0, rCommandName="delete", rCommandArgument=uno::Any("boolean": 1 '\001'))
     at core/ucbhelper/source/client/content.cxx:562
 #15 0x00007f3bdf7fd2c1 in KillFile (rURL=...) at core/svx/source/gallery2/galmisc.cxx:291

Change-Id: Iff9114adb4d5fe2ccf0d5a10fdd91295393a7820
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177519
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-12-14 21:55:01 +01:00
Mike Kaganski e512091e89 Simplify InteractionContinuation and derivatives
Change-Id: Ib7294cc09255f7563ae14488ab7fb56d02092dc4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178117
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-09 05:26:24 +01:00
Mike Kaganski 76cf7c6fc0 Simplify UcbContentProviderProxy
Change-Id: I7366e31dc167707adf2c614049cee852e44d7ac1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178097
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-12-08 20:19:34 +01:00