View Issue Details

IDProjectCategoryView StatusLast Update
0002259SOGoBackend Calendarpublic2013-06-25 15:32
ReporterMarten Gajda Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version2.0.4b 
Summary0002259: some collections always return getctag -1
Description

Some collections on sogo-demo.inverse.ca return "-1" for every getctag request.

Sending this request:

<?xml version="1.0" encoding="utf-8" ?>
<A:propfind xmlns:B="http://calendarserver.org/ns/&quot; xmlns:A="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<A:prop>
<B:getctag/>
<C:supported-calendar-component-set/>
<A:supported-report-set/>
</A:prop>
</A:propfind>

returns

<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:b="urn:ietf:params:xml:ns:caldav" xmlns:a="http://calendarserver.org/ns/&quot; xmlns:D="DAV:">
<D:response>
<D:href>/SOGo/dav/sogo1/Calendar/1289-512E7180-29-AB173E0/</D:href>
<D:propstat>
<D:status>HTTP/1.1 200 OK</D:status>
<D:prop>
<a:getctag>-1</a:getctag>
<n1:supported-calendar-component-set xmlns:n1="urn:ietf:params:xml:ns:caldav" xmlns:D="DAV:">
<n1:comp name="VEVENT"/>
<n1:comp name="VTODO"/>
</n1:supported-calendar-component-set>
<D:supported-report-set xmlns:n2="urn:inverse:params:xml:ns:inverse-dav" xmlns:n3="urn:ietf:params:xml:ns:carddav" xmlns:D="DAV:" xmlns:n1="urn:ietf:params:xml:ns:caldav">
<D:supported-report>
<D:report>
<n1:calendar-multiget/>
</D:report>
</D:supported-report>
<D:supported-report>
<D:report>
<n1:calendar-query/>
</D:report>
</D:supported-report>
<D:supported-report>
<D:report>
<n2:acl-query/>
</D:report>
</D:supported-report>
<D:supported-report>
<D:report>
<D:sync-collection/>
</D:report>
</D:supported-report>
<D:supported-report>
<D:report>
<D:expand-property/>
</D:report>
</D:supported-report>
<D:supported-report>
<D:report>
<n3:addressbook-query/>
</D:report>
</D:supported-report>
</D:supported-report-set>
</D:prop>
</D:propstat>
</D:response>
</D:multistatus>

Not all collections are affected. I couldn't see any pattern.

TagsNo tags attached.

Activities

ludovic

ludovic

2013-06-25 14:54

administrator   ~0005695

If you look at the code:

  • (NSString ) davCollectionTag
    {
    NSCalendarDate
    lmDate;

    lmDate = [[self ocsFolder] lastModificationDate];

    return [NSString stringWithFormat: @"%d",
    (lmDate ? (int)[lmDate timeIntervalSince1970]
    : -1)];
    }

So that will happen if you have a new collection with NO items in it.

What's the problem with returning -1?

Marten Gajda

Marten Gajda

2013-06-25 15:29

reporter   ~0005701

Ah, ok. That makes sense. I guess it's working as intended in that case.

Sorry, for not putting more time into investigation of this "issue".

I guess you can close this.

ludovic

ludovic

2013-06-25 15:32

administrator   ~0005704

Closing, not a bug.

Issue History

Date Modified Username Field Change
2013-02-28 17:30 Marten Gajda New Issue
2013-06-25 14:54 ludovic Note Added: 0005695
2013-06-25 15:29 Marten Gajda Note Added: 0005701
2013-06-25 15:32 ludovic Note Added: 0005704
2013-06-25 15:32 ludovic Status new => closed
2013-06-25 15:32 ludovic Resolution open => no change required