Robin Appelman
155fd0b86a
apply known mtime wrapper for external storages
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-10-10 09:34:20 +02:00
Robin Appelman
36eef0be67
add wrapper to ensure we don't get an mtime that is lower than we know it is
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-10-10 09:34:20 +02: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
fc21ecbd2a
cleanup di for share permissions wrapper
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-09-04 14:13:57 +02: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
Côme Chilliet
eb61f94807
Fix tests, add test for the new feature
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-08-28 13:50:26 +00: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
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
Ferdinand Thiessen
258a85d5c7
tests: Add test for CacheEntry getters
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-08-17 09:48:53 +00:00
Marcel Klehr
41918cc8b2
Fix TextProcessing test for 32bit
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-08-09 10:43:59 +02:00
Daniel Kesselberg
4bae251baf
fix: missing argument for TextProcessing Manager
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-08-09 10:40:51 +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
6b2687eb11
LLM OCP API: Change Tests to use EventDispatcher mock
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit bf2dcd67f3 )
2023-08-09 10:02:20 +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
09a8541d74
Add test for task cleanup
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit c568c4a464 )
2023-08-09 10:01:23 +02:00
Marcel Klehr
d21f7bf1fb
Fix tests
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 20cb9935ca )
2023-08-09 10:01:20 +02:00
Marcel Klehr
a4627508e8
Add preliminary tests
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit ebc7631544 )
2023-08-09 10:01:18 +02:00
Joas Schilling
32bfd43d29
feat(HTTPClient): Provide wrapped access to Guzzle's asyncRequest()
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-07 15:38:09 +02:00
Marcel Klehr
070533efa9
JobTest: Remove outdated tests
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-07-28 11:44:39 +00:00
Marcel Klehr
2b23be897b
cs:fix
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-07-28 11:44:39 +00:00
Marcel Klehr
ed84fce879
Add test for ParallelAwareJob
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-07-28 11:44:39 +00:00
Andy Scherzinger
5fbb3bb7f0
Merge pull request #39522 from nextcloud/backport/39264/stable27
...
[stable27] Add instance category while checking new updates
2023-07-27 12:04:52 +02:00
Ferdinand Thiessen
ad2727aef8
fix: Correctly add module content type to script tags when scripts with versions are used
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-07-23 00:38:53 +02:00
Benjamin Gaussorgues
46b462285d
Add instance category while checking new updates
...
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-07-21 10:02:58 +00:00
Arthur Schiwon
d3f50f28e1
Merge pull request #38953 from nextcloud/backport/38917/stable27
...
[stable27] fix(l10n): Fix plural issue with different locale and language
2023-07-10 18:29:58 +02:00
Arthur Schiwon
dd2dfc89fd
Merge pull request #38976 from nextcloud/backport/38625/stable27
...
[stable27] fix: expect interface, not a specific implementation
2023-07-04 22:07:29 +02:00
Joas Schilling
81f9d9a690
fix(l10n): Fix plural issue with different locale and language
...
We need to use the language code here instead of the locale,
because Symfony does not distinguish between the two and would
otherwise e.g. with locale "Czech" and language "German" try to
pick a non-existing plural rule, because Czech has 4 plural forms
and German only 2.
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-06-27 14:13:00 +02:00
Simon L
9c2bd71ad4
try to fix tests
...
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-06-26 08:32:52 +00:00
Arthur Schiwon
f724760f67
chore: ugly type juggling
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-06-23 23:04:44 +00:00
Varun Patil
24875c02db
redis: move lua scripts to class and add type hints
...
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
2023-05-31 07:13:21 +00:00
Robin Appelman
5b137a2498
add test to verify redis lua script hashes
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-31 07:13:20 +00:00
Simon L
48521d67e1
Merge pull request #38143 from nextcloud/fix/generated-avatars-cache
...
Fix generated avatars cache
2023-05-16 11:37:49 +02:00
jld3103
2a19753cf7
Clear generated avatar caches
...
Signed-off-by: jld3103 <jld3103yt@gmail.com>
2023-05-15 18:18:21 +02:00
Joas Schilling
3a6bc7aba2
fix(middleware): Also abort the request when reaching max delay in afterController
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-05-15 16:20:19 +02:00
Ferdinand Thiessen
31c01fa3da
fix(JSResourceLocator): Handle missing translations silently
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-05-11 18:22:24 +02:00
John Molakvoæ
db02684008
Merge pull request #37691 from nextcloud/object-store-background-scan
2023-05-11 08:15:41 +02:00
Robin Appelman
2ea41dab93
repair -1 folder sizes for object store background scan
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-10 19:33:26 +02:00
Robin Appelman
904fdf3aa3
Merge pull request #37838 from nextcloud/event-logger-http
...
log performance events for http requests
2023-05-09 17:15:27 +02:00
Joas Schilling
b91957e3df
fix(dav): Abort requests with 429 instead of waiting
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-05-03 22:43:36 +02:00
Arthur Schiwon
7fcf42ad3f
Merge pull request #38024 from nextcloud/fix/fix-32bits-ci
...
Fix 32bits ci
2023-05-03 10:34:04 +02:00
Arthur Schiwon
ef87dfc478
Merge pull request #33106 from nextcloud/feature/update-expire-date
...
Update expire_date column of table comments
2023-05-03 10:26:28 +02:00
Côme Chilliet
e252182d80
Put back file cleanups, and remove dead code in tests/lib/Template/JSResourceLocatorTest.php
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-05-02 16:24:28 +02:00
Côme Chilliet
adf743b141
Remove the array_pop failing tests on 32bit CI
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-05-02 16:09:37 +02:00
Côme Chilliet
10296ba7e5
Fix tests, and fix Group::searchUsers to avoid duplicates
...
Also went back to searchUsers indexing the array by uid as it was the
previous behavior and the IGroup phpdoc does not say anything about the
keys.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-05-02 11:35:41 +02:00
Robin Appelman
e7ab30f5d8
log performance events for http requests
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-04-28 15:37:57 +02:00
Côme Chilliet
b6c17c6ce7
Clear up return types
...
usersInGroup index by int for BC, searchInGroup index by uid (string).
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-04-27 12:00:45 +02:00
Carl Schwan
35dc223500
Optimize retrieving display name when searching for users in a group
...
This is recurrent scenario that we are searching for users and then for
each users we fetch the displayName. This is inefficient, so instead try
to do one query to fetch everything (e.g. Database backend) or use the
already existing DisplayNameCache helper.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2023-04-27 11:57:45 +02:00
Vitor Mattos
5ed6722dd2
Cover expire_date with unit tests
...
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-04-26 13:21:08 -03:00
Joas Schilling
75f17b6094
Merge pull request #37905 from nextcloud/techdebt/noid/add-attributes-for-remaining-security-annotations
...
feat(security): Add PHP \Attribute for remaining security annotations
2023-04-25 17:13:53 +02:00