WebDAV permissions and logging (closes #1362)
This commit is contained in:
@@ -18,6 +18,7 @@ use calcard::{
|
||||
},
|
||||
};
|
||||
use chrono::{DateTime, TimeZone};
|
||||
use compact_str::ToCompactString;
|
||||
use dav_proto::schema::property::TimeRange;
|
||||
use std::str::FromStr;
|
||||
use store::{
|
||||
@@ -123,8 +124,17 @@ impl CalendarEventData {
|
||||
});
|
||||
}
|
||||
|
||||
for error in expanded.errors {
|
||||
let todo = "log me";
|
||||
if !expanded.errors.is_empty() {
|
||||
trc::event!(
|
||||
Calendar(trc::CalendarEvent::RuleExpansionError),
|
||||
Reason = expanded
|
||||
.errors
|
||||
.into_iter()
|
||||
.map(|e| e.error.to_compact_string())
|
||||
.collect::<Vec<_>>(),
|
||||
Details = ical.to_string(),
|
||||
Limit = max_expansions,
|
||||
);
|
||||
}
|
||||
|
||||
CalendarEventData {
|
||||
|
||||
@@ -52,6 +52,15 @@ impl DavResourceName {
|
||||
DavResourceName::Principal => "/dav/pal/",
|
||||
}
|
||||
}
|
||||
|
||||
pub fn name(&self) -> &'static str {
|
||||
match self {
|
||||
DavResourceName::Card => "CardDAV",
|
||||
DavResourceName::Cal => "CalDAV",
|
||||
DavResourceName::File => "WebDAV",
|
||||
DavResourceName::Principal => "Principal",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<DavResourceName> for Collection {
|
||||
|
||||
Reference in New Issue
Block a user