Giter VIP home page Giter VIP logo

Comments (4)

sedenardi avatar sedenardi commented on July 23, 2024

I'm having trouble understanding the problem. If you have events in the future, but none in the past, and set your iPhone to only sync the calendar in the last 3 months, wouldn't it be correct to not show any appointments anymore?

from caldav-adapter.

4myhealth avatar 4myhealth commented on July 23, 2024

to avoid loading the complete calendar, you can set your phone to sync only with last 3 months + all future events.
in that case, the phone shows not a single event (i have events in the past and future.).

what i found, the phone loads the xml with the list of events for given calender or daterange. after the list received the phone loads every single event for detailed information. in case of getEventsForCalender it works fine. in case of getEventsByDate the phone does not load the single events for detailed information. i looked at the response and found a difference i mentioned in my first comment.

i could provide some screenshots if you want me too :)

from caldav-adapter.

HeikoTheissen avatar HeikoTheissen commented on July 23, 2024

The problem is with the parsing of the request

<?xml version="1.0" encoding="UTF-8"?>
<L:calendar-query xmlns:L="urn:ietf:params:xml:ns:caldav">
 <D:prop xmlns:D="DAV:">
  <D:getcontenttype/>
  <D:getetag/>
  <L:calendar-data/>
 </D:prop>
 <L:filter>
  <L:comp-filter name="VCALENDAR">
   <L:comp-filter name="VEVENT">
    <L:time-range start="..." end="..."/>
   </L:comp-filter>
  </L:comp-filter>
 </L:filter>
</L:calendar-query>

The children of the calendar-query element are overlooked by the statement

xml.getWithChildren('/CAL:calendar-query/D:prop', ctx.request.xml);

because the getWithChildren method is "hardwired" to the path /D:propfind/D:prop, see here.

from caldav-adapter.

4myhealth avatar 4myhealth commented on July 23, 2024

thanks for fixing! works fine now! <3

from caldav-adapter.

Related Issues (11)

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.