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
Vincent Petry
839ddaa354
feat: rename users to account or person
...
Replace translated text in most locations
Signed-off-by: Vincent Petry <vincent@nextcloud.com >
2024-02-13 21:06:30 +01:00
Côme Chilliet
ccc66e912b
fix: Use DI for Setup class and move away from deprecated methods
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com >
2024-01-29 15:28:00 +01:00
Arthur Schiwon
603a659a37
fix(autoloader): no apcu no side effects
...
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 >
2023-09-08 16:55:39 +02:00
Andrew Summers
1395a53602
Refactor OC\Server::getSecureRandom
...
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com >
2023-08-29 21:32:40 -05:00
Andrew Summers
f80282a5ed
Refactor OC\Server::getL10NFactory
...
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com >
2023-08-29 21:30:42 -05:00
Andrew Summers
4536029589
Refactor OC\Server::getHTTPClientService
...
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com >
2023-08-29 21:30:01 -05:00
Git'Fellow
7306960f2c
Fix lint
...
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com >
2023-08-13 00:21:54 +02:00