Gentlemen,
I am trying to access a calendar of the user gazda using ical4j 1.0.1 Java
client library.
The SOGo instance I am accessing is version 1.3.9.
Here is the piece of java code:
CompatibilityHints.setHintEnabled(CompatibilityHints.KEY_RELAXED_UNFOLDING,
true);
CompatibilityHints.setHintEnabled(CompatibilityHints.KEY_RELAXED_PARSING,
true);
CompatibilityHints.setHintEnabled(CompatibilityHints.KEY_RELAXED_VALIDATION,
true);
URL url = new URL("https", "sogo.mycompany.com", -1, "/");
CalDavCalendarStore store = new
CalDavCalendarStore("-//MacTI//WOCal//EN", url, new PathResolver() {
@Override
public String getPrincipalPath(String username) {
return "/SOGo/dav/" + username + "/";
}
@Override
public String getUserPath(String username) {
return "/SOGo/dav/" + username + "/";
});
store.connect("gazda", "********".toCharArray());
CalDavCalendarCollection col =
store.getCollection("/SOGo/dav/gazda/Calendar/personal/");
The problem is that store.getCollection() internally tries to check if the
collection exists with a GET request which fails. Here is the relevant piece of
SOGo log:
192.168.0.1 - - [29/Nov/2011:10:53:41 GMT] "PROPFIND /SOGo/dav/gazda/ HTTP/1.1"
401 0/90 0.013 - - 0
192.168.0.1 - - [29/Nov/2011:10:53:41 GMT] "PROPFIND /SOGo/dav/gazda/ HTTP/1.1"
207 593/90 0.011 - - 0
192.168.0.1 - - [29/Nov/2011:10:53:41 GMT] "GET
/SOGo/dav/gazda/Calendar/personal/ HTTP/1.1" 401 0/0 0.005 - - 0
192.168.0.1 - - [29/Nov/2011:10:53:41 GMT] "GET
/SOGo/dav/gazda/Calendar/personal/ HTTP/1.1" 501 191/0 0.013 - - 0
The question is: Who is wrong? ical4j using GET or SOGo replying 501?
The whole thing works if I comment out the GET request in the ical4j code.
Thanks in advance,
Gazda
--
[email protected]
https://inverse.ca/sogo/lists