aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #36665 from nextcloud/fix/36539Julien Veyssier2023-03-221-0/+2
|\ | | | | Always set displayname and display-name for user data
| * Always set displayname and display-name for user datajld31032023-02-101-0/+2
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | Merge pull request #37334 from ↵Joas Schilling2023-03-221-0/+1
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/mark-recording-servers-as-sensitive-due-to-secret fix(security): Mark recording_servers key appconfig as private as it …
| * | fix(security): Mark recording_servers key appconfig as private as it ↵Joas Schilling2023-03-221-0/+1
| | | | | | | | | | | | | | | | | | contains a secret Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #36057 from nextcloud/feat/esm-js-scriptsJulius Härtl2023-03-222-40/+69
|\ \ \ | |/ / |/| |
| * | fix(OC/Template): Allow `.mjs` files within custom app pathsFerdinand Thiessen2023-02-221-29/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If apps are installed in non standard app paths, we need to check `$app_path/$script` instead of only doing so for translations. Without this it would fallback to `.js` extension even if a `.mjs` file exists. Also tried make the code more selfe explaining. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
| * | feat(OC/Template): Add `type="module"` for ES6 scriptsFerdinand Thiessen2023-02-221-5/+11
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
| * | feat(template): Allow `JSResourceLocator` to find ES6 scriptsFerdinand Thiessen2023-02-221-17/+28
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | fix(OC/Template): Remove usage of deprecated functions in `JSResourceLocator`Ferdinand Thiessen2023-02-221-5/+25
| | | | | | | | | | | | | | | | | | Move from `\OC_App::getAppPath` to `IAppManager::getAppPath`. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* | | Merge pull request #37305 from ↵Julius Härtl2023-03-211-0/+1
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/fix/security/log-failing-strict-cookie-check fix(security): Log failing strict cookie check
| * | | fix(security): Log failing strict cookie checkChristoph Wurst2023-03-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The error is silent otherwise and makes it very hard to debug on a production system. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | Merge pull request #34773 from ↵Côme Chilliet2023-03-211-1/+19
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/artonge/feat/dispatch_entry_removed_event_for_all_entries Dispatch event for all removed entries
| * | | | Dispatch event for all remove entryLouis Chemineau2023-01-311-1/+19
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | | | Merge pull request #37306 from nextcloud/bugfix/37277/caldav-syncArthur Schiwon2023-03-211-7/+11
|\ \ \ \ \ | |_|/ / / |/| | | | fix(session): Fix DAVx5 sync problems by partial reverting session changes
| * | | | fix(session): Fix DAVx5 sync problems by partial reverting session changesJoas Schilling2023-03-201-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Temporary disabled the short cut again to solve issues with CalDAV/CardDAV clients like DAVx5 that use cookies and need a session. See https://github.com/nextcloud/server/issues/37277#issuecomment-1476366147 and the other comments for further information. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Small cleanups for AppManagerCôme Chilliet2023-03-203-3/+6
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | Move loadApps to the AppManagerCôme Chilliet2023-03-203-32/+66
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | Move isType to AppManagerCôme Chilliet2023-03-203-28/+46
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | Avoid calling Server::get more times than necessary in loadAppCôme Chilliet2023-03-201-29/+45
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | Strong type private properties and methods in AppManagerCôme Chilliet2023-03-201-43/+17
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | Switch away from Server::get for AppManager and logger in loadAppCôme Chilliet2023-03-201-8/+8
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | Move loadApp function to the AppManagerCôme Chilliet2023-03-203-129/+158
|/ / / / | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Merge pull request #36928 from ↵Joas Schilling2023-03-166-17/+109
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/techdebt/noid/bruteforce-protection-attribute feat(middleware): Migrate BruteForceProtection annotation to PHP Attribute and allow multiple
| * | | | Add a debug message when throttling without definingJoas Schilling2023-03-082-11/+11
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | | feat(middleware): Migrate BruteForceProtection annotation to PHP Attribute ↵Joas Schilling2023-03-085-6/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and allow multiple Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | perf(autoloader): Drop legacy class autoloaderChristoph Wurst2023-03-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation says apps should use PSR-4 to get their classes loaded. The legacy PSR-0 is still in place and has a negative impact on performance. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | | Fix(l10n): 🔠 Update translations from TransifexNextcloud bot2023-03-166-6/+10
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | | Reduce listJoas Schilling2023-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Extend listJoas Schilling2023-03-151-0/+5
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Merge pull request #35561 from nextcloud/create-user-transactionJulius Härtl2023-03-151-11/+18
|\ \ \ \ \
| * | | | | Create the database user in a transactionThomas Citharel2023-03-151-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In OC\User\Manager::createUserFromBackend the newly created user is read using getUserObject($uid, $backend) but that can cause causal read issues (wrote in DB primary, not yet in secondary). In OC\User\Database user backend the user cache is unset after the insert, so it can't be used by getRealUID() (which is called by getUserObject()). To avoid that we make sure the user cache is repopulated in a transaction. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | | | | Merge pull request #37227 from nextcloud/h1-dav-brute-force-protectionArthur Schiwon2023-03-151-10/+16
|\ \ \ \ \ \ | |/ / / / / |/| | | | | chore: use local variable for remote address
| * | | | | chore: use local variable for remote addressDaniel Kesselberg2023-03-101-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | | | | Merge pull request #36033 from ↵Côme Chilliet2023-03-155-1/+56
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | nextcloud/invalidateTokensWhenDeletingOAuthClientMaster [master] invalidate existing tokens when deleting an oauth client
| * | | | | | autoloadercheckerArtur Neumann2023-03-142-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Artur Neumann <artur@jankaritech.com>
| * | | | | | added @since tagArtur Neumann2023-03-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Artur Neumann <artur@jankaritech.com>
| * | | | | | public interface to invalidate tokens of userArtur Neumann2023-03-143-1/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Artur Neumann <artur@jankaritech.com>
* | | | | | | Fix(l10n): 🔠 Update translations from TransifexNextcloud bot2023-03-152-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | | | | Merge pull request #33061 from ibpl/master-IB#1121253Côme Chilliet2023-03-141-7/+8
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Paths added to messages and message cleanup
| * \ \ \ \ \ \ Merge masterPawel Boguslawski2022-11-04264-1709/+4556
| |\ \ \ \ \ \ \
| * | | | | | | | Update Folder.phpPaweł Bogusławski2022-07-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
| * | | | | | | | Update Folder.phpPaweł Bogusławski2022-07-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
| * | | | | | | | Update lib/private/Files/Node/Folder.phpPaweł Bogusławski2022-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
| * | | | | | | | Paths added to messages and message cleanupPawel Boguslawski2022-07-291-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This mod adds path to error messages. Without it it's difficult for example to find what path causes permission problems. Related: https://help.nextcloud.com/t/ocp-files-notpermittedexception-could-not-create-folder/133818 Related: https://help.nextcloud.com/t/could-not-create-folder-false-error/65962/ Author-Change-Id: IB#1121253 Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
* | | | | | | | | Merge pull request #37192 from n0emis/empty-passwordSimon L2023-03-141-1/+1
|\ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / |/| | | | | | | | Don't try to hash a nonexisting password
| * | | | | | | | Don't try to hash a nonexisting passwordEmber 'n0emis' Keske2023-03-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows to log-in via a passwordless authentication provider, eg SSO Signed-off-by: Ember 'n0emis' Keske <git@n0emis.eu>
* | | | | | | | | Merge pull request #37029 from ↵Côme Chilliet2023-03-131-7/+9
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nextcloud/fix/chunk-objectids-in-systemtagobjectmapper Add chunking in SystemTagObjectMapper::getTagIdsForObjects
| * | | | | | | | | Add chunking in SystemTagObjectMapper::getTagIdsForObjectsCôme Chilliet2023-03-131-7/+9
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids crashing on Oracle with more than 1000 objects Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* / / / / / / / / Introduced app enable/disable/update typed eventsThomas Citharel2023-03-138-10/+196
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OCP\App\ManagerEvent is depreciated since 22 without a replacement Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | | | | | | Fix(l10n): 🔠 Update translations from TransifexNextcloud bot2023-03-102-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>