aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
Commit message (Collapse)AuthorAgeFilesLines
* feat(IUser): add `getQuotaBytes` method to get machine readable quotafeat/user-get-quota-bytesFerdinand Thiessen2025-05-222-2/+2
| | | | | | | | | | | Proper replacement for deprecated `OC_Util::getUserQuota`. Also we still use this in some cases we can now replace, moreover it just makes sense to have a machine readable format in the API instead of only the human readable format which is less precise. Alings also with `getQuota` of the quota storage, which already returned the machine readable format. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: deprecate `OC_Helper::isReadOnlyConfigEnabled`chore/depreate-oc-helper-roFerdinand Thiessen2025-05-172-2/+4
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #52890 from nextcloud/chore/move-stream-copy-implementationFerdinand Thiessen2025-05-171-23/+2
|\ | | | | chore: move streamCopy implementation from `OC_Helper` to `OCP\Files`
| * chore: move streamCopy implementation from `OC_Helper` to `OCP\Files`Ferdinand Thiessen2025-05-161-23/+2
| | | | | | | | | | | | | | | | | | The function was already there but called the legacy version. So moved the implementation and migrated all usages of it. Sadly the interface was slightly different so adjusted it to be compatible with both legacy and the OCP one. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | chore!: remove legacy functions from `OC_Helper` deprecated before v10Ferdinand Thiessen2025-05-161-101/+4
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | chore: deprecate OC_Helper::copyrchore/deprecate-ochelper-copyrFerdinand Thiessen2025-05-161-1/+2
|/ | | | | | Inline it into Installer as needed. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: move implementation to non-deprecated OCP\Util from OC_Helperchore/move-impl-utilFerdinand Thiessen2025-05-161-48/+14
| | | | | | | | Only moves the implementation where it was already existing and adds more helpful deprecation messages. This way we can in the future just remove the OC_Helper variants. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore!(\OCP\Files): remove deprecated static `getStorage` methodchore/remove-get-storageFerdinand Thiessen2025-05-151-22/+0
| | | | | | | Was deprecated since Nextcloud 14 and is not used anymore. Removing allows us to clean the OCP psalm baseline. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #52812 from nextcloud/chore/oc-helper-rmdirrJohn Molakvoæ2025-05-141-29/+2
|\
| * chore: move implementation from OC legacy to OCP\Fileschore/oc-helper-rmdirrFerdinand Thiessen2025-05-141-29/+2
| | | | | | | | | | | | | | | | | | - move implementation to the OCP variant that called the legacy before - add the missing deprecation notice - add missing parameter to align both signatures - use OCP\Files where this method is still used Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Merge pull request #52801 from nextcloud/chore/oc-helper-filesizeFerdinand Thiessen2025-05-142-54/+5
|\ \ | | | | | | chore: replace legacy OC_Helper calls with OCP\Util
| * | chore: replace leagcy OC_Helper calls with OCP\Utilchore/oc-helper-filesizeFerdinand Thiessen2025-05-142-54/+5
| |/ | | | | | | | | | | | | | | - Replace legacy calls with OCP\Util - Add missing deprecation notices - Inline implementation in OCP\Util and call it from OC_Helper Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* / chore: deprecate \OC_Helper::canExecutechore/oc-helper-can-execFerdinand Thiessen2025-05-141-0/+1
|/ | | | | | replace this legacy method with just the IBinaryFinder Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Deprecate OC_User methods related to user backendsCôme Chilliet2025-04-101-18/+12
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: add more details in documented alternativesfeat/cleanup-oc-util-methodsCôme Chilliet2025-04-081-4/+4
| | | | Co-authored-by: Louis <louis@chmn.me> Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* chore(legacy): Flag methods as deprecated, with appropriate replacementCôme Chilliet2025-04-071-34/+36
| | | | | | when possible. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(legacy): Remove unused protected method in OC_UtilCôme Chilliet2025-04-071-4/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(legacy): Officially deprecate OC_Util and remove non-static methodsCôme Chilliet2025-04-071-84/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(legacy): Remove deprecated OC_Util::addScript and functions depending ↵feat/cleanup-oc-utilCôme Chilliet2025-04-011-63/+0
| | | | | | | | | | on it Deprecated since 24, currently unused. Sadly not all related functions were officially marked as deprecated, but all of them were unused. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Move getAppInstalledVersions to AppConfig so that it can be used earlierfix/add-getappversions-replacementCôme Chilliet2025-03-251-10/+3
| | | | | | Call it from OC_App to make sure there is only one request to DB. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat: Add a replacement for OC_App::getAppVersions is IAppManagerCôme Chilliet2025-03-251-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Move template functions out of legacy folderCôme Chilliet2025-03-201-320/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove multiple require_once calls for template functionsCôme Chilliet2025-03-201-2/+0
| | | | | | Only require them when include the template file instead Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: skip caching lastSeenQuotaUsage for remote sharesbug/noid/skip-quote-cache-for-remote-sharesDaniel Kesselberg2025-03-141-2/+9
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: Replace all usage of OC_Template by the new APICôme Chilliet2025-03-061-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Add missing ITemplate interface and clean code in Template classCôme Chilliet2025-03-061-2/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Deprecate OC_Template, add proper template manager insteadCôme Chilliet2025-03-061-297/+13
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: incorrect types detected by updated stubschore/update-stubFerdinand Thiessen2025-02-271-3/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Fix false-positive psalm taint errors when outputting plain textCôme Chilliet2025-02-171-2/+10
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Correctly flag json encoding methods as escaping html and quotesCôme Chilliet2025-02-171-2/+3
| | | | | | | Especially with JSON_HEX_TAG it’s perfectly fine to echo JSON, and we only use it in JSON output anyway. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Replace getInstalledApps calls with getEnabledAppsfix/clarify-app-manager-methodsCôme Chilliet2025-02-131-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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>
* fix(OpenAPI): Adjust array syntax to avoid ambiguitiesfix/openapi/array-syntaxprovokateurin2024-11-051-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(appmanager): Fix tainted file path when loading appinfosbugfix/noid/fix-tainted-file-appinfoJoas Schilling2024-10-141-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(Auth): ignore missing token when trying to set password-unconfirmablefwdport/48445/masterArthur Schiwon2024-10-011-6/+14
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* chore: Drop unused legacy `OC_Files`Ferdinand Thiessen2024-09-281-428/+0
| | | | | | It is replaced with the Sabre `ZipFolderPlugin` and apps should use the `OCP\AppFramework\Http\StreamResponse`. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(legacy): Introduce public version ct plass and drop version methods ↵clean/version-ocpJulius Knorr2024-09-202-86/+7
| | | | | | from OC_Util Signed-off-by: Julius Knorr <jus@bitgrid.net>
* chore: Add proper deprecation dates where missingFerdinand Thiessen2024-09-204-13/+13
| | | | 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-199-27/+27
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(OC_Template): Remove deprecated ILoggerFerdinand Thiessen2024-09-191-8/+9
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(OC_Files): Remove deprecated ILoggerFerdinand Thiessen2024-09-191-7/+9
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(OC_Util): Remove deprecated ILoggerFerdinand Thiessen2024-09-191-2/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(OC_Hook): Remove deprecated ILoggerFerdinand Thiessen2024-09-191-1/+4
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(OC_App): Remove ILogger usageFerdinand Thiessen2024-09-191-13/+15
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Remove legacy settings formschore/remove-legacy-settings-forsFerdinand Thiessen2024-09-171-28/+4
| | | | | | | | `OC_App::getForms` was always returning an empty array, because there were no setter for `adminForms` or `personalForms` anymore. So removed all that legacy settings forms logic. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(Files): Handle getOwner() returning falsefix/storage/get-owner-falseprovokateurin2024-09-171-2/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Replace DI alias with real classchore/remove-deprecated-aliasesFerdinand Thiessen2024-09-171-3/+4
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Do not try to set HTTP response code on already closed connectionCôme Chilliet2024-09-141-1/+2
| | | | | | | | | This avoids a PHP warning in the logs about trying to set the response code while the output already started. It’s useless to try to print an error page anyway in this situation because the connection was closed already. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Replace OC_App::getAllApps with a method in AppManagerCôme Chilliet2024-09-131-24/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>