Lucas Azevedo
cfae699d6e
Wrap mimetype insert and getLastInsertId in a transaction
...
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
2023-09-16 19:31:27 +00:00
Lucas Azevedo
f0a1716bb5
fix(mimetype): Remove unnecessary transaction when storing a mime type
...
Fixes #40064 .
This could be fixed by adding a rollback and starting a new transaction
before the SELECT query, but in this case that would have the same
effect as not using one.
See https://dev.mysql.com/doc/refman/8.0/en/innodb-autocommit-commit-rollback.html
and https://www.postgresql.org/docs/7.1/sql-begin.html#R1-SQL-BEGIN-1
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
2023-09-16 19:31:26 +00:00
Arthur Schiwon
3304b0371b
fix(autoloader): no apcu no side effects
...
apcu lead to side effects especially with app management and (soft)
inter-dependencies, and lead also to 500 server errors. While we could
add management to clear apcu cache in many cases (may stil leave edge
cases) the performance benefit is marginally as also class maps are
already cached in opcache. Hence, the simple and effective way to go is
to not use apcu for autoloading.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-09-08 18:30:40 +00:00
Robin Appelman
ee8c1a5c60
only determine quota_include_external_storage once for quota wrapper
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-09-07 16:25:23 +02:00
Robin Appelman
a23447c050
better caching in storage stats calculations
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-09-07 16:25:10 +02:00
Robin Appelman
5ebceaa54c
reuse dependencies from wrapped cache
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-09-07 16:22:00 +02:00
Arthur Schiwon
bb08cc15b0
Merge pull request #40286 from nextcloud/backport/40233/stable27
...
[stable27] Detect aborted connection in OC\Files\View and stop writing data to t…
2023-09-07 11:03:42 +02:00
Joas Schilling
52d68d3109
fix(ratelimit): Only use memory cache backend for redis
...
Signed-off-by: Anna Larch <anna@nextcloud.com>
2023-09-06 15:42:21 +00:00
Arthur Schiwon
801c5556f4
Merge pull request #40231 from nextcloud/sharing-mask-wrapper-27
...
[27] move share permission logic to storage wrapper
2023-09-06 10:27:55 +02:00
Benjamin Gaussorgues
8c7017679d
Detect aborted connection in OC\Files\View and stop writing data to the output buffer
...
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-09-06 09:22:06 +02:00
Arthur Schiwon
90a2802f95
Merge pull request #40258 from nextcloud/backport/40234/stable27
...
[stable27] enh: skip processing for empty response
2023-09-05 19:14:52 +02:00
Arthur Schiwon
278f79f932
Merge pull request #40227 from nextcloud/backport/40195/stable27
...
[stable27] fix: prevent sharing permissions on user root folder
2023-09-05 19:14:24 +02:00
Daniel Kesselberg
b6c6475e18
enh: skip processing for empty response
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-09-04 18:51:27 +00:00
Robin Appelman
fc21ecbd2a
cleanup di for share permissions wrapper
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-09-04 14:13:57 +02:00
Robin Appelman
8511fb91ca
more share permission logic to storage wrapper
...
this way we only have to determine the share permissions once
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-09-04 14:09:41 +02:00
John Molakvoæ
d60f95833b
fix: prevent sharing permissions on user root folder
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-09-04 09:05:11 +00:00
Thomas Citharel
fe618feeb0
fix(s3): fix handling verify_bucket_exists parameter
...
If 'verify_bucket_exists' is set to false in the config.php s3 configuration, it's supposed to avoid
verifying that the bucket exists. However empty(falsy) will always return true, so this condition
would not work.
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-08-31 21:21:16 +00:00
Daniel Kesselberg
4338d0747d
feat: add switch to disable dns pinning
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-08-30 13:07:55 +00:00
Joas Schilling
b9a493ed9b
Merge pull request #40080 from nextcloud/backport/40077/stable27
...
[stable27] fix(cache): Remove displayname cache entry on delete
2023-08-29 15:49:23 +02:00
Anna Larch
c3f92ac5d9
fix(CalDAV): check voject exists before attempting any operation
...
Signed-off-by: Anna Larch <anna@nextcloud.com>
2023-08-28 18:49:44 +02:00
Joas Schilling
7ffc89e7ff
fix(cache): Remove displayname cache entry on delete
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-28 16:18:59 +00:00
Côme Chilliet
6076e7b8ce
Use nullsafe call syntax instead of additionnal check
...
Co-authored-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
2023-08-28 13:50:27 +00:00
Côme Chilliet
98fa5fe627
Set files_sharing:hide_disabled_user_shares to 'yes' to hide shares from disabled users
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-08-28 13:50:26 +00:00
Côme Chilliet
8277d0a5aa
Fix user log.condition feature
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-08-25 08:15:05 +02:00
Joas Schilling
26832ec5da
fix(middleware): Fix header injection for bruteforce middleware
...
Calling setHeaders(getHeaders()) breaks the CSP nonce for unknown reasons
So shifting back to old standard practise for now
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-23 06:44:09 +02:00
Joas Schilling
759fc11f39
fix: Make bypass function public API
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-23 06:44:08 +02:00
Joas Schilling
b55359b23c
feat: Expose if the own IP is allowed to bypass bruteforce protection
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-23 06:44:07 +02:00
Joas Schilling
5c0789197f
feat: Add a header which signals that the request was throttled
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-23 06:44:06 +02:00
Joas Schilling
97548e789f
feat(security): Add a "testing mode" for bruteforce protection that doesn't sleep
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-23 06:44:06 +02:00
Joas Schilling
befa2f6d51
feat(security): Add a bruteforce protection backend base on memcache
...
Similar to the ratelimit backend
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-23 06:44:05 +02:00
Julius Härtl
2a435e8bd2
Merge pull request #39934 from nextcloud/backport/39481/stable27
2023-08-22 08:58:16 +02:00
Julius Härtl
c9978db8e6
Merge pull request #39949 from nextcloud/backport/39770/stable27
2023-08-22 08:57:02 +02:00
Anna Larch
818ddb02c5
fix: don't emit Hooks when hookpaths are empty
...
Signed-off-by: Anna Larch <anna@nextcloud.com>
2023-08-21 09:58:21 +02:00
Max
f32dccd540
fix: always use display name from correct backend
...
Overwrite the display name after the account is initialized
when using an instacne of IGetDisplayNameBackend.
Before when using a variation of user_oidc and registering
a Backend.php implementing IGetDisplayNameBackend
the personal setting page shows 'uid'.
The UserManager/AccountManager seems not to use consistently
the correct backend.
The correct backend is used in this sequence:
server/lib/private/TemplateLayout.php
$userDisplayName = \OC_User::getDisplayName();
$this->assign(user_displayname, $userDisplayName);
In the settings page, it definitely not calls the registered backend,
but seems to fall back to default Backend and shows (usually) uid
or a value from the standard account property table.
Signed-off-by: Max <max@nextcloud.com>
2023-08-17 21:49:28 +00:00
Joas Schilling
30a9ba05d2
fix(memcache): Fix comparison of Memcache configs to classes
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-17 21:08:09 +00:00
Ferdinand Thiessen
752523f874
fix: Prevent PHP warnings when optional CacheEntry attributes are unset
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-08-17 09:48:53 +00:00
Robin Appelman
a5cd892caa
select the fileid first when looking for incomplete files
...
this seems to improve mariadbs index selection
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-08-14 18:58:47 +00:00
John Molakvoæ
bb06aadda9
Merge pull request #39722 from nextcloud/backport/39698/stable27
2023-08-11 09:05:22 +02:00
Simon L
3f51e2d58b
log imaginary errors as info to not spam the server logs
...
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-08-10 12:45:43 +00:00
Julius Härtl
0564bd23f2
feat: Add delete task API
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
(cherry picked from commit fca1c309a0 )
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2023-08-09 14:58:02 +02:00
Julien Veyssier
f363f1153e
change sql where order to match index order
...
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
(cherry picked from commit 05a6a799a7 )
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2023-08-09 14:58:02 +02:00
Julien Veyssier
8e657a8945
allow anon text processing scheduling
...
add a textprocessing_tasks index
convert anotations to method attributes
refactor TP manager
add mapper methods
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
(cherry picked from commit 41b19cf969 )
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2023-08-09 14:58:02 +02:00
Julien Veyssier
6eb18570c0
start implementing ocs endpoint to get task list from user+appId+identifier
...
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
(cherry picked from commit 9986e02097 )
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2023-08-09 14:58:02 +02:00
Marcel Klehr
50adc8c9ab
Migration: Drop llm_tasks table and add textprocessing_tasks
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit ad3f353335 )
2023-08-09 10:27:58 +02:00
Marcel Klehr
7fd0b1b49d
AI admin settings: Use config values in AI feature managers
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 2a3ef102f7 )
2023-08-09 10:22:33 +02:00
Marcel Klehr
cac51714e2
Fix tests: Adjust constructor signature
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit fd0fd97a65 )
2023-08-09 10:05:24 +02:00
Marcel Klehr
00e3fb143f
Remove Task::factory method
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 7389567c7d )
2023-08-09 10:05:23 +02:00
Marcel Klehr
322bb9763a
Apply suggestions from code review
...
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 590eefea70 )
2023-08-09 10:05:13 +02:00
Marcel Klehr
cf2c42ae36
Massive refactoring: Turn LanguageModel OCP API into TextProcessing API
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit ffe27ce14c )
2023-08-09 10:05:05 +02:00
Marcel Klehr
a39e3c90e9
cs:fix
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit a4578cd995 )
2023-08-09 10:02:22 +02:00