Commit Graph

22799 Commits (f47a2bbcae72f9fa1e52fe3c28d98b7edfe9535e)

Author SHA1 Message Date
Simon L 753e7c2dff
Merge pull request #41544 from nextcloud/enh/noid/updatehtaccess-disk-space-check 2023-11-20 08:14:57 +07:00
Ferdinand Thiessen ecf9f0a872
fix(CSP): Only add `strict-dynamic` when using nonces
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-17 22:01:02 +07:00
Simon L 4c522f0f65 do not write htaccess file if disk space is too low
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-17 15:22:53 +07:00
Ferdinand Thiessen e231abd9bf
fix!(ContentSecurityPolicy): Make `strict-dynamic` enabled by default on `script-src-elem`
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-17 14:42:36 +07:00
Ferdinand Thiessen 7df9eb3351 feat(ContentSecurityPolicy): Allow to set `strict-dynamic` on `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>
2023-11-17 11:12:57 +07:00
Nextcloud bot 158aedb549
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-11-17 00:27:03 +07:00
Marcel Müller db3c731b0e
Merge pull request #41541 from nextcloud/fix/noid/serve-flac-files
Serve .flac audio files
2023-11-16 20:35:07 +07:00
Christoph Wurst c9dc377ebc
Merge pull request #41395 from nextcloud/hello-emf
feat: add preview provider for emf files based on office
2023-11-16 19:48:06 +07:00
Benjamin Gaussorgues 23605d60dd
Merge pull request #41057 from nextcloud/registermounts-opt
optimize UserMountCache::registerStorage
2023-11-16 18:30:01 +07:00
Robin Appelman b942850af9
optimize UserMountCache::registerStorage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-16 16:21:59 +07:00
Joas Schilling 7b45939561
Merge pull request #41511 from nextcloud/enh/advanced_search_backend
Enhancements for advanced search API
2023-11-16 15:41:27 +07:00
Marcel Müller eaf863dfdb Serve .flac audio files
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2023-11-16 14:24:56 +07:00
Louis 9c3350b313
Merge pull request #41465 from nextcloud/artonge/migrate_metadata
Migrate old metadata table to the new ones
2023-11-16 11:20:57 +07:00
Louis Chemineau 95938d32d9
Add migration from the old to new metadata tables
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-16 09:21:55 +07:00
Joas Schilling 2fa78f6245
Reverse X-Forwarded-For list to read the correct proxy remote address
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-16 07:45:19 +07:00
Benjamin Gaussorgues ae31d03217
Merge pull request #41486 from nextcloud/fix/41470/invalid_user_group
Fix invalid users/groups handling in advanced search
2023-11-16 02:50:09 +07:00
Nextcloud bot f4d86818b2
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-11-16 00:28:36 +07:00
Christoph Wurst 33e07121d2
Merge pull request #41501 from nextcloud/feat/dav/show-ooo-ui-by-default
feat(dav): Enable OOO UI and expose enabled via OCP
2023-11-15 18:26:27 +07:00
Benjamin Gaussorgues 72c191df11
Introduce constants for builtin search filters
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-15 17:24:37 +07:00
Benjamin Gaussorgues d79d85ddd2
Undeprecate getTerm
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-15 17:00:18 +07:00
Simon L c2658bf913
Merge pull request #37959 from nextcloud/ob-proc 2023-11-15 16:47:59 +07:00
Benjamin Gaussorgues 82c164dabe
Change person type separator
`/` isn't allowed in UID, it will avoid conflicts

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-15 16:34:56 +07:00
Christoph Wurst 45541eb685
feat(dav): Enable OOO UI and expose enabled via OCP
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>
2023-11-15 15:53:38 +07:00
Christoph Wurst ce6e3a3a01
Merge pull request #41495 from nextcloud/fix/ocp/register-availability-coordinator
fix(ocp): register IAvailabilityCoordinator service alias
2023-11-15 15:33:48 +07:00
Benjamin Gaussorgues cb4e367a22
Merge pull request #40935 from nextcloud/local-case-insensitive
add some support for rename on case insensitive local filesystems
2023-11-15 13:58:44 +07:00
Richard Steinmetz 909b46bb53
fix(ocp): register IAvailabilityCoordinator service alias
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-11-15 13:32:36 +07:00
Benjamin Gaussorgues 33837e7d6f
Fix invalid users/groups handling in advanced search
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-15 10:17:43 +07:00
Julius Härtl 830d85bcf1
Merge pull request #41366 from ir0nhide/fix/multipart-copy-ssec 2023-11-15 08:24:06 +07:00
Git'Fellow e0cafc8fe8
Merge pull request #38622 from nextcloud/ifElseReturnMatch
Replace if/else with return match
2023-11-15 00:05:52 +07:00
Git'Fellow ef5f7d0a90 Us strpos() only
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-11-15 00:04:25 +07:00
Git'Fellow 53b84732a3 Check for open_basedir before reading /proc
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-11-15 00:04:25 +07:00
Tobias Zimmerer cdf96fab92 fix(s3): support SSE-C headers for the MultipartCopy call
Signed-off-by: Tobias Zimmerer <3228193+ir0nhide@users.noreply.github.com>
2023-11-14 21:19:59 +07:00
Ferdinand Thiessen 927e7fcf67
fix(AppManager): Ensure that app manager can handle empty app keys on the navigation entries
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-14 20:04:48 +07:00
Ferdinand Thiessen 8d0c7cc5fa
fix: Allow to set custom app order on navigation entries added by closures to NavigationManager
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-14 20:03:28 +07:00
Ferdinand Thiessen 8bd9858345
fix(NavigationManager): Set default app in `add` function to allow entries added as closures
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-14 20:03:28 +07:00
Ferdinand Thiessen 84acc49932
fix(NavigationManager): Check for `appManager` before using it
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-14 20:03:28 +07:00
Ferdinand Thiessen 43a0016989
fix(INavigationManager): Add psalm typing for `add` parameter
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-14 20:03:28 +07:00
Benjamin Gaussorgues e90df6421a
Merge pull request #41432 from nextcloud/fix/white-user-icon-search
Fix search providers icons
2023-11-14 18:09:32 +07:00
Benjamin Gaussorgues 86a44514bd
Fix user search provider icon
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-14 17:51:21 +07:00
Maxence Lange 847c687a06 metadata must be set as editable for PROPPATCH
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-14 14:38:53 +07:00
Maxence Lange 761a688ec9 fix psalm
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-14 10:11:24 +07:00
Maxence Lange 3af12b2a50 ignore metadata if table is empty
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-14 09:28:58 +07:00
Arthur Schiwon f313b12d54
Merge pull request #41436 from nextcloud/feat/introduce-inAppSearch-method-for-advanced-search
Add `inAppSearch` for advanced search providers
2023-11-14 11:13:48 +07:00
Arthur Schiwon 5f69640006
Merge pull request #41446 from nextcloud/fix/noid/moving-metadataquery
moving IMetadataQuery
2023-11-14 11:11:06 +07:00
Benjamin Gaussorgues 174b76fff3
Add new method `inAppSearch` for advanced search providers
Allows to indicates if a search provider also support in app search

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-14 09:58:20 +07:00
Nextcloud bot 6284009fa0
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-11-14 00:25:51 +07:00
Maxence Lange 380b81315a moving metadataquery
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-13 22:25:37 +07:00
Daniel Kesselberg 475dd60354
fix: use png as preview right away
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>
2023-11-13 22:00:45 +07:00
Daniel Kesselberg b5241d5220
feat: allow multiple libreoffice invocations
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>
2023-11-13 21:46:31 +07:00
Arthur Schiwon 93505b2cdd fix(workflowengine): use andWhere() not second where()
- an unconditional where() condition is added right before
- fixes also wrongly named methods in the Exception message

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-11-13 14:47:47 +07:00