Louis
da706223e4
Merge pull request #61140 from nextcloud/fix/fix-deprecations-in-tests
...
Fix deprecations in tests
2026-06-11 14:48:10 +02:00
Côme Chilliet
a8f21da1f7
fix: Fix data directory permission check and its test
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2026-06-11 09:45:32 +02:00
Carl Schwan
a459b9cc1f
refactor(server): Register alias when needed
...
And remove useless service registration
Signed-off-by: Carl Schwan <carlschwan@kde.org >
2026-06-10 23:22:24 +02:00
Josh
965b6a96e4
refactor(legacy): simplify getTheme and clarify legacy theme docs
...
Signed-off-by: Josh <josh.t.richards@gmail.com >
2026-05-16 10:04:37 -04:00
Carl Schwan
279bface8e
refactor: Delete deprecated code from OC_Util
...
Signed-off-by: Carl Schwan <carlschwan@kde.org >
2026-05-12 18:24:12 +02:00
Carl Schwan
bb4c55c125
refactor: Move copy skeleton step to a file listener
...
Instead of having all user providers call OC_Util::copySkeleton
Signed-off-by: Carl Schwan <carlschwan@kde.org >
2026-04-27 15:37:02 +02:00
nextcloud-command
663018455e
refactor: Apply rector changes
...
Signed-off-by: GitHub <noreply@github.com >
2026-03-01 14:43:11 +00:00
Carl Schwan
7b6078875b
refactor: Run rector on lib/private
...
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com >
2026-02-06 13:50:18 +01:00
Côme Chilliet
ebab99ec9a
Merge pull request #56779 from nextcloud/jtr/needUpgrade-refactor
...
feat: improve needUpgrade() output and refactor for clarity
2026-01-06 14:04:13 +01:00
Ferdinand Thiessen
105398699d
Merge pull request #56780 from nextcloud/jtr/chore-drop-getUserQuota-legacy
...
chore(legacy): Remove deprecated getUserQuota method
2025-12-23 18:09:32 +01:00
Josh
d95ce6ac92
chore: drop no longer needed runningOnMac method
...
Removed deprecated method 'runningOnMac' that checks if PHP is running on macOS.
Signed-off-by: Josh <josh.t.richards@gmail.com >
2025-12-04 16:46:55 -05:00
Carl Schwan
f38c8c3d7c
fix(formatting): Fix formatting issue
...
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com >
2025-12-03 11:10:18 +01:00
Josh
cc873ccaec
chore(legacy): deprecate OC_Util::runningOnMac()
...
- Easy enough query directly these days; Only used in one spot anyhow
- Updated the runningOnMac method to use PHP_OS_FAMILY just for clarity until we can remove the function entirely (same result; supported since PHP ~7.4).
Signed-off-by: Josh <josh.t.richards@gmail.com >
2025-12-02 21:52:58 -05:00
Josh
33fba8c084
chore(legacy): Remove deprecated getUserQuota method
...
Formally deprecated with 9.0.0 and we dropped final uses of it in #53045 .
Signed-off-by: Josh <josh.t.richards@gmail.com >
2025-12-01 12:49:27 -05:00
Josh
3de06a2b33
chore: lint happiness
...
Signed-off-by: Josh <josh.t.richards@gmail.com >
2025-12-01 12:26:03 -05:00
Josh
d3432482cc
feat: improve needUpgrade() output and refactor for clarity
...
- Reorganized logic to improve clarity + eliminate duplication
- Switched app handling to non-deprecated IAppManager API
- Make the HintException clearer and more actionable
- Log disallowed downgrade attempts before throwing
Signed-off-by: Josh <josh.t.richards@gmail.com >
2025-12-01 12:10:52 -05:00
Ferdinand Thiessen
660f3f6fd1
refactor: use logical && || instead of weak and or operators
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de >
2025-09-27 23:02:18 +02:00
Josh
130cb05ea4
chore: remove mbstring.func_overload check from checkserver()
...
Signed-off-by: Josh <josh.t.richards@gmail.com >
2025-08-25 13:19:36 +02:00
Côme Chilliet
edf096a09f
chore: Check if apps directory is really writable in Installer
...
...rather than checkServer.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2025-07-10 11:31:59 +02:00
Côme Chilliet
12c0cfc977
fix: Move getInstallPath to Installer class
...
This method does not need a public API for now, it’s only used
internally.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2025-07-10 09:39:58 +02:00
Ferdinand Thiessen
5981b7eb51
chore: apply new CSFixer rules
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de >
# Conflicts:
# apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
2025-07-01 16:26:50 +02:00
Robin Appelman
1d2b991bda
fix: don't create an empty file before writing the contents in OC_Util::copyr
...
Signed-off-by: Robin Appelman <robin@icewind.nl >
2025-06-24 16:27:27 +02:00
Ferdinand Thiessen
e143921896
feat(IUser): add getQuotaBytes method to get machine readable quota
...
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 >
2025-05-22 12:50:38 +02:00
Ferdinand Thiessen
22889d4f1d
chore: deprecate OC_Helper::isReadOnlyConfigEnabled
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de >
2025-05-17 13:18:49 +02:00
Ferdinand Thiessen
1ae3fa4003
chore: replace leagcy OC_Helper calls with OCP\Util
...
- 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 >
2025-05-14 10:18:04 +02:00
Côme Chilliet
6efd9b7511
fix: add more details in documented alternatives
...
Co-authored-by: Louis <louis@chmn.me >
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com >
2025-04-08 17:56:14 +02:00
Côme Chilliet
b20f74a95b
chore(legacy): Flag methods as deprecated, with appropriate replacement
...
when possible.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2025-04-07 17:05:54 +02:00
Côme Chilliet
09dcc87f05
chore(legacy): Remove unused protected method in OC_Util
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2025-04-07 17:05:54 +02:00
Côme Chilliet
fd59e02a24
chore(legacy): Officially deprecate OC_Util and remove non-static methods
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2025-04-07 17:05:54 +02:00
Côme Chilliet
e467ea1c6a
chore(legacy): Remove deprecated OC_Util::addScript and functions depending 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 >
2025-04-01 15:24:24 +02:00
Côme Chilliet
f19ddd5525
fix: Add missing ITemplate interface and clean code in Template class
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2025-03-06 15:49:25 +01:00
Ferdinand Thiessen
c82337f3b9
fix: incorrect types detected by updated stubs
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de >
2025-02-27 19:07:39 +01:00
Joas Schilling
34592df186
fix(util): Correctly create Reflection of method for PHP 8.3+
...
Signed-off-by: Joas Schilling <coding@schilljs.com >
2024-11-08 12:59:15 +01:00
Julius Knorr
606241caeb
chore(legacy): Introduce public version ct plass and drop version methods from OC_Util
...
Signed-off-by: Julius Knorr <jus@bitgrid.net >
2024-09-20 14:53:34 +02:00
Ferdinand Thiessen
a8f46af20f
chore: Add proper deprecation dates where missing
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de >
2024-09-20 00:46:03 +02:00
Ferdinand Thiessen
7ae7f7fd12
chore: Remove old travis related stuff
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de >
2024-09-19 20:16:29 +02:00
provokateurin
9836e9b164
chore(deps): Update nextcloud/coding-standard to v1.3.1
...
Signed-off-by: provokateurin <kate@provokateurin.de >
2024-09-19 14:21:20 +02:00
Ferdinand Thiessen
8b79283c6b
refactor(OC_Util): Remove deprecated ILogger
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de >
2024-09-19 00:35:21 +02:00
Daniel Kesselberg
af6de04e9e
style: update codestyle for coding-standard 1.2.3
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de >
2024-08-25 19:34:58 +02:00
Ferdinand Thiessen
0563757ea4
fix(SetupCheck): Properly check public access to data directory
...
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 >
2024-08-08 22:08:42 +02:00
Ferdinand Thiessen
f4ede27cdb
refactor: Remove deprecated Util function for filename validation to FilenameValidator
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de >
2024-07-16 12:49:10 +02:00
John Molakvoæ
7f745a1ed0
Merge branch 'master' into refactor/OC-Server-getSecureRandom
...
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com >
2024-05-30 19:13:53 +02:00
John Molakvoæ
4d9199fb88
Merge branch 'master' into refactor/OC-Server-getL10NFactory
...
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com >
2024-05-30 17:52:14 +02:00
John Molakvoæ
258bb03cf5
Merge branch 'master' into refactor/OC-Server-getSecureRandom
...
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com >
2024-05-30 14:24:22 +02:00
John Molakvoæ
91227c908b
Merge branch 'master' into refactor/OC-Server-getHTTPClientService
...
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com >
2024-05-30 14:21:45 +02:00
John Molakvoæ
99af78cd66
Merge branch 'master' into refactor/OC-Server-getL10NFactory
...
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com >
2024-05-30 14:19:51 +02:00
Andy Scherzinger
dae7c159f7
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de >
2024-05-24 13:11:22 +02:00
Côme Chilliet
ec5133b739
fix: Apply new coding standard to all files
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2024-04-02 14:16:21 +02:00
Andrew Summers
0047789580
Refactor OC\Server::getTwoFactorAuthManager
...
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com >
2024-03-15 13:12:51 +01:00
Ferdinand Thiessen
27642d3e6d
fix: Enforce forbidden filename characters on backend
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de >
2024-02-28 22:19:25 +01:00