aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Util.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(util): Correctly create Reflection of method for PHP 8.3+Joas Schilling2024-11-081-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(legacy): Introduce public version ct plass and drop version methods ↵clean/version-ocpJulius Knorr2024-09-201-84/+0
| | | | | | from OC_Util Signed-off-by: Julius Knorr <jus@bitgrid.net>
* chore: Add proper deprecation dates where missingFerdinand Thiessen2024-09-201-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Remove old travis related stuffFerdinand Thiessen2024-09-191-2/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(OC_Util): Remove deprecated ILoggerFerdinand Thiessen2024-09-191-2/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-10/+10
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(SetupCheck): Properly check public access to data directoryFerdinand Thiessen2024-08-081-4/+4
| | | | | | | | | | | | | When checking for public (web) access to the data directory the status is not enough as you might have a webserver that forwards to e.g. a login page. So instead check that the content of the file matches. For this the `.ncdata` file (renamed from `.ocdata`¹) has minimal text content to allow checking. ¹The file was renamed from the legacy `.ocdata`, there is a repair step to remove the old one. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor: Remove deprecated `Util` function for filename validation to ↵Ferdinand Thiessen2024-07-161-29/+0
| | | | | | `FilenameValidator` Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge branch 'master' into refactor/OC-Server-getSecureRandomJohn Molakvoæ2024-05-301-4/+6
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * Merge branch 'master' into refactor/OC-Server-getL10NFactoryJohn Molakvoæ2024-05-301-2/+3
| |\ | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| | * Merge branch 'master' into refactor/OC-Server-getHTTPClientServiceJohn Molakvoæ2024-05-301-81/+16
| | |\ | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| | * | Refactor `OC\Server::getHTTPClientService`Andrew Summers2023-08-291-2/+3
| | | | | | | | | | | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
| * | | Merge branch 'master' into refactor/OC-Server-getL10NFactoryJohn Molakvoæ2024-05-301-81/+16
| |\ \ \ | | | |/ | | |/| Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | | Refactor `OC\Server::getL10NFactory`Andrew Summers2023-08-291-2/+3
| | |/ | |/| | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | | Merge branch 'master' into refactor/OC-Server-getSecureRandomJohn Molakvoæ2024-05-301-81/+16
|\ \ \ | | |/ | |/| Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | chore: Add SPDX headerAndy Scherzinger2024-05-241-63/+4
| | | | | | | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
| * | fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-3/+3
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | Refactor `OC\Server::getTwoFactorAuthManager`Andrew Summers2024-03-151-1/+2
| | | | | | | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
| * | fix: Enforce forbidden filename characters on backendFerdinand Thiessen2024-02-281-2/+2
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * | feat: rename users to account or personVincent Petry2024-02-131-2/+2
| | | | | | | | | | | | | | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * | fix: Use DI for Setup class and move away from deprecated methodsCôme Chilliet2024-01-291-9/+1
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix(autoloader): no apcu no side effectsArthur Schiwon2023-09-081-1/+2
| |/ | | | | | | | | | | | | | | | | | | | | apcu lead to side effects especially with app management and (soft) inter-dependencies, and lead also to 500 server errors. While we could add management to clear apcu cache in many cases (may stil leave edge cases) the performance benefit is marginally as also class maps are already cached in opcache. Hence, the simple and effective way to go is to not use apcu for autoloading. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* / Refactor `OC\Server::getSecureRandom`Andrew Summers2023-08-291-2/+3
|/ | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* Fix lintGit'Fellow2023-08-131-1/+0
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Remove check for very old PGsql Git'Fellow2023-08-131-39/+0
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-2/+2
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* Remove version check for ancient libxml versionjld31032023-05-051-14/+0
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Read mtime of version.php only onceArthur Schiwon2023-04-211-3/+1
| | | | | | | - in most cases it would read again in \OC_Util::loadVersion anyway - remove some unused use statements Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-051-6/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix 32bits bigint support in Util/OC_HelperCôme Chilliet2023-02-071-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* composer run cs:fixCôme Chilliet2023-01-201-6/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use proper storage method for writing skeleton filesJulius Härtl2022-10-271-1/+1
| | | | | | otherwise the filecache will have a wrong size for skeleton files Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Cleanup tags and Share componentCarl Schwan2022-09-291-2/+7
| | | | | | | | | - Port to LoggerInterface - Use IDBConnection and IQueryBuilder instead of raw SQL and OC_DB - Use IEventListener instead of hooks - Remove the now unused OC_DB and OC_DB_StatementWrapper legacy utils Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix quota type to intCarl Schwan2022-09-121-1/+1
| | | | | | | | | Change the quota to int from float, since the quota is a number of bits and a bits can not be splitted. Fix #34010 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix psalm errors fron the end of the baseline fileCarl Schwan2022-05-161-18/+3
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* l10n: Correct a typoValdnet2022-04-281-1/+1
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* l10n: Fix codeValdnet2022-04-271-1/+1
| | | | | Issue: #32171. Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Merge pull request #31492 from nextcloud/fix/check-secret-configuredJohn Molakvoæ2022-04-261-0/+9
|\
| * Only check if secret is set if the nextcloud is installedCarl Schwan2022-03-091-1/+1
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * Also check for instanceid and passwordhashCarl Schwan2022-03-091-5/+7
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * Require the secret config to be configuredCarl Schwan2022-03-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | If it's not configured the instance will look like it is working but various features will silently break (end to end encryption, setting alternate email and probably more). One issue is that changing the secret from empty to something will break various other stuff (app token). I don't think there is a good way to solve this issue other than breaking early instead of having to handle a painful migration later on. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Allow to disable password policy enforcement for selected groupsCarl Schwan2022-04-051-3/+4
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* | move teardown logic to SetupManagerRobin Appelman2022-03-041-4/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | start moving filesystem setup logic to it's own placeRobin Appelman2022-03-041-137/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | move root mount setup to mountprovidersRobin Appelman2022-02-241-104/+0
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* handle setupFS with null userRobin Appelman2022-02-091-4/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont mark fs as setup when no user is activeRobin Appelman2022-02-091-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* pass user object during fs initRobin Appelman2022-02-091-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only setup part of the filesystem for appdata requestsRobin Appelman2022-02-091-27/+44
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>