Commit Graph

112 Commits (d92bf388b1c553ecd6bfb2a7400b990dcafe9c54)

Author SHA1 Message Date
Robin Appelman b21a399d1a
fix: implement sharding compatible cleanup for various bits
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-08-28 10:27:14 +07: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 +07:00
Andy Scherzinger 5b7dcc1427
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-29 08:58:16 +07:00
Robin Appelman 1d34f0a824 feat: cleanup filecache_extended items by default
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-04-15 20:30:57 +07:00
Daniel Kesselberg 2f6cc92491 feat: remove orphaned entries from filecache_extended
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-04-15 20:30:57 +07:00
Robin Appelman 572faa1224 use correct mode constant of files:scan's --path option
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-02-24 11:39:05 +07:00
Joas Schilling aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-23 10:36:13 +07:00
Maxence Lange 22d6c8dcd4 add named metadata event
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-20 13:32:54 +07:00
Louis Chemineau d3a313f192
Support getting and setting metadata in DAV requests
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-08 16:23:53 +07:00
Maxence Lange e62e9e3dbf IFilesMetadata
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-07 00:21:38 +07:00
Faraz Samapoor b353b3f425 Merge branch 'master' into refactor_files_app_commands
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
2023-08-01 12:39:10 +07:00
Robin Appelman c912a3f0f6
Merge pull request #38860 from nextcloud/scanner-change-summary
add summary of detected changes to files:scan output
2023-07-20 18:37:07 +07:00
Faraz Samapoor 270035ff44 Fixes Psalm's "InvalidArgument" error.
I just removed the return type from the "exceptionErrorHandler". There is in fact a hacky solution, that I didn't like:
https://github.com/vimeo/psalm/issues/3571

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
2023-07-12 18:29:32 +07:00
Faraz Samapoor b8870658fb Fixes Psalm's "LessSpecificReturnStatement" error.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
2023-07-12 18:29:32 +07:00
Faraz Samapoor 5d242aa2f8 Refactors files app commands.
To improve code readability.

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
2023-07-12 18:29:32 +07:00
Robin Appelman 38640bf816 add commands to copy/move files
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-07-12 15:01:29 +07:00
Robin Appelman 292c0e53f8
add summary of detected changes to files:scan output
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-06-16 17:56:34 +07:00
Robin Appelman ea88ec1350
add utility command for object store objects
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-06-09 18:08:18 +07:00
Robin Appelman 4822f104f7
Merge pull request #37971 from nextcloud/info-file-get
Add commands for basic file actions
2023-05-10 13:40:06 +07:00
Robin Appelman ddc53a9046
minor fixes for get/put
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-09 17:38:43 +07:00
Robin Appelman 36221a8865
add command to write a file
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-04 18:21:58 +07:00
Robin Appelman f9fb102f0b
move get/delete commands to files namespace, make get take the output as argument instead of option
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-04 18:21:58 +07:00
Côme Chilliet 88405d320e
Add an error counter
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-05-04 17:06:46 +07:00
Côme Chilliet 2ffa9fc797
Only show error stack trace on very verbose level
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-05-02 10:01:38 +07:00
Côme Chilliet 1f83979699
Do not stop at the first PHP error/warning in files:scan
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-04-27 10:46:37 +07:00
Robin Appelman 54f61352f0
better error messages if the users home is not writable during scanning
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-04-05 13:21:30 +07:00
EWouters 3a9173cbac
[Fix]: scan-app-data conversion
Adapted from sugestions by @Hiyoal in #34283 and @st3iny in #35935.

See https://github.com/nextcloud/server/issues/34283#issuecomment-1288075064
and https://github.com/nextcloud/server/pull/35935#discussion_r1059905594.

Closes #34283.

Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud>
Signed-off-by: EWouters <6179932+EWouters@users.noreply.github.com>
2023-01-03 13:52:34 +07:00
Markus Zeller 15289f9737
Cast to int #32837
Signed-off-by: Markus Zeller <git@markuszeller.com>
2022-11-07 16:44:47 +07:00
Carl Schwan 54b6d0708b Allow scanning for metadata with occ scan:file --generate-metadata
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-10-11 10:41:17 +07:00
luz paz 9d26671f05 Fix typos in apps/ subdirectory
Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/`

Signed-off-by: luz paz <luzpaz@github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-09-05 12:59:54 +07:00
Simon L de82d4f67c
Merge pull request #32874 from bill-mcgonigle/patch-1
Mention missing files subdir
2022-06-17 12:12:25 +07:00
Côme Chilliet c54fb5f9e6
Use {$var} instead of ${var} for PHP 8.2 compatibility
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-06-14 15:12:28 +07:00
Bill McGonigle ad60b3b479
Mention missing files subdir
Many users are getting confused by the inaccurate error message "Home storage for user $user not writable" because the storage *is* writable.  The actual issue is a missing files/ subdirectory.  cf. https://help.nextcloud.com/t/home-storage-for-user-not-writable/10831/7
By mentioning the possible cause in the error message, users are going to be able to rapidly solve their problem rather than bang their heads against the screen, Google, and eventually forums to find out that the error message is wrong in their case.
Yes, it would be better to detect and precisely describe the fault, or fix the problem automatically, but until then, be kind to the users for the next however many years.
2022-06-14 07:10:29 +07:00
cld4h 553239c083 Fix issue #31692 of occ files:scan
occ files:scan reports error "Implicit conversion from float XXX to int loses precision"

Signed-off-by: cld4h <20869428+cld4h@users.noreply.github.com>
2022-04-26 14:22:41 +07:00
Côme Chilliet ea23523c70
Adapt more code to migration to LoggerInterface
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-03-24 16:21:25 +07:00
Vincent Petry 67ebe75d0e
Move storage encoding compatibility warning logic
The encoding check for file names is now happening the Scanner, and an
event will be emitted only if the storage doesn't contain the encoding
compatibility wrapper.

The event is listened to by the occ scan command to be able to display a
warning in case of file name mismatches when they have NFD encoding.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-17 09:24:13 +07:00
Immanuel Pasanec 1f42657bb9
Added support for transfering incoming file shares.
- new option --transfer-incoming-shares=1 | 0
- new config.php option 'transfer-incoming-shares' => true | false

The command line option overrules the config.php option.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-08-27 17:55:58 +07:00
John Molakvoæ (skjnldsv) 215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-04 22:02:41 +07:00
dependabot-preview[bot] eb502c02ff
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0.
- [Release notes](https://github.com/nextcloud/coding-standard/releases)
- [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-18 13:31:24 +07:00
Robin Appelman 1ecc02946f
cast ints
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-27 18:08:10 +07:00
Robin Appelman 68589f7792
handle the cache where a cache entry with the correct path has already been recreated
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-27 16:11:23 +07:00
Robin Appelman 8bd39f081f
also repair storage id
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-27 16:11:20 +07:00
Robin Appelman 291b72ec50
add command to repair broken filesystem trees
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-27 16:11:16 +07:00
Christoph Wurst 3678823748
Fix database connection usage in the files scanner
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-01-11 16:45:14 +07:00
Christoph Wurst 9ce3ea3368
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-30 14:07:05 +07:00
Roeland Jago Douma adc4f1a811
Merge pull request #22916 from J0WI/unifiy-links-to-php.net
Unify links to php.net
2020-12-22 09:53:31 +07:00
Christoph Wurst d89a75be0b
Update all license headers for Nextcloud 21
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-16 18:48:22 +07:00
Sujith Haridasan 08bdc549bb Stop transfer of ownership between same users
Stop the transfer of ownership between same user.

Signed-off-by: Sujith Haridasan <sujith.h@gmail.com>
2020-10-12 09:31:49 +07:00
Christoph Wurst d9015a8c94
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-10-05 20:25:24 +07:00
J0WI 68ce17e59b Unify links to php.net
Update all links to https://www.php.net/

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2020-09-17 17:40:04 +07:00