Commit Graph

1738 Commits (17c2deff76e100b021ebbf5124584b6ba29cf05d)

Author SHA1 Message Date
Carl Schwan f8b13ecd60
Merge pull request #32363 from nextcloud/cleanup/remove-long-deprecated-classes
Remove OCP\App and OCP\BackgroundJob
2022-08-08 17:05:11 +07:00
Côme Chilliet cb271b759e
Fix dynamic property creations in test files
This fixes warnings in PHP 8.2

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-08-01 15:07:53 +07:00
Carl Schwan 458c2fa297
Remove OCP\App and OCP\BackgroundJob
Both deprecated since NC 23

IAppManager is the replacement for OCP\App unfortunately it can't be
dependency injected in classes used by the installed otherwise the
database connection is initialised too early

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-01 09:46:40 +07:00
Carl Schwan 7b723813ce
Multiple fixes
- Fix tests
- Use non deprecated event stuff
- Add a bit of type hinting to the new stuff
- More safe handling of instanceOfStorage (share might not be the first
  wrapper)
- Fix resharing

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-07-31 19:37:59 +07:00
Vincent Petry 3cfb4cbf94
Block download when needed on direct download endpoint
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-07-28 16:54:13 +07:00
Vincent Petry 2ee659e547
Fix view-only code after code review comments
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-07-28 16:53:24 +07:00
Vincent Petry 92e60e3858
Add nc:share-attributes Webdav property
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-07-28 16:53:23 +07:00
Vincent Petry 03b1791cca
Fix share attribute related tests + code style
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-07-28 16:53:22 +07:00
Vincent Petry a95c19e14b
Add share attributes + prevent download permission
Makes it possible to store download permission

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-07-28 16:53:22 +07:00
Vincent Petry a02dee7c69
Merge pull request #32956 from nextcloud/fix/upload-folder-wrong-content
Handle file contained inside the uploads folder
2022-07-27 17:06:39 +07:00
luz paz d4637ef4d8 Fix typos in apps/dav subdirectory
Found via `codespell -q 3 -S l10n -L jus ./apps/dav`

Signed-off-by: luz paz <luzpaz@github.com>
2022-07-26 17:40:10 +07:00
Anna 5671abd168
Merge pull request #33251 from cneukom/feature/birthday-calendar-reminder-settings
Birthday Calendar Reminder Setting
2022-07-26 20:59:33 +07:00
Thomas Citharel 554e2dce48
Don't try to purge objects from the birthday calendar when it doesn't exist
Doesn't matter much as it's been recreated afterwards with (ensureCalendarExists).

Closes #29617

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-07-25 17:56:24 +07:00
blizzz 4ced3a4518
Merge pull request #32869 from nextcloud/dav-no-deleted-user-activities
Avoid calendar & addressbook activities being created on user being deleted
2022-07-23 00:01:30 +07:00
Cédric Neukom 9eb276b20b fix possibly null variables
Signed-off-by: Cédric Neukom <github@webguy.ch>
2022-07-17 18:36:06 +07:00
Cédric Neukom 483549d22a Respect user settings when generating alerts for birthday calendar
Signed-off-by: Cédric Neukom <github@webguy.ch>
2022-07-17 14:51:46 +07:00
blizzz 927b6d635f
Merge pull request #33118 from nextcloud/fix/address-book-export
Fix empty address books being exported
2022-07-08 22:13:19 +07:00
Arthur Schiwon ec09605109
catch any exception for transaction control
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-07-06 16:14:51 +07:00
Christopher Ng 5f31d4b0bf Fix empty address books being exported
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-07-05 17:00:27 +07:00
Carl Schwan ec465bf247
Merge pull request #33090 from nextcloud/fix/noid/proppatch-properties-transaction-rollback
DAV custom props: catch Exception and rollback transaction in case
2022-07-04 15:27:04 +07:00
Arthur Schiwon 794177e753
DAV custom props: catch Exception and rollback transaction in case
- before exceptions were not caught, a started transaction might not have
  been finished
- also resolve depractions and use IQueryBuilder

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-07-01 22:44:20 +07:00
Joas Schilling 473a786510
Inject userId directly
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-07-01 14:07:52 +07:00
Joas Schilling bd3c1fdf74
Remove unused import
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-07-01 12:33:07 +07:00
Joas Schilling 4f7f4d74db
Add UI to opt-in on the status automation
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-07-01 12:33:07 +07:00
Joas Schilling 5dee54d70b
Add status automation
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-07-01 12:33:07 +07:00
Joas Schilling fdcf3eafd6
Fix determination of cron job run
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-07-01 12:33:05 +07:00
Joas Schilling 251f450df6
User status automation background job
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-07-01 12:32:07 +07:00
Carl Schwan 41e6e0c646
Merge pull request #33007 from nextcloud/cleanup/federation-app
Summer cleanup of the federation app
2022-06-28 15:33:18 +07:00
Carl Schwan 6114176b71 Cleanup CardDav SyncService
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-24 20:25:38 +07:00
Carl Schwan a9cfa72d1c Summer cleanup of the federation app
- Use IEventDispatcher instead of deprecated symfony dispatcher
- Use LoggerInterface where possible
- Use php 7.4 properties
- Add type hinting where possible
- Move federation hooks to a seperate listener

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-24 15:39:52 +07:00
Carl Schwan f8153a6afc
Merge pull request #32701 from nextcloud/fix/type-error-objectree
Fix type error in Sabre/Connector/Directory
2022-06-23 13:01:35 +07:00
Carl Schwan 14a16320ec
Merge pull request #32884 from nextcloud/typing/dav-sharing
Add typing to Sharing Backend
2022-06-22 11:09:06 +07:00
Carl Schwan 3598ec4028 Add typing to Sharing Backend
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-22 10:25:17 +07:00
Carl Schwan 944675a4a2 Handle file contained inside the uploads folder
Fix #32450

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-21 14:29:44 +07:00
rakekniven 9a1a3b4731
Merge pull request #32881 from nextcloud/Valdnet-patch-2
l10n: Spelling unification
2022-06-20 13:35:51 +07:00
blizzz 33148016a5
Merge pull request #32876 from nextcloud/fix/fix-string-interpolation
Use {$var} instead of ${var} for PHP 8.2 compatibility
2022-06-15 21:39:56 +07:00
Valdnet 814d9ac74a
Spelling unification
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2022-06-15 11:01:58 +07:00
Valdnet 5e200f2670
l10n: Spelling unification
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2022-06-15 11:01:18 +07:00
Valdnet dd30ab9c7f
l10n: Spelling unification
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2022-06-15 10:57:05 +07:00
Côme Chilliet c54fb5f9e6
Use {$var} instead of ${var} for PHP 8.2 compatibility
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-06-14 15:12:28 +07:00
Thomas Citharel 39ef0500d1
Handle the move operation properly between shared calendars
- Introduce a new CalendarObjectMovedEvent typed event dedicated for
  this operation
- Handle the event in the activity backend and add new appropriate activity subjects

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-06-14 14:40:24 +07:00
Carl Schwan 046357ec75 Fix type error in Sabre/Connector/Directory
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-14 13:01:06 +07:00
Thomas Citharel 4129089f87
Avoid calendar & addressbook activities being created on user being deleted
Addressbooks and Calendar data are destroyed through hook OC_User::pre_deleteUser, which when it reaches the backends sends AddressBookDeletedEvent/CalendarDeletedEvent typed events, which in turns generates activities that aren't deleted until they expire.

This can probably lead to old activities being visible for a new user created with the same uid.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-06-14 11:54:42 +07:00
Vincent Petry 2ee948e8d1
Merge pull request #30368 from nextcloud/dav-allow-object-properties
Allow DAV Object properties
2022-06-10 17:07:38 +07:00
Vincent Petry 804ee11803
Merge pull request #31029 from nextcloud/expose-extra-emails-in-dav
Expose additional emails in {DAV:}alternate-URI-set
2022-06-10 16:56:37 +07:00
Vincent Petry 5f8e1b7fb9
Merge pull request #31622 from nextcloud/increase-loglevel-modernize-refresh-webcal
Increase loglevel of Webcal parsing errors and modernize code
2022-06-10 16:31:51 +07:00
Vincent Petry dcfdcf991f
Merge pull request #32361 from nextcloud/dav-scheduling-default-calendar
Put calendar invites into the user's first available calendar
2022-06-10 16:03:09 +07:00
Vincent Petry 8e61671b82
Merge pull request #32364 from nextcloud/dav-listeners
🧹 Remove all legacy event dispatchers from CalDAV & CardDAV backends
2022-06-10 15:57:35 +07:00
Vincent Petry 08655a1497
Merge pull request #32800 from nextcloud/bugfix/noid/no-fatal-for-maintenance-mode
Don't spam the log with fatals when maintenance mode is enabled or an…
2022-06-10 15:02:37 +07:00
Thomas Citharel c6c3fd9aa9
Avoid creating carddav activities for the system user
Because of the system addressbook synchronisation.

Closes #32803

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-06-10 09:07:53 +07:00