summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #29758 from nextcloud/disk_free_space-fix-php8Vincent Petry2021-11-191-1/+1
|\ | | | | Check for `disk_free_space`
| * Check for `disk_free_space`acsfer2021-11-181-1/+1
| | | | | | | | Check for `disk_free_space` before calling it. Fix https://github.com/nextcloud/server/issues/29748
* | Merge pull request #29605 from nextcloud/bugfix/29603/fix-scanner-nfd-existenzVincent Petry2021-11-196-4/+82
|\ \ | | | | | | Normalize file name before existence check in scanner
| * | Normalize directory entries in Encoding wrapperVincent Petry2021-11-175-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-172-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-171-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-194-16/+22
| |/ |/| | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Merge pull request #29747 from ↵Joas Schilling2021-11-171-1/+1
|\ \ | |/ |/| | | | | nextcloud/allow-to-serve-static-webassembly-and-tensorflow-lite-files Allow to serve static WebAssembly and TensorFlow Lite files
| * Allow to serve static WebAssembly and TensorFlow Lite filesDaniel Calviño Sánchez2021-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Talk 13 (and thus Nextcloud 23) WebAssembly (.wasm) and TensorFlow Lite (.tflite) files need to be loaded from the web server to provide certain features (like the background blur in the WebUI). Those files can be treated in a similar way to other static resources, and there should not be any problem caching or compressing them. However, as compressed TensorFlow Lite files are only ~12% smaller, the compression directive depends on the MIME type and there is no standard MIME type for TensorFlow Lite files it is not worth to compress them. Moreover, no directives to compress WebAssembly files were added either, as it seems that they would override any other compression directives set in the default server configuration; for reference it could be done with something like: <IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE application/wasm </IfModule> </IfModule> Depending on the setup "application/wasm" may not be associated with ".wasm" files, so the directive was added just in case, as otherwise browsers log a warning. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | [tx-robot] updated from transifexNextcloud bot2021-11-172-0/+22
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Merge pull request #29695 from YoitoFes/fix_missing_setlocaleVincent Petry2021-11-161-6/+22
|\ \ | | | | | | Fix missing setlocale with php 8
| * | OC_Util::isNonUTF8Locale: fix lint errorNaoto Kobayashi2021-11-161-5/+5
| | | | | | | | | | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
| * | OC_Util::isSetLocaleWorking: fix typoNaoto Kobayashi2021-11-161-1/+1
| | | | | | | | | | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
| * | OC_Util: Add fallbacks to check if current locale is UTF8Naoto Kobayashi2021-11-161-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-141-4/+5
| | | | | | | | | | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
| * | Fix missing setlocale with php 8Naoto Kobayashi2021-11-141-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>
* | | Merge pull request #29683 from nextcloud/bugfix/29676/fix-theming-dependenciesCarl Schwan2021-11-161-5/+4
|\ \ \ | | | | | | | | Fix core depending on theming app
| * | | Correct comment about OC_Defaults being usedMichaIng2021-11-151-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: MichaIng <micha@dietpi.com>
| * | | Fix core depending on theming appCarl Schwan2021-11-121-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was introduced in https://github.com/nextcloud/server/commit/309354852f12ae88d5eef05d311d6ebcba8ee762 to fix a bug but I can't reproduce the bug after reverting this change. Ideally we would need to create an interface in OCP and cleanup OC_Defaults instead of depending on OC_Defaults. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | Merge pull request #29714 from nextcloud/bump-doctrine-dbalJohn Molakvoæ2021-11-154-11/+20
|\ \ \ \
| * | | | Allow NULL as well for limit, not integer onlyJoas Schilling2021-11-154-11/+20
| | |_|/ | |/| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #29661 from ↵Christoph Wurst2021-11-151-0/+57
|\ \ \ \ | |/ / / |/| | | | | | | | | | | nextcloud/enhancement/calendar-search-properties-api Document and type allowed property names for calendar property searches
| * | | Document and type allowed values for calendar property searchesChristoph Wurst2021-11-111-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For API users it looked like any properties could be searched. But it turned out to be a hand picked list of properties that we index and then use for the search. To prevent application errors where special props are not found, I suggest we document and type the allowed values. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | [tx-robot] updated from transifexNextcloud bot2021-11-152-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | [tx-robot] updated from transifexNextcloud bot2021-11-142-0/+42
| |_|/ |/| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | [tx-robot] updated from transifexNextcloud bot2021-11-132-0/+46
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Fix missing token updateJoas Schilling2021-11-121-0/+2
| |/ |/| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #29660 from nextcloud/fix/calendar-query-uris-initChristoph Wurst2021-11-111-2/+5
|\ \ | | | | | | Fix initialization of calendar search URIs
| * | Fix initialization of calendar search URIsChristoph Wurst2021-11-111-2/+5
| |/ | | | | | | | | | | | | They are an empty array by default. If you don't initialize then accessing them via the setter will throw a type error. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / Fix updating with appsJoas Schilling2021-11-112-2/+2
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* [tx-robot] updated from transifexNextcloud bot2021-11-104-2/+262
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #29559 from ↵Joas Schilling2021-11-093-2/+56
|\ | | | | | | | | nextcloud/feat/28139/profile-respect-user-enumeration Respect user enumeration settings on profile
| * Move common logic to share managerJoas Schilling2021-11-093-2/+56
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | [tx-robot] updated from transifexNextcloud bot2021-11-082-0/+2
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | [tx-robot] updated from transifexNextcloud bot2021-11-072-0/+34
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | [tx-robot] updated from transifexNextcloud bot2021-11-0618-0/+60
|/ | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Update lib/private/Files/Storage/Wrapper/Availability.php add void Vincent Petry2021-11-051-1/+1
| | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Carl Schwan <carl@carlschwan.eu>
* Return false in hasUpdated when storage is not availableVincent Petry2021-11-051-4/+10
| | | | | | | | | | Technically, saying that a storage has no updates when it's not available is correct. This makes it possible to retrieve the cache entry for the mount point and also to list and remove unavailable federated shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* [tx-robot] updated from transifexNextcloud bot2021-11-0522-22/+0
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix psalmJohn Molakvoæ2021-11-041-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #29482 from nextcloud/feat/revamp-profile-visibility-sectionv23.0.0beta3John Molakvoæ2021-11-041-52/+141
|\
| * Refine profile backend for frontend visibility requirementsChristopher Ng2021-11-041-44/+115
| | | | | | | | | | | | | | | | | | - Provide metadata - Dynamic displayId - Add appId - Filter out unused parameter config properties from the existing profile config Signed-off-by: Christopher Ng <chrng8@gmail.com>
| * Better function descriptionsChristopher Ng2021-11-031-2/+4
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
| * Add additional check on action registrationsChristopher Ng2021-11-031-8/+24
| | | | | | | | | | | | - Minor refactor Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Merge pull request #29533 from ↵Christoph Wurst2021-11-043-8/+24
|\ \ | |/ |/| | | | | nextcloud/enhancement/get-calendars-for-principal-api Add IManager::getCalendarsForPrincipal API
| * Add IManager::getCalendarsForPrincipal APIChristoph Wurst2021-11-033-8/+24
| | | | | | | | | | | | | | | | The Calendar app needs to access calendars of a given principal in the back-end. The new calendar providers were not accessible for apps before this patch. Now they can access the ICalendar objects on demand. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #29525 from ↵Christoph Wurst2021-11-031-0/+2
|\ \ | |/ |/| | | | | nextcloud/bugfix/noid/allow-to-inject-by-public-interface Allow to inject the trusted domain helper by public interface
| * Allow to inject the trusted domain helper by public interfaceJoas Schilling2021-11-031-0/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | [tx-robot] updated from transifexNextcloud bot2021-11-034-4/+48
|/ | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #29479 from nextcloud/fix/images-php-8.0Côme Chilliet2021-11-026-23/+26
|\ | | | | Fix image handling for PHP 8.0