aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix: Wrap partial cache entry in CacheEntryartonge/fix/getting_cache_entryLouis Chemineau2024-11-211-3/+4
| | | | | | | | Because it is returned here: https://github.com/nextcloud/server/blob/7b7d07c5750583ab3a7b29112af475f5c8891143/lib/private/Files/Cache/Cache.php#L136-L137 And some implementation got stricter: https://github.com/nextcloud/groupfolders/blob/df95bf6ba807da5171de91108879b6d8aa9f3611/lib/Mount/RootEntryCache.php#L23-L28 Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat(Mailer): add "null" SMTP transport modeThomas Lehmann2024-11-191-0/+20
| | | | | | | | | | | | | | | | == Goal Allow disabling mail delivery altogether. == Usecase If mails ought to be send by other means than rendering messages from templates and sending them via SMTP-like protocols. Example: listening to specific Nextcloud events and pass parameters to a centralized (i.e. REST-based) API that sends e-mails. Signed-off-by: Thomas Lehmann <t.lehmann@strato.de>
* feat(Mailer): implement cachingThomas Lehmann2024-11-191-0/+6
| | | | | | | | | | | | | Currently $this->instance is never set, so the code is no-op. This brings back caching of the instance. Caching broke with be7db1573dc8c6e7309ec9db124a7a74b8b41199 Swift to \Swift_Mailer as abstraction Signed-off-by: Thomas Lehmann <t.lehmann@strato.de>
* feat(user-prefs): renaming to IUserConfigenh/noid/user-preferencesMaxence Lange2024-11-181-165/+165
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat(user-prefs): switching to NCU/Maxence Lange2024-11-181-4/+4
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat(user-prefs): iterator instead of array on searchMaxence Lange2024-11-181-10/+10
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(user-prefs): adding sensitive and indexed as flagsMaxence Lange2024-11-181-59/+62
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat(user-prefs): IUserPreferencesMaxence Lange2024-11-182-3/+1836
| | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Merge pull request #48675 from georglauterbach/masterCôme Chilliet2024-11-141-2/+3
|\ | | | | DNS: do not query CNAME if A succeeded already
| * fix: do not query CNAME if A succeeded alreadygeorglauterbach2024-11-061-2/+3
| | | | | | | | Signed-off-by: georglauterbach <44545919+georglauterbach@users.noreply.github.com>
* | fix(profile): make sure the app cannot be disabled as it was in coreskjnldsv2024-11-142-2/+12
| | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | feat: add iMip Request HandlingSebastianKrupinski2024-11-071-10/+336
| | | | | | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* | test: add some minimal testing for metadata storagemetadata-storage-idRobin Appelman2024-11-071-0/+98
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(richobjectstrings): Add missing placeholder validationJoas Schilling2024-11-061-1/+46
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #49039 from nextcloud/jtr/fix-ipv6-zone-ids-link-localJohn Molakvoæ2024-11-062-0/+3
|\ \
| * | fix(tests): Add IpAddressClassifier v6 zone ID testjtr/fix-ipv6-zone-ids-link-localJosh2024-11-041-0/+1
| | | | | | | | | Signed-off-by: Josh <josh.t.richards@gmail.com>
| * | fix(tests): Add RemoteAddress v6 zone ID testJosh2024-11-041-0/+2
| | | | | | | | | Signed-off-by: Josh <josh.t.richards@gmail.com>
* | | Merge pull request #48721 from nextcloud/feat/allow-getter-setter-decl-forsJohn Molakvoæ2024-11-061-0/+76
|\ \ \
| * | | feat(DeclarativeSettings): Allow to implement value getter and setter ↵Ferdinand Thiessen2024-10-151-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | directly in Form Instead of implementing the form class, a setter event listener and a getter event listener, this allows to simply write a basic class that provides `getSchema`, `setValue` and `getValue` functions. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | | fix: Handle exception when clearing previously removed two factor tokensclear-pending-two-factor-tokens-also-from-configurationDaniel Calviño Sánchez2024-11-051-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a token was already removed from the database but not from the configuration clearing the tokens will try to remove it again from the database, which caused a DoesNotExistException to be thrown. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | fix: Clear pending two factor tokens also from configurationDaniel Calviño Sánchez2024-11-051-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise as the tokens were removed from the database but not from the configuration the next time that the tokens were cleared the previous tokens were still got from the configuration, and trying to remove them again from the database ended in a DoesNotExistException being thrown. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Merge pull request #47425 from ↵Côme Chilliet2024-11-041-3/+187
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | nextcloud/fix/avoid-invalid-share-on-transfer-ownership fix: promote re-shares when deleting the parent share
| * | | fix: Use getRelativePath method to check if node is inside folderfix/avoid-invalid-share-on-transfer-ownershipCôme Chilliet2024-10-141-10/+14
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | fix: Fix promotion of reshares from subsubfoldersCôme Chilliet2024-10-141-16/+84
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | fix(tests): Fix share tests to test new reshare promotion systemCôme Chilliet2024-10-141-17/+17
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | fix: Tidy up code for reshare deletionCôme Chilliet2024-10-141-8/+8
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | fix: delete re-shares when deleting the parent shareLuka Trovic2024-10-141-3/+115
| | |/ | |/| | | | | | | | | | | | | | | | Note: Removed part about fix command from original PR Signed-off-by: Luka Trovic <luka@nextcloud.com> Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | fix(users): improve recently active searchBenjamin Gaussorgues2024-10-301-3/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove DISTINCT clause to fix PgSQL - Join user table only if necessary - Don't show people who never connected in active list - Add test Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | | Merge pull request #47847 from ↵John Molakvoæ2024-10-291-0/+23
|\ \ \ | | | | | | | | | | | | nextcloud/fix-copying-or-moving-from-shared-groupfolders
| * | | test: add test for nested jail cross-storage movefix-copying-or-moving-from-shared-groupfoldersRobin Appelman2024-10-101-0/+23
| |/ / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #48915 from nextcloud/fix/encrypt-decrypt-passwordKate2024-10-281-3/+19
|\ \ \
| * | | fix: crypto type made not nullable and tests run using ICryptoyemkareems2024-10-281-5/+4
| | | | | | | | | | | | | | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
| * | | fix: encrypt and store password, decrypt and retrieve the sameyemkareems2024-10-281-3/+20
| | | | | | | | | | | | | | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* | | | Merge pull request #48912 from ↵Ferdinand Thiessen2024-10-281-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/bugfix/exception-appscreenshot-notstring fix(apps-store): Fix exception on generating preview url for installed app screenshot
| * | | | fix(appinfo): Make sure screenshot, author and category are always arraysbugfix/exception-appscreenshot-notstringJoas Schilling2024-10-281-0/+1
| |/ / / | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #48614 from nextcloud/refactor/storage/constructorsKate2024-10-283-6/+6
|\ \ \ \ | |/ / / |/| | |
| * | | refactor(Storage): Align all Storage constructorsrefactor/storage/constructorsprovokateurin2024-10-233-6/+6
| | | | | | | | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | | | fix(entity): Fix mapping of old/sub-types to actually supported database typesfollowup/47329/add-all-types-to-handlingJoas Schilling2024-10-231-5/+39
|/ / / | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #47329 from nextcloud/feat/add-datetime-qbmapper-supportFerdinand Thiessen2024-10-187-50/+243
|\ \ \ | | | | | | | | feat(AppFramework): Add full support for date / time / datetime columns
| * | | fix: Prevent breaking change in IQueryBuilderFerdinand Thiessen2024-10-175-13/+13
| | | | | | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * | | feat(AppFramework): Add full support for date / time / datetime columnsFerdinand Thiessen2024-10-175-44/+237
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for all Doctrine supported types, for the column types only the immutable variants needed to be added. But especially those types are the important ones, as our **Entity** class works by detecting changes through setters. Meaning if it is mutable, changes like `$entity->date->modfiy()` can not be detected, so the immutable types make more sense here. Similar the parameter types needed to be added. `Enity` and `QBMapper` needed to be adjusted so they support (auto map) those types, required when insert or update an entity. Also added more tests, especially to make sure the mapper really serializes the values correctly. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* / | fix(comments): Add test for email mentionfeat/noid/support-email-mentionsJoas Schilling2024-10-181-0/+6
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #48673 from nextcloud/fix/null-labelFerdinand Thiessen2024-10-141-0/+34
|\ \ | | | | | | fix(share): Return empty string if no label is set
| * | fix(share): Return empty string if no label is setFerdinand Thiessen2024-10-141-0/+34
| |/ | | | | | | | | | | | | | | | | * Resolves: https://github.com/nextcloud/server/issues/48629 While the database supports NULL, the typing has always said it only returns *string*. So to not break any apps that might trust the typings we should return `''` if the database is set to `NULL`. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* / fix: Shipped apps should include the Nextcloud version in the cache busterfix/shipped-app-versionFerdinand Thiessen2024-10-141-0/+84
|/ | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #48610 from nextcloud/fix/usertrait/backend-initializationKate2024-10-081-0/+3
|\
| * fix(UserTrait): Fix backend initializationfix/usertrait/backend-initializationprovokateurin2024-10-081-0/+3
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | refactor(Storage): Make all parameter types strong typesprovokateurin2024-10-073-14/+12
|/ | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(Wrapper\Encryption): Migrate to strong typesrefactor/stream-encryption/typingsprovokateurin2024-10-071-109/+119
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(Stream\Encryption): Migrate to strong typesprovokateurin2024-10-071-26/+38
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>