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
Marcel Klehr
5e86054858
LLM OCP API: Avoid using OC in OCP
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 8f1a4f4255 )
2023-08-09 10:02:14 +02:00
Marcel Klehr
d578974b81
LLM OCP API: Simplify TaskBackgroundJob#run catch block
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 9ccc65d68c )
2023-08-09 10:02:09 +02:00
Marcel Klehr
4ce77b9d56
LLM OCP API: Explain TaskBackgroundJob#setAllowParallelRuns
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit e810a8b66b )
2023-08-09 10:02:07 +02:00
Marcel Klehr
ddb2726140
LLM OCP API: Don't lose trace of wrapped exceptions
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 05fcf31987 )
2023-08-09 10:02:05 +02:00
Marcel Klehr
39bc710d17
LLM OCP API: Simplify LanguageModelManager#canHandleTask
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 945522768e )
2023-08-09 10:02:04 +02:00
Marcel Klehr
70e65ff7a3
LLM OCP API: s/getAvailableTasks/getAvailableTaskClasses/
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit d56286b8ac )
2023-08-09 10:02:00 +02:00
Marcel Klehr
3350811ce3
LLM OCP API: Add missing copyright and strict types
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit a28d8fac2f )
2023-08-09 10:01:58 +02:00
Marcel Klehr
22a93bfc3a
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 95d2bd50da )
2023-08-09 10:01:50 +02:00
Marcel Klehr
d9f2aaf869
LLM OCP API: Fix psam error
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 0a0e812453 )
2023-08-09 10:01:43 +02:00
Marcel Klehr
ffedcebc50
LLM OCP API: Add identifier param
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit f6f8cb4331 )
2023-08-09 10:01:31 +02:00
Marcel Klehr
4447d59d17
cs:fix
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit fb657bfff8 )
2023-08-09 10:01:28 +02:00
Marcel Klehr
8197403de1
Fix LanguageModelManager#runTask: Insert task into db if it doesn't exist
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 1747068e51 )
2023-08-09 10:01:25 +02:00
Marcel Klehr
e7179598c7
Make tests pass
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 66c0e6b9f7 )
2023-08-09 10:01:21 +02:00
Marcel Klehr
2234497c49
TaskMapper#update: Use time factory
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 1623ad9eda )
2023-08-09 10:01:12 +02:00
Marcel Klehr
91325efa78
Add tasks::last_updated column and vacate tasks after a week
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit cb0f918d21 )
2023-08-09 10:01:10 +02:00
Marcel Klehr
fb9262e864
LLM OCP API: Use OCP\Common\Exception\NotFoundException
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit b00a9a6eae )
2023-08-09 10:01:02 +02:00
Marcel Klehr
4405027471
Apply suggestions from code review
...
Co-authored-by: Daniel <mail@danielkesselberg.de>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 8e4aa92167 )
2023-08-09 10:00:52 +02:00
Marcel Klehr
02c78be790
LLM OCP API: Fix static analysis
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit fac83ce4b6 )
2023-08-09 10:00:16 +02:00