summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | | [tx-robot] updated from transifexNextcloud bot2021-12-122-0/+12
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Merge pull request #30182 from nextcloud/backport/30160/stable21Vincent Petry2021-12-101-2/+6
|\ \ \ | | | | | | | | [stable21] Check resource before closing in encryption wrapper
| * | | Check resource before closing in encryption wrapperVincent Petry2021-12-101-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case of error there is no guarantee that $source or $target is set or is a resource when handling an error. Without this fix, there's a risk that fclose will fail and the actual exception will not be thrown, making it impossible to find out about the root cause. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | [tx-robot] updated from transifexNextcloud bot2021-12-102-0/+2
|/ / / | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | [tx-robot] updated from transifexNextcloud bot2021-12-092-0/+2
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Merge pull request #30056 from nextcloud/backport/29735/stable21Louis2021-12-086-18/+35
|\ \ \ | | | | | | | | [stable21] find users for background scan one by one
| * | | code checker fixes for instanceOfStorageRobin Appelman2021-12-023-2/+7
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | background scan the source storage when a background scan on a storage jail ↵Robin Appelman2021-12-022-16/+25
| | | | | | | | | | | | | | | | | | | | | | | | is triggered Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | teach psalm about `Storage::instanceOfStorage`Robin Appelman2021-12-021-0/+3
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | [tx-robot] updated from transifexNextcloud bot2021-12-084-0/+50
| | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | [tx-robot] updated from transifexNextcloud bot2021-12-076-0/+6
| | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | Merge pull request #29834 from nextcloud/carl/bugfix/file-search-21John Molakvoæ2021-12-063-17/+34
|\ \ \ \
| * | | | Fix search results filteringCarl Schwan2021-11-263-17/+34
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | | [tx-robot] updated from transifexNextcloud bot2021-12-0616-2/+16
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | | [tx-robot] updated from transifexNextcloud bot2021-12-05120-240/+242
| |/ / / |/| | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | Fix log_query config flagJoas Schilling2021-12-021-1/+10
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | ensure that factoryClass exisits before instantiationArthur Schiwon2021-12-011-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | Include previous execption for repair steps that don't existChristoph Wurst2021-11-301-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | Let repair step query exceptions bubble upChristoph Wurst2021-11-301-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And hide the type error caused by a constructor call with missing arguments. `new $repairStep();` only works for the rare case that no arguments are required. Anything else will throw. Then we previously hid the trace of the more important query exception. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | [tx-robot] updated from transifexNextcloud bot2021-11-302-0/+28
| |_|/ |/| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | [tx-robot] updated from transifexNextcloud bot2021-11-292-0/+2
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Merge pull request #29907 from nextcloud/backport/29902/stable21MichaIng2021-11-261-1/+1
|\ \ \ | | | | | | | | [stable21] Check for invalid characters before trimming
| * | | Check for invalid characters before trimmingJoas Schilling2021-11-251-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #29803 from nextcloud/backport/29632/stable21MichaIng2021-11-251-0/+4
|\ \ \ \ | | | | | | | | | | [stable21] fix imagecreatetruecolor() error
| * | | | fix imagecreatetruecolor() errorszaimen2021-11-191-0/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* | | | | Merge pull request #28199 from nextcloud/backport/26936/stable21MichaIng2021-11-251-0/+40
|\ \ \ \ \ | |_|/ / / |/| | | | [stable21] better cleanup of filecache when deleting an external storage
| * | | | Use pre-v22 query commandsMichaIng2021-11-241-4/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: MichaIng <micha@dietpi.com>
| * | | | better cleanup of filecache when deleting an external storageRobin Appelman2021-11-241-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this way it can delete the cache entries even with per-user credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | [tx-robot] updated from transifexNextcloud bot2021-11-252-0/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | | [tx-robot] updated from transifexNextcloud bot2021-11-242-0/+18
|/ / / / | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | Type hint in IpAddress Vincent Petry2021-11-231-3/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* | | | Improve normalizer detecting IPv4 inside of IPv6Vincent Petry2021-11-231-2/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The subnet for an IPv4 address inside of IPv6 is now returned in its IPv4 form. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | Fix getting subnet of ipv4 mapped ipv6 addressesVincent Petry2021-11-231-0/+2
| | | | | | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | [tx-robot] updated from transifexNextcloud bot2021-11-232-0/+44
| | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | Do not print verbose info about app updates if there are noneChristoph Wurst2021-11-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is cosmetical but if you have a large number of apps installed then you'll see a wall of text during the server and app upgrade when it tries to update each app via the app store. In may cases nothing will be updated. For those boring cases we can hide the verbose info, but show when occ is run with -v. Any actual update will still print a few lines. Those are the important ones for the admin. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | [tx-robot] updated from transifexNextcloud bot2021-11-222-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | Merge pull request #29794 from nextcloud/backport/29605/stable21MichaIng2021-11-216-4/+82
|\ \ \ \ | | | | | | | | | | [stable21] Normalize file name before existence check in scanner
| * | | | Normalize directory entries in Encoding wrapperVincent Petry2021-11-195-4/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Directory entry file names are now normalized in getMetaData(), getDirectoryContents() and opendir(). This makes the scanner work properly as it assumes pre-normalized names. In case the names were not normalized, the scanner will now skip the entries and display a warning when applicable. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * | | | Move storage encoding compatibility warning logicVincent Petry2021-11-192-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | Normalize file name before existence check in scannerVincent Petry2021-11-191-0/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The scanner would not find a NFD-encoded file name in an existing file list that is normalized. This normalizes the file name before scanning. Fixes issues where scanning repeatedly would make NFD files flicker in and out of existence in the file cache. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* / / / [tx-robot] updated from transifexNextcloud bot2021-11-204-0/+72
|/ / / | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* / / [tx-robot] updated from transifexNextcloud bot2021-11-194-16/+22
|/ / | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | OC_Util::isNonUTF8Locale: fix lint errorNaoto Kobayashi2021-11-171-5/+5
| | | | | | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* | OC_Util::isSetLocaleWorking: fix typoNaoto Kobayashi2021-11-171-1/+1
| | | | | | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* | OC_Util: Add fallbacks to check if current locale is UTF8Naoto Kobayashi2021-11-171-2/+17
| | | | | | | | | | | | | | | | | | Using escapeshellcmd to get current locale causes error if the function is disabled. Add fallbacks to prevent the error. Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* | Check whether setlocale works only after setlocaleNaoto Kobayashi2021-11-171-4/+5
| | | | | | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* | Fix missing setlocale with php 8Naoto Kobayashi2021-11-171-2/+2
| | | | | | | | | | | | | | | | | | When php version = 8, basename('§') does not bug even if LC_ALL is non-UTF-8 locale. This cause OC_Util::isSetLocaleWorking() to skip setlocale("C.UTF-8"). Fix it by using escapeshellcmd instead of basename. Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* | [tx-robot] updated from transifexNextcloud bot2021-11-172-0/+22
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Apply changes from master's update to 3.1.3Joas Schilling2021-11-153-5/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Allow NULL as well for limit, not integer onlyJoas Schilling2021-11-154-11/+20
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>