Giter VIP home page Giter VIP logo

Comments (14)

bwoester avatar bwoester commented on August 23, 2024

Might be related: I also imported ics-data from a google calendar. It ended up in a new calendar (wish I could specify which one was used). When I started to move the event items to the correct calendar, they disappeared. I can't really say what made them reappear again (modified other events, toggled visibility of calendars, ...), but maybe there is a bug in displaying events which isn't necessarily related to faulty timestamps.

from apps.

jkow avatar jkow commented on August 23, 2024

Hi, I have the same problem in Owncloud 5.0.8. The calender has worked before and just vanished recently, maybe after I edited some entries using my Android CalDAV-Sync app.

Right now I am unable to view my calendar. Is there a workaround that lets me use the calendar again and keeping the synchronization with the phone working?

Is anyone working on this issue? Thanks for your help - I really enjoy using Owncloud but with this issue it's driving me crazy and I'm afraid to loose data.

from apps.

georgehrke avatar georgehrke commented on August 23, 2024

Right now I am unable to view my calendar. Is there a workaround that lets me use the calendar again and keeping the synchronization with the phone working?

You have to remove the entry with invalid data from your database

Is anyone working on this issue?

Yes, but it's a lot of work for one developer. :(

I'll take a look at this issue later today

from apps.

jkow avatar jkow commented on August 23, 2024

You have to remove the entry with invalid data from your database

As I didn't know which entry (if any) was invalid, I just bulk removed a bunch of entries that I didn't need anymore. Now the remaining entries show up in the calender view BUT synchronization with my phone (Android, CalDAV) still doesn't do anything in either direction. To ensure it's not the Android app screwing up I added the calender to an iPhone and it doesn't show their either. Another calender from the same owncloud installation is being synchronized correctly.

Is anyone working on this issue?
Yes, but it's a lot of work for one developer. :(

Wow - I didn't know there's only one person working on owncloud. Thumbs up, very good job so far! I thought I saw more of you hanging around at the LinuxTag, though. ;-)

I thought about looking into it myself, so maybe you can give me a hint on where to look? Is there any documentation of the architecture?

from apps.

georgehrke avatar georgehrke commented on August 23, 2024

Wow - I didn't know there's only one person working on owncloud.

I was talking about the calendar app ;)

from apps.

georgehrke avatar georgehrke commented on August 23, 2024

Would you mind testing this patch?

https://gist.github.com/georgehrke/5999629

from apps.

georgehrke avatar georgehrke commented on August 23, 2024

As I didn't know which entry (if any) was invalid, I just bulk removed a bunch of entries that I didn't need anymore. Now the remaining entries show up in the calender view BUT synchronization with my phone (Android, CalDAV) still doesn't do anything in either direction. To ensure it's not the Android app screwing up I added the calender to an iPhone and it doesn't show their either. Another calender from the same owncloud installation is being synchronized correctly.

Have you tried to increase the ctag of the calendar that fails to synchronize?
(ctag in oc_clndr_calendar)

from apps.

jkow avatar jkow commented on August 23, 2024

Have you tried to increase the ctag of the calendar that fails to synchronize?

Not yet. That marks the calendar as having changed?

I'll try increasing the ctag as well as your patch tonight when I'm at home. Thanks for your support!

from apps.

georgehrke avatar georgehrke commented on August 23, 2024

Not yet. That marks the calendar as having changed?

Exactly

from apps.

georgehrke avatar georgehrke commented on August 23, 2024

others are welcome to test this patch as well :)

from apps.

jkow avatar jkow commented on August 23, 2024

I applied the patch and incremented the ctag, but the calendar is still not being synchronized. Maybe that is a different problem, though. Any hints on how to get further debugging info on that? owncloud.log doesn't show anything that seems relevant, even with loglevel set to DEBUG.

The issue of the calender not showing at all in Owncloud I had worked around by deleting some entries, so I am not able to reproduce that right now. But the patch didn't make things worse either. :-)

from apps.

jkow avatar jkow commented on August 23, 2024

Just FYI, probably not related to this ticket's description: To work around the synchronization problem which I described in my previous comment: I created a new calendar in owncloud and moved all out of date entries from the broken calendar to the new calendar in the database and updated the ctag for both calendars. To my surprise both calendars where being synchronized just fine after that. I moved the remaining entries to the new calendar and synchronization is still working after that. So, without really changing anything, the synchronization problem vanished for me.

from apps.

 avatar commented on August 23, 2024

After further investigation of a problem I experienced, I found this issue. This should be mostly fixed since owncloud/calendar#234

On a semi-related note, how would you feel about a little more debug information @georgehrke ?

--- a/lib/app.php
+++ b/lib/app.php
@@ -512,7 +512,7 @@ class OC_Calendar_App{
                        if(isset($event['uri'])){
                                $uid = $event['uri'];
                        }
-                       \OCP\Util::writeLog('calendar', 'Event (' . $uid . ') contains invalid data!',\OCP\Util::WARN);
+                       \OCP\Util::writeLog('calendar', 'Event (' . $uid . ') contains invalid data: ' . $e->getMessage(), \OCP\Util::WARN);

Adding this led me to the underlying cause: "contains invalid data: 00001231T000000Z is not a valid \DateTime or Date string", which seems to be some kind of Google Calendar quirk.

from apps.

icewind1991 avatar icewind1991 commented on August 23, 2024

If this issue is still valid please reopen in the calendar repo

from apps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.