Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dav): overwrite report method for subscription calendars #43539

Closed
wants to merge 2 commits into from

Conversation

miaulalala
Copy link
Contributor

  • Resolves: # 42143

Summary

PROPFIND and REPORT both don't return the proper Calendar class any longer because the object generated in beforeMethod:* is not kept but a fresh instance is initialised for each call on getNodeForPath.

Enabling caching for PROPFINDs allows the calendar list to render the holiday calendars again.

Since the calendar query report only handles ICalendarObjects , which the subscription class ISN'T, the REPORT is empty.

TODO

  • ...

Checklist

Signed-off-by: Anna Larch <anna@nextcloud.com>
apps/dav/lib/CalDAV/WebcalCaching/Plugin.php Fixed Show fixed Hide fixed
apps/dav/lib/CalDAV/WebcalCaching/Plugin.php Fixed Show fixed Hide fixed
apps/dav/lib/CalDAV/WebcalCaching/Plugin.php Fixed Show fixed Hide fixed
apps/dav/lib/CalDAV/WebcalCaching/Plugin.php Fixed Show fixed Hide fixed
apps/dav/lib/CalDAV/WebcalCaching/Plugin.php Fixed Show fixed Hide fixed
apps/dav/lib/CalDAV/WebcalCaching/Plugin.php Fixed Show fixed Hide fixed
apps/dav/lib/CalDAV/WebcalCaching/Plugin.php Fixed Show fixed Hide fixed

}

public function propFind(PropFind $propFind, INode $node) {

Check notice

Code scanning / Psalm

MissingReturnType Note

Method OCA\DAV\CalDAV\WebcalCaching\Plugin::propFind does not have a return type, expecting void
if (isset($tzResult[$tzProp])) {
// This property contains a VCALENDAR with a single
// VTIMEZONE.
$vtimezoneObj = VObject\Reader::read($tzResult[$tzProp]);

Check failure

Code scanning / Psalm

UndefinedClass Error

Class, interface or enum named OCA\DAV\CalDAV\WebcalCaching\VObject\Reader does not exist
@@ -118,6 +131,113 @@
}
}

public function report($reportName, $report, $path) {

Check notice

Code scanning / Psalm

MissingReturnType Note

Method OCA\DAV\CalDAV\WebcalCaching\Plugin::report does not have a return type, expecting void
@@ -118,6 +131,113 @@
}
}

public function report($reportName, $report, $path) {

Check notice

Code scanning / Psalm

MissingParamType Note

Parameter $reportName has no provided type
@@ -118,6 +131,113 @@
}
}

public function report($reportName, $report, $path) {

Check notice

Code scanning / Psalm

MissingParamType Note

Parameter $report has no provided type
@@ -118,6 +131,113 @@
}
}

public function report($reportName, $report, $path) {

Check notice

Code scanning / Psalm

MissingParamType Note

Parameter $path has no provided type
@skjnldsv skjnldsv added the 2. developing Work in progress label Feb 21, 2024
@miaulalala
Copy link
Contributor Author

Superseded by #43698

@miaulalala miaulalala closed this Feb 26, 2024
@skjnldsv skjnldsv deleted the fix/42143/subscription-calendars branch March 14, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants