Commit Graph

13937 Commits

Author SHA1 Message Date
Joas Schilling
f6b6776c93
fix(API): Use a distinct exception so apps can react to it and customize the return
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-28 06:11:57 +01:00
Côme Chilliet
1b547c7db8 Migrate missing primary key database check to new API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-11-27 15:23:52 +01:00
Côme Chilliet
ad88c04f2d Migrate missing index database check to new API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-11-27 15:23:52 +01:00
Côme Chilliet
2cb1c0f2dc Migrate missing column database check to new API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-11-27 15:23:52 +01:00
Joas Schilling
3ccb301853
Merge pull request #41578 from nextcloud/enh/noid/dispatcher-test-argument-range
Enable AppFramework dispatcher to enforce integer ranges
2023-11-27 10:40:50 +01:00
Arthur Schiwon
3fa43a529b
enh(dispatcher): enforce psalm ranges in the http dispatcher
- allows devs to provide int ranges for API arguments

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-11-24 12:46:38 +01:00
Richard Steinmetz
8191295f66
feat(dav): dispatch out-of-office started and ended events
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-11-23 17:18:49 +01: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 +01:00
Maxence Lange
ee787cd1c6
Merge pull request #41459 from nextcloud/enh/noid/search-metadata-null
implements search on null/notnull metadata
2023-11-23 07:52:27 -01:00
Kate
cd25b3a0d1
Merge pull request #41662 from nextcloud/chore/settings/cleanup-manager-type-annotations 2023-11-23 09:21:01 +01:00
jld3103
ae360080f5
chore(settings): Cleanup IManager and Manager type annotations
Signed-off-by: jld3103 <jld3103yt@gmail.com>
2023-11-23 08:29:37 +01:00
Andy Scherzinger
42724c15c5
Merge pull request #40462 from nextcloud/refactor/lib-array_search-to-in_array
refactor: Replace array_search with in_array in lib/
2023-11-22 20:42:52 +01:00
Arthur Schiwon
99f945622f
Merge pull request #40071 from 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…
2023-11-22 15:18:18 +01:00
Maxence Lange
7467422f57 implements search on null/notnull metadata
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-22 12:43:27 -01:00
Ferdinand Thiessen
9c3321c524
Merge pull request #41565 from nextcloud/fix/object-storage-inconsitent-behavior
fix(ObjectStore): Make copying behavior consistent with local storage
2023-11-22 13:54:01 +01:00
Maxence Lange
8877f9bec9
Merge pull request #41653 from nextcloud/enh/noid/sync-token-on-retrievemetadata
get sync_token on retrieveMetadata()
2023-11-22 10:13:31 -01:00
Joas Schilling
053157b87e fix(updatecheck): Don't wait 120s for a response of updater.nextcloud.com
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-22 11:44:43 +01:00
Arthur Schiwon
bc1da2fa54
Merge pull request #40114 from summersab/refactor/OC-Server-getAvatarManager
Refactor `OC\Server::getAvatarManager`
2023-11-22 11:43:51 +01:00
Christoph Wurst
ea8f9a7e84 refactor: Repalce array_search with in_array in lib/
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-11-22 11:42:53 +01:00
Benjamin Gaussorgues
ba1af2b22e
Merge pull request #41646 from nextcloud/feat/hide-search-provider
feat(search): hide search provider from list
2023-11-22 09:49:46 +01:00
Benjamin Gaussorgues
75e5854458
feat(search): hide search provider
Some search providers can be hidden if they send `null` in `getOrder`

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-22 08:47:53 +01:00
Maxence Lange
ff823cf926 accept boolean value
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-22 01:20:42 -01:00
Maxence Lange
e37ab38780 get sync_token on retrieveMetadata()
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-21 21:11:13 -01:00
Louis
b9bd73a92d
Merge pull request #41540 from nextcloud/artonge/feat/add_metadata_generation_job
Add metadata generation job
2023-11-21 15:37:48 +01:00
Louis Chemineau
b63ddc73a2 Listen to cache event when deleting metadata
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-21 13:52:31 +01:00
Luka Trovic
b134e1cbc7 feat: update sign up link in share pages
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2023-11-21 10:10:37 +01:00
Maxence Lange
ae71ed1e37
Merge pull request #41601 from nextcloud/enh/noid/named-metadata-event
add named metadata event
2023-11-20 22:20:29 -01:00
Joas Schilling
e5b996722a
Merge pull request #41616 from nextcloud/bugfix/noid/fix-ocs-absolute-URLs-with-ignore-front-controller
fix: Fix linkToOCSRouteAbsolute() without index.php and with subfolder
2023-11-20 17:00:43 +01:00
Maxence Lange
22d6c8dcd4 add named metadata event
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-20 13:32:54 -01:00
Joas Schilling
572ea18ac7
fix: Fix linkToOCSRouteAbsolute() without index.php and subfolder
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-20 11:18:47 +01:00
Simon L
753e7c2dff
Merge pull request #41544 from nextcloud/enh/noid/updatehtaccess-disk-space-check 2023-11-20 08:14:57 +01: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 +01:00
Ferdinand Thiessen
5172baaf8b
fix(ObjectStore): Make copying behavior consistent with local storage
Drop file permissions on copy like we do on local storage.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-17 12:54:37 +01: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 +01: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 +01: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 +01:00
Benjamin Gaussorgues
23605d60dd
Merge pull request #41057 from nextcloud/registermounts-opt
optimize UserMountCache::registerStorage
2023-11-16 18:30:01 +01: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 +01: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 +01:00
Louis Chemineau
a0ff998c00
Add metadata generation job
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-16 15:02:38 +01: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 +01: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 +01: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 +01: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 +01: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 +01: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 +01: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 +01:00
Simon L
c2658bf913
Merge pull request #37959 from nextcloud/ob-proc 2023-11-15 16:47:59 +01: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 +01: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 +01: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 +01: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 +01:00
Richard Steinmetz
909b46bb53
fix(ocp): register IAvailabilityCoordinator service alias
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-11-15 13:32:36 +01: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 +01:00
Julius Härtl
830d85bcf1
Merge pull request #41366 from ir0nhide/fix/multipart-copy-ssec 2023-11-15 08:24:06 +01:00
Git'Fellow
e0cafc8fe8
Merge pull request #38622 from nextcloud/ifElseReturnMatch
Replace if/else with return match
2023-11-15 00:05:52 +01:00
Git'Fellow
ef5f7d0a90 Us strpos() only
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-11-15 00:04:25 +01: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 +01: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 +01: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 +01: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 +01: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 +01: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 +01: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 +01:00
Benjamin Gaussorgues
86a44514bd
Fix user search provider icon
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-14 17:51:21 +01: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 +01:00
Maxence Lange
761a688ec9 fix psalm
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-14 10:11:24 -01: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 -01: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 +01: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 +01:00
Maxence Lange
380b81315a moving metadataquery
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-13 22:25:37 -01: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 +01: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 +01: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 +01:00
Joas Schilling
073ec6d217
Merge pull request #41406 from nextcloud/bugfix/noid/log-exception-class-when-message-is-empty
fix(log): Log exception class when message is empty
2023-11-13 14:28:52 +01:00
Joas Schilling
a5684ea3d2
fix(log): Log exception class when message is empty
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-13 12:45:35 +01:00
Daniel Kesselberg
aa48a5f94f
feat: add preview provider for emf files based on office
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-11-13 12:35:54 +01:00
Joas Schilling
0feb55ee93
Merge pull request #41271 from nextcloud/enh/text-processing-iprovider2
enh(TextProcessing): Add two new provider interfaces
2023-11-13 10:49:14 +01:00
Christoph Wurst
78d5ec463b
Merge pull request #41318 from nextcloud/fix/session/empty-session-error-logging
fix(session): Do not log fresh/empty session as error
2023-11-10 18:55:39 +01:00
Andy Scherzinger
1d9c482e68
Merge pull request #41302 from zero0cool0/master
Lower log level about invalid session token
2023-11-10 16:41:01 +01:00
fenn-cs
13d03f45a3 Add unified search toggle in config
The new global search UI is new and might be unstable, hence
we are giving users the option to use the old unified search UI, if
the encounter signficant bottlenecks.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-11-10 11:27:32 +01:00
fenn-cs
20b3338288 Feat: New UI global search
We are introducing a new search UI that providers a lot more space
for users via a large centralized modal and providers various filters
which can by applied by adding various chips on the UI.

For example, users can now filter their search or scope it by limiting the results
to specific apps, time period and people by apply the appropriate filters on the
new UI, previously filters where applied using text in the search box by prefixing
with `::`.

Resolves: #39162

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-11-10 11:27:32 +01:00
Marcel Klehr
2031fe17b4 fix: Make sure array starts at 0 after array filter
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-11-10 11:13:54 +01:00
Benjamin Gaussorgues
a75a93af8e
feat(files): Allow advanced search for files
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-10 09:21:16 +01:00
Benjamin Gaussorgues
c753eefb21
feat(search): Allow multiple search terms in UnifiedController
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-10 09:21:16 +01:00
Joas Schilling
397c96967a
Merge pull request #41365 from nextcloud/bugfix/noid/fix-emitted-events
fix(events): Make sure all `\OCP\Files::…` events are emitted with th…
2023-11-09 22:27:24 +01:00
Christoph Wurst
5183ba2a5b
Merge pull request #40653 from nextcloud/feat/ooo-api
feat: Add out-of-office message API
2023-11-09 18:35:20 +01:00
Joas Schilling
67958915da
fix(events): Make sure all \OCP\Files::… events are emitted with the same data
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-09 15:57:22 +01:00
Marcel Klehr
017f136059 fix: Don't try to access undefined array key
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-11-09 15:38:59 +01:00
Benjamin Gaussorgues
a08281cc5d
Merge pull request #39582 from nextcloud/simplify-ip-normalizer
Simplify IP address normalizer with IP masks
2023-11-09 14:26:33 +01:00
Marcel Klehr
b45007f38f
Merge branch 'master' into enh/text-processing-iprovider2 2023-11-09 13:46:18 +01:00
Joas Schilling
dbe921452b
Merge pull request #41295 from nextcloud/fix/has-reserved-job
fix(JobList#hasReservedJob): Break tie when multiple jobs are reserved
2023-11-09 13:26:27 +01:00
Christoph Wurst
ab1a1d688d
feat: Add out-of-office message API
[skipci]

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-11-09 10:36:11 +01:00
Christoph Wurst
734b11dc86
Merge pull request #41266 from nextcloud/feat/contactsmenu/user-status-sorting
feat(contactsmenu): Sort by user status
2023-11-08 22:21:18 +01:00
Robin Appelman
b29bc59e8b
Merge pull request #41119 from nextcloud/optmize-storage-wrappers
optimize builtin storage wrappers
2023-11-08 22:14:19 +01:00
Christoph Wurst
71080a8d20
feat(contactsmenu): Sort by user status
If user_status is not enabled, fall back to sorting by contact name.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-11-08 21:53:35 +01:00
Louis
77c9550353
Merge pull request #40964 from nextcloud/artonge/feat/metadata/port_providers
Support dynamic metadata request on PROPFIND requests
2023-11-08 17:58:20 +01:00
Robin Appelman
f4fa2fb93c
optimize isShared and isMounted
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-11-08 17:34:58 +01:00
Marcel Klehr
6fbf430fe3
Update lib/private/TextProcessing/Manager.php
Co-authored-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-11-08 17:01:02 +01:00
Marcel Klehr
12c558f20a
Update lib/private/TextProcessing/Manager.php
Co-authored-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-11-08 17:00:48 +01:00
Christoph Wurst
d751baee36
Merge pull request #40799 from nextcloud/fix/login-csrf-check-error-message
fix: Show error message when CSRF check fails at login
2023-11-08 16:33:53 +01: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 +01:00
Robin Appelman
79088ea15f
Merge pull request #40996 from nextcloud/view-share-disable-reuse
reuse sharing disabled state when listing folder content
2023-11-08 15:52:35 +01:00
Robin Appelman
dec880b285
optimize builtin storage wrappers
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-11-08 15:26:10 +01:00
Christoph Wurst
a5422a3998
fix: Show error message when CSRF check fails at login
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-11-08 15:18:34 +01:00
Benjamin Gaussorgues
f04035caa0
Simplify IP address normalizer with IP masks
Remove dead code

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-08 11:55:07 +01:00
Marcel Klehr
8c0c426538
Merge branch 'master' into enh/text-processing-iprovider2
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-11-08 11:52:47 +01:00
Christoph Wurst
2aa8e9d32a
Merge pull request #38995 from fsamapoor/refactor_lib_private_systemtag
Refactors lib/private/SystemTag
2023-11-07 21:10:38 +01:00
Christoph Wurst
2e24e70d94
Merge pull request #39109 from fsamapoor/refactor_lib_private_metadata_migration_net
Refactors /Metadata, /Migration, and /Net namespaces in /lib/private/
2023-11-07 20:47:39 +01:00
Maxence Lange
d9c24f6c7b
Merge pull request #40761 from nextcloud/enh/noid/files-metadata
IFilesMetadata
2023-11-07 15:55:24 -01:00
Maxence Lange
3631536261 IFilesMetadata
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-07 13:06:13 -01:00
Maxence Lange
f497d8b6e5 IFilesMetadata
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-07 12:43:08 -01:00
Côme Chilliet
39d2970191
Add $name property in SetupResult and improve API
Keys for check results are not locale dependent anymore, the name of the
 setup check is instead stored in the setup result object.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-11-07 14:15:47 +01:00
Marcel Klehr
17e7b6c711 fix: split IProvider2 into two more verbose interfaces
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-11-07 12:02:03 +01:00
Christoph Wurst
63069b6492
fix(session): Do not log fresh/empty session as error
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-11-07 09:13:48 +01:00
Joas Schilling
bcc4d7d042
Merge pull request #41214 from nextcloud/bugfix/noid/make-install-verbose
fix(install): Make installing more verbose
2023-11-07 08:39:42 +01:00
Faraz Samapoor
cbc47a9890 Refactors Metadata, Migration, and Net.
In lib/private namespace to improve code readability.

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
2023-11-07 09:43:40 +03:30
Faraz Samapoor
a988754e3d Refactors lib/private/SystemTag.
Mainly using PHP8's constructor property promotion.

Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
2023-11-07 09:41:33 +03:30
Maxence Lange
e62e9e3dbf IFilesMetadata
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-07 00:21:38 -01:00
Patrick Fischer
b2103556b5
Lower log level about invalid session token 2023-11-06 14:51:13 +01:00
Marcel Klehr
26a659dc2c fix(TextProcessing/Manager): add canuseProvider check in getPreferredProviders
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-11-06 12:54:58 +01:00
Marcel Klehr
d11b9cbd79 fix(TextProcessing/Manager): Throw TaskFailureException upon failure
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-11-06 12:50:16 +01:00
Marcel Klehr
cbd304c8f0 fix(JobList#hasReservedJob): Break tie when multiple jobs are reserved
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-11-06 10:47:40 +01:00
Git'Fellow
b4a3773115 fix: reduce memory consumption of scans
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>

Fix lint

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-11-03 18:07:42 +01:00
Arthur Schiwon
333ab4de68
Merge pull request #40995 from nextcloud/cache-jail-optimizations
optimize cache jail creation
2023-11-03 17:03:09 +01:00
Simon L
86e9fcab21
Merge pull request #41263 from nextcloud/enh/noid/fix-semaphore-guarding 2023-11-03 16:46:45 +01:00
Marcel Klehr
181f819e41 enh(TextProcessing): Add IProvider2
- allow providers to obtain current task's userId
- allow providers to expose average task runtime

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-11-03 16:22:54 +01:00
Joas Schilling
6f39d82031
fix(install): Make installing more verbose
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-03 15:44:46 +01:00
Simon L
b681cf735a address review
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-03 15:27:17 +01:00
Christoph Wurst
50de7553b5
Merge pull request #41211 from nextcloud/fix/text-to-image
fix(TextToImage): Consistently use the right method to get the preferred providers
2023-11-03 13:11:07 +01:00
Christoph Wurst
78842348b2
feat(dependencyinjection): Allow optional (nullable) services
Allows working with classes that might or might not be available.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-11-03 11:53:43 +01:00
Simon L
531f5d1e4f fix semaphore guarding
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-03 11:47:12 +01:00
Marcel Klehr
ee76cc512c fix(TextToImage): Always set completionExpectedAt in run/schedule methods
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-11-02 12:07:10 +01:00
Christoph Wurst
b2c0cd9e26
Merge pull request #40859 from nextcloud/fix/session/log-why-session-renewal-failed
fix(session): Log why session renewal failed
2023-11-02 11:09:00 +01:00
Christoph Wurst
d779092564
Merge pull request #38425 from nextcloud/feat/ocp/strict-igroup
feat(ocp): Add types and strict typing to \OCP\Group\IGroup
2023-11-02 11:07:12 +01:00
Git'Fellow
d1169af129 Use \Throwable instead
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-11-01 16:55:19 +01:00
Git'Fellow
624986a6d5 Catch Imaginary processing errors
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-11-01 16:55:19 +01:00
Git'Fellow
3bedfdf6ff Replace if/else with return match
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-11-01 10:33:42 +01:00
Christoph Wurst
ac168cf9ff feat(contactsmenu): Show user status
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-10-31 11:52:46 -07:00
Marcel Klehr
9a494407ee fix(TextToImage): Consistently use the right method to get the preferred providers
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-10-31 10:27:29 +01:00
Julius Härtl
51eb44dbfe
Merge pull request #40898 from Murena-SAS/dev/custom-apps-assets 2023-10-30 16:18:30 +01:00
Christopher Ng
407b67989d enh: Register profile nav entry
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-10-26 10:30:22 -07:00
Joas Schilling
2b7f78fc2e
Merge pull request #40326 from nextcloud/enh/text-to-image-api
Implement TextToImage OCP API
2023-10-26 15:53:30 +02:00
Marcel Klehr
b9985bfd66 fix(TextToImage): Add missing task status update
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-10-26 11:41:21 +02:00
Marcel Klehr
14d1c18665 en(TextToImage): Add getId method to IProvider
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-10-26 11:26:47 +02:00
Marcel Klehr
47e13cd55b en(TextToImage): Use specific exception class instead of generic RuntimeException
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-10-26 11:16:15 +02:00
Git'Fellow
974e86e618 Don't pass invalid streams to Imaginary
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>

Update Imaginary.php

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>

Update Imaginary.php

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-10-25 21:58:46 +02:00
Robin Appelman
efe68d012c
Merge pull request #39044 from nextcloud/more-empty-mount-checking
Fix root mounts not being setup in some cases
2023-10-24 16:54:05 +02:00
Marcel Klehr
3dcedb7900 enh(TextProcessing): Allow providers and task types to declare a dynamic ID instead of using className
this allows AppAPI to register anonymous classes as TextProcessing providers and task types

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-10-24 14:41:24 +02:00
Joas Schilling
7a55ea7823
Merge pull request #41061 from nextcloud/bugfix/noid/dont-use-indirect-dependency
fix(3rdparty): Don't use indirect dependency "Safe/" for functions
2023-10-24 12:12:36 +02:00