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

[stable11] Directly fix invalid values of DTEND and DTSTART #4234

Merged
merged 1 commit into from
Apr 6, 2017

Conversation

nickvergessen
Copy link
Member

Backport #4066

Signed-off-by: Joas Schilling <coding@schilljs.com>
@mention-bot
Copy link

@nickvergessen, thanks for your PR! By analyzing the history of the files in this pull request, we identified @LukasReschke and @rullzer to be potential reviewers.

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice. Worked here... lets see if it works for everybody...

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works - at least for my calendar

@MorrisJobke MorrisJobke merged commit 1f79248 into stable11 Apr 6, 2017
@MorrisJobke MorrisJobke deleted the backport-4066-always-fix-broken-dav-values branch April 6, 2017 15:58
@toeff
Copy link

toeff commented Apr 23, 2017

Updated from 11.0.2.7 to 11.0.3.2
Sadly doesn't work with one of my calendars. Still getting an "Internal Server Error" when exporting. Logfile says: "Fatal webdav Sabre\VObject\InvalidDataException: Unsupported VALUE parameter for DTEND property. You supplied """

@nickvergessen
Copy link
Member Author

@rullzer empty DTEND?! Ever heard of that?

@rullzer
Copy link
Member

rullzer commented Apr 24, 2017

Nope 😕
Maybe there was nothing supplied at all?

@toeff
Copy link

toeff commented Apr 28, 2017

I have solved my problem through an export via thunderbird and then re-import as a new calendar.

@PiQuer
Copy link

PiQuer commented Apr 25, 2019

Just a heads up if someone still gets the internal server error: check your database for DTEND;VALUE=;. I had 8 year old entries of the form

DTEND;VALUE=;TZID=Europe/Vienna:20110330T120000

with no idea where they came from. They could be fixed by replacing ; for : in the following lines of apps/dav/lib/Migration/CalDAVRemoveEmptyValue.php:

line 61:
$pattern = ';VALUE=:';
change to
$pattern = ';VALUE=;';
line 69:
$data = preg_replace('/' . $pattern . '/', ':', $calObject['calendardata']);
change to
$data = preg_replace('/' . $pattern . '/', ';', $calObject['calendardata']);

Then run occ maintenance:repair. Maybe the script could look for both patterns?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants