From 22e4f295556fdd4c25cf43983a56ff74acab7739 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 20 Mar 2024 14:46:07 +0100 Subject: working report calendar-multiget --- aero-dav/src/caldecoder.rs | 4 ++-- aero-dav/src/xml.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'aero-dav') diff --git a/aero-dav/src/caldecoder.rs b/aero-dav/src/caldecoder.rs index f92cf09..008668e 100644 --- a/aero-dav/src/caldecoder.rs +++ b/aero-dav/src/caldecoder.rs @@ -69,7 +69,7 @@ impl QRead> for CalendarQuery { impl QRead> for CalendarMultiget { async fn qread(xml: &mut Reader) -> Result { - xml.open(CAL_URN, "free-busy-query").await?; + xml.open(CAL_URN, "calendar-multiget").await?; let mut selector = None; let mut href = Vec::new(); @@ -93,7 +93,7 @@ impl QRead> for CalendarMultiget { impl QRead for FreeBusyQuery { async fn qread(xml: &mut Reader) -> Result { - xml.open(CAL_URN, "calendar-multiple-get").await?; + xml.open(CAL_URN, "free-busy-query").await?; let range = xml.find().await?; xml.close().await?; Ok(FreeBusyQuery(range)) diff --git a/aero-dav/src/xml.rs b/aero-dav/src/xml.rs index 020ee6c..d57093e 100644 --- a/aero-dav/src/xml.rs +++ b/aero-dav/src/xml.rs @@ -259,6 +259,7 @@ impl Reader { } pub async fn open_start(&mut self, ns: &[u8], key: &str) -> Result, ParsingError> { + //println!("try open start tag {:?}, on {:?}", key, self.peek()); let evt = match self.peek() { Event::Start(_) if self.is_tag(ns, key) => self.next().await?, _ => return Err(ParsingError::Recoverable), -- cgit v1.2.3