jld3103
b153340b62
Add type hints for mappers
Signed-off-by: jld3103 <jld3103yt@gmail.com>
vor 1 Jahr
John Molakvoæ
5b3900e849
fix(tests): acceptance
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
vor 1 Jahr
Joshua Trees
a4032a3800
Add some tests for input trimming in LostController.php
Signed-off-by: Joshua Trees <me@jtrees.io>
vor 1 Jahr
jld3103
d9f8522003
Fix types for reading and writing config values
Signed-off-by: jld3103 <jld3103yt@gmail.com>
vor 1 Jahr
Joas Schilling
131f481a67
fix(initial-state): Log an error when initial-state can not be JSON encoded
Signed-off-by: Joas Schilling <coding@schilljs.com>
vor 1 Jahr
Louis Chemineau
1a6709cf43
Migrate metadata as JSON to value as STRING
Signed-off-by: Louis Chemineau <louis@chmn.me>
vor 1 Jahr
Côme Chilliet
4393b96542
Remove unused method getLocalFolder
It’s not used and not in any OCP interface/class.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
vor 1 Jahr
Côme Chilliet
966a3e6963
Tidy up typing in OC\Files\View
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
vor 1 Jahr
Joas Schilling
454281af03
feat(security): Allow to opt-out of ratelimit protection, e.g. for testing on CI
Signed-off-by: Joas Schilling <coding@schilljs.com>
vor 1 Jahr
Arthur Schiwon
997c2a2a79
fix DBAL exception handling in setValues
This seems to be a left over after abstracting DBAL. Nowadays,
IQueryBuilder::executeStatement() only throws a \OCP\DB\Exception, where
previously original DBAL exceptions where thrown. These are now wrapped,
the orignal classes are now mapped to a reason.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
vor 1 Jahr
Christopher Ng
4f8e916585
Add label for logo link
Signed-off-by: Christopher Ng <chrng8@gmail.com>
vor 1 Jahr
Git'Fellow
346054f854
Fix tests
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
vor 1 Jahr
Côme Chilliet
633ea018af
Fix BackgroundCleanupJobTest
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
vor 1 Jahr
Artur Neumann
37cfccabc1
unit tests for Manager::invalidateTokensOfUser
Signed-off-by: Artur Neumann <artur@jankaritech.com>
vor 1 Jahr
Côme Chilliet
9b1d7794a8
Add chunking in SystemTagObjectMapper::getTagIdsForObjects
This avoids crashing on Oracle with more than 1000 objects
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
vor 1 Jahr
Thomas Citharel
f1751c4428
Introduced app enable/disable/update typed events
OCP\App\ManagerEvent is depreciated since 22 without a replacement
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
vor 1 Jahr
Daniel Kesselberg
39c1b6f49f
chore(tests): add tests for handleLoginFailed
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
vor 1 Jahr
Joas Schilling
2b49861679
Add a debug message when throttling without defining
Signed-off-by: Joas Schilling <coding@schilljs.com>
vor 1 Jahr
Joas Schilling
e839eb9b5c
feat(middleware): Migrate BruteForceProtection annotation to PHP Attribute and allow multiple
Signed-off-by: Joas Schilling <coding@schilljs.com>
vor 1 Jahr
Joas Schilling
b4f51fe728
fix(CI): Fix acceptance test password field selector after @nextcloud/vue lib update
Signed-off-by: Joas Schilling <coding@schilljs.com>
vor 1 Jahr
Joas Schilling
c297f8ee96
feat(appframework): ⌚ Make ITimeFactory extend \PSR\Clock\ClockInterface
Signed-off-by: Joas Schilling <coding@schilljs.com>
vor 1 Jahr
Vitor Mattos
e9295f739e
Split the comments ids by chunks
Split the comments ids by chunks to prevent error with Oracle database
that can't do a query with more than 1000 parameters.
https://github.com/nextcloud/spreed/issues/8287
Signed-off-by: Vitor Mattos <vitor@php.rio>
vor 1 Jahr
Ferdinand Thiessen
1785a80754
tests(db): Add test case to ensure column comments work
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
vor 1 Jahr
Marcel Klehr
4f7d77406d
Fix SystemTagManagerTest#createTag test
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
vor 1 Jahr
Marcel Klehr
889caf4632
Update tests/lib/SystemTag/SystemTagManagerTest.php
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
vor 1 Jahr
Marcel Klehr
8151b1b8b0
fix(SystemTagManager): Truncate overlong tag names
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
vor 1 Jahr
Ferdinand Thiessen
b642137c65
feat(OC/Template): Add `type="module"` for ES6 scripts
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
vor 1 Jahr
Ferdinand Thiessen
00e041b907
feat(template): Allow `JSResourceLocator` to find ES6 scripts
Enable module js (ES6) support on the `JSResourceLocator`.
This changes `JSResourceLocator` to look for `.mjs` files first
to allow applications to provide a fallback `.js` for older Nextcloud versions.
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
vor 1 Jahr
Joas Schilling
98ed72b3ed
Revert "fix(performance): Do not set up filesystem on every call"
vor 1 Jahr
Ferdinand Thiessen
61b9ba28e4
Add webp and large jpg test assets
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
vor 1 Jahr
Julius Härtl
614981ae9a
feat(directediting): Allow opening by file id
Signed-off-by: Julius Härtl <jus@bitgrid.net>
vor 1 Jahr
Anna Larch
5d4efb4d5f
Do not set up filesystem on every call
Also remove old Oc_FileChunking logis that produced GC- collectable chunks
Signed-off-by: Anna Larch <anna@nextcloud.com>
vor 1 Jahr
Julius Härtl
47bc024885
Revert the token scope to not end up with storing the user used in the session
Signed-off-by: Julius Härtl <jus@bitgrid.net>
vor 1 Jahr
Ferdinand Thiessen
f655f83c84
fix(CORS): CORS should only be bypassed on `PublicPage` if not logged in to prevent CSRF attack vectors
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
vor 1 Jahr
Simon L
b38d2daede
fix the contacts-menu vcf-contact avatars
Signed-off-by: Simon L <szaimen@e.mail.de>
vor 1 Jahr
MichaIng
5f90b8eb11
Change X-Robots-Tag header from "none" to "noindex, nofollow"
While "none" is indeed equivalent to "noindex, nofollow" for Google, but seems to be not supported by Bing and probably other search engines.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name#other_metadata_names
https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag?hl=de#comma-separated-list
https://www.bing.com/webmasters/help/which-robots-metatags-does-bing-support-5198d240
Signed-off-by: MichaIng <micha@dietpi.com>
vor 1 Jahr
Robin Appelman
b911da3e1e
DI for Router
Signed-off-by: Robin Appelman <robin@icewind.nl>
vor 1 Jahr
Robin Appelman
91d5f6a826
more filesystem setup performance instrumentation
Signed-off-by: Robin Appelman <robin@icewind.nl>
vor 1 Jahr
Christopher Ng
c77998209f
Port user menu to Vue
Signed-off-by: Christopher Ng <chrng8@gmail.com>
vor 1 Jahr
Joas Schilling
a81d8ecef5
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
vor 1 Jahr
Robin Appelman
9f3dbb699a
fix tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
vor 1 Jahr
Côme Chilliet
892e6c642a
Skip buggy tests for 32bits CI
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
vor 1 Jahr
Côme Chilliet
77c8c9c805
Improve error output on failed Router test
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
vor 1 Jahr
Côme Chilliet
94ecae4ade
Add helper to cast to int|float, fix MemoryInfo on 32bits
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
vor 1 Jahr
Côme Chilliet
0f8c34cdc6
Fix filesize return type error in ViewTest
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
vor 1 Jahr
Côme Chilliet
5cfab229db
Improve test failure output for RouterTest.php
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
vor 1 Jahr
Côme Chilliet
2d8e696c24
Add apcu and ffmpeg to have less skipped tests
Also exclude test groups which rely on a service
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
vor 1 Jahr
Ferdinand Thiessen
ba8a50c059
fix: Throw `NotFoundExceptionInterface` to fulfill PSR container interface if class not found
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
vor 1 Jahr
Joas Schilling
875e6cf7e6
fix(CI): Adjust expected result
Signed-off-by: Joas Schilling <coding@schilljs.com>
vor 1 Jahr
Christoph Wurst
88d116ba84
fix(client-login-flow): Handle missing stateToken gracefully
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
vor 1 Jahr