aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #41578 from nextcloud/enh/noid/dispatcher-test-argument-rangeJoas Schilling2023-11-272-7/+48
|\ | | | | Enable AppFramework dispatcher to enforce integer ranges
| * enh(dispatcher): enforce psalm ranges in the http dispatcherArthur Schiwon2023-11-242-7/+48
| | | | | | | | | | | | - allows devs to provide int ranges for API arguments Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | feat(dav): dispatch out-of-office started and ended eventsRichard Steinmetz2023-11-231-1/+6
|/ | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-23160-543/+543
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge pull request #41459 from nextcloud/enh/noid/search-metadata-nullMaxence Lange2023-11-231-0/+2
|\ | | | | implements search on null/notnull metadata
| * implements search on null/notnull metadataMaxence Lange2023-11-221-0/+2
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | Merge pull request #41662 from ↵Kate2023-11-231-18/+21
|\ \ | | | | | | | | | nextcloud/chore/settings/cleanup-manager-type-annotations
| * | chore(settings): Cleanup IManager and Manager type annotationsjld31032023-11-231-18/+21
| | | | | | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | | Merge pull request #40462 from nextcloud/refactor/lib-array_search-to-in_arrayAndy Scherzinger2023-11-228-10/+10
|\ \ \ | | | | | | | | refactor: Replace array_search with in_array in lib/
| * | | refactor: Repalce array_search with in_array in lib/Christoph Wurst2023-11-228-10/+10
| |/ / | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #40071 from ↵Arthur Schiwon2023-11-221-1/+3
|\ \ \ | |_|/ |/| | | | | | | | nextcloud/bugfix/noid/dont-block-admin-page-when-updater.nextcloud.com-is-down fix(updatecheck): Don't wait 120s for a response of updater.nextcloud…
| * | fix(updatecheck): Don't wait 120s for a response of updater.nextcloud.comJoas Schilling2023-11-221-1/+3
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #41565 from nextcloud/fix/object-storage-inconsitent-behaviorFerdinand Thiessen2023-11-221-0/+7
|\ \ \ | | | | | | | | fix(ObjectStore): Make copying behavior consistent with local storage
| * | | fix(ObjectStore): Make copying behavior consistent with local storageFerdinand Thiessen2023-11-171-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Drop file permissions on copy like we do on local storage. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | | Merge pull request #41653 from nextcloud/enh/noid/sync-token-on-retrievemetadataMaxence Lange2023-11-221-0/+1
|\ \ \ \ | |_|/ / |/| | | get sync_token on retrieveMetadata()
| * | | get sync_token on retrieveMetadata()Maxence Lange2023-11-211-0/+1
| | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | | | Merge pull request #40114 from summersab/refactor/OC-Server-getAvatarManagerArthur Schiwon2023-11-221-1/+1
|\ \ \ \ | |_|_|/ |/| | | Refactor `OC\Server::getAvatarManager`
| * | | Refactor `OC\Server::getAvatarManagerAndrew Summers2023-09-011-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | | | Merge pull request #41646 from nextcloud/feat/hide-search-providerBenjamin Gaussorgues2023-11-221-1/+6
|\ \ \ \ | | | | | | | | | | feat(search): hide search provider from list
| * | | | feat(search): hide search providerBenjamin Gaussorgues2023-11-221-1/+6
| | |/ / | |/| | | | | | | | | | | | | | | | | | Some search providers can be hidden if they send `null` in `getOrder` Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* / | | accept boolean valueMaxence Lange2023-11-221-3/+3
|/ / / | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | | Merge pull request #41540 from ↵Louis2023-11-212-8/+8
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/artonge/feat/add_metadata_generation_job Add metadata generation job
| * | | Add metadata generation jobLouis Chemineau2023-11-162-8/+8
| | | | | | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | | Listen to cache event when deleting metadataLouis Chemineau2023-11-212-9/+6
| | | | | | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | | feat: update sign up link in share pagesLuka Trovic2023-11-211-0/+16
| | | | | | | | | | | | | | | | Signed-off-by: Luka Trovic <luka@nextcloud.com>
* | | | Merge pull request #41601 from nextcloud/enh/noid/named-metadata-eventMaxence Lange2023-11-201-1/+7
|\ \ \ \ | | | | | | | | | | add named metadata event
| * | | | add named metadata eventMaxence Lange2023-11-201-1/+7
| | | | | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | | | | Merge pull request #41616 from ↵Joas Schilling2023-11-201-3/+12
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | nextcloud/bugfix/noid/fix-ocs-absolute-URLs-with-ignore-front-controller fix: Fix linkToOCSRouteAbsolute() without index.php and with subfolder
| * | | | fix: Fix linkToOCSRouteAbsolute() without index.php and subfolderJoas Schilling2023-11-201-3/+12
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Merge pull request #41544 from ↵Simon L2023-11-201-0/+8
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | nextcloud/enh/noid/updatehtaccess-disk-space-check
| * | | | do not write htaccess file if disk space is too lowSimon L2023-11-171-0/+8
| | |_|/ | |/| | | | | | | | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* / | | feat(ContentSecurityPolicy): Allow to set `strict-dynamic` on ↵Ferdinand Thiessen2023-11-171-0/+8
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | `script-src-elem` only This adds the possibility to set `strict-dynamic` on `script-src-elem` only while keep the default rules for `script-src`. The idea is to allow loading module js which imports other files and thus does not allow nonces on import but on the initial script tag. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | Merge pull request #41541 from nextcloud/fix/noid/serve-flac-filesMarcel Müller2023-11-161-1/+1
|\ \ \ | | | | | | | | Serve .flac audio files
| * | | Serve .flac audio filesMarcel Müller2023-11-161-1/+1
| |/ / | | | | | | | | | Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
* | | Merge pull request #41395 from nextcloud/hello-emfChristoph Wurst2023-11-164-45/+119
|\ \ \ | | | | | | | | feat: add preview provider for emf files based on office
| * | | fix: use png as preview right awayDaniel Kesselberg2023-11-132-37/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The initial office preview implementation converted an office document with LibreOffice to PDF, used ImageMagick to extract the first page as JPEG, and passed it OC_Image. https://github.com/nextcloud/server/pull/10198 changed the implementation to use PNG rather than PDF. OC_Image can use a PNG as a preview right away, so the ImageMagick step is unnecessary. The registration code was updated to not ask ImageMagick if PDF is supported, as PDFs are no longer used to create office document previews. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * | | feat: allow multiple libreoffice invocationsDaniel Kesselberg2023-11-131-11/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LibreOffice only allows one invocation per user profile.[^1] The office provider set the user profile to /tmp/owncloud-instanceid and therefore only one invocation per instance is allowed. This was introduced a while ago, yet it's unclear if this was intentionally or just a side effect.[^2] The limitation on one invocation leads to the situation that the preview generation only works for a couple of files if you upload a whole folder of emf or word files. This commit removes the limitation by using a new user profile for each preview. That's done by using instance id plus file id as postfix for getTemporaryFolder. This has some drawbacks: - Overload protection: If you upload 100 emf files, you may end up with 100 LibreOffice invocations. Though, you can use preview_concurrency_new to limit the number of previews that can be generated concurrently when php-sysvsem is available. - New profile: I assume it takes a few bits to generate a fresh LibreOffice user profile. It appears that there is no way to ask LibreOffice to not create a profile and just work with the defaults. The profile will be cleaned after use by our temp manager. - Remove the configuration option preview_office_cl_parameters: This is not strictly necessary yet, but if you set the configuration option, the generated path for the user profile is also missing. The configuration option is not well documented (e.g., it's unclear that the last option needs to be --outdir) and actually, there should be no reason to change it after all. [^1]: https://wiki.documentfoundation.org/UserProfile [^2]: https://github.com/owncloud/core/pull/9784 Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * | | feat: add preview provider for emf files based on officeDaniel Kesselberg2023-11-133-0/+45
| | | | | | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | | Merge pull request #41057 from nextcloud/registermounts-optBenjamin Gaussorgues2023-11-163-57/+61
|\ \ \ \ | | | | | | | | | | optimize UserMountCache::registerStorage
| * | | | optimize UserMountCache::registerStorageRobin Appelman2023-11-163-57/+61
| | |/ / | |/| | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | | | Merge pull request #41511 from nextcloud/enh/advanced_search_backendJoas Schilling2023-11-162-10/+12
|\ \ \ \ | |/ / / |/| | | Enhancements for advanced search API
| * | | Introduce constants for builtin search filtersBenjamin Gaussorgues2023-11-151-9/+9
| | | | | | | | | | | | | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| * | | Change person type separatorBenjamin Gaussorgues2023-11-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | `/` isn't allowed in UID, it will avoid conflicts Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | | | Merge pull request #41465 from nextcloud/artonge/migrate_metadataLouis2023-11-162-0/+45
|\ \ \ \ | | | | | | | | | | Migrate old metadata table to the new ones
| * | | | Add migration from the old to new metadata tablesLouis Chemineau2023-11-162-0/+45
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | | | Reverse X-Forwarded-For list to read the correct proxy remote addressJoas Schilling2023-11-161-2/+8
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Merge pull request #41486 from nextcloud/fix/41470/invalid_user_groupBenjamin Gaussorgues2023-11-162-4/+6
|\ \ \ \ \ | |/ / / / |/| | | | Fix invalid users/groups handling in advanced search
| * | | | Fix invalid users/groups handling in advanced searchBenjamin Gaussorgues2023-11-152-4/+6
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | | | | Merge pull request #41501 from nextcloud/feat/dav/show-ooo-ui-by-defaultChristoph Wurst2023-11-151-0/+11
|\ \ \ \ \ | | | | | | | | | | | | feat(dav): Enable OOO UI and expose enabled via OCP
| * | | | | feat(dav): Enable OOO UI and expose enabled via OCPChristoph Wurst2023-11-151-0/+11
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes the feature opt-out now that we have meaningful integrations based on OOO data. Allows instances still to turn the feature off. For apps like Mail that build on top of this feature we need to know if the instance has the feature turned on or off. This is exposed as OCP API, too. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>