My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Last 30 days

  • Dec 15, 2009
    r181 (fix moved repos httpclient-3.1.0 to 3.1) committed by robipolli   -   fix moved repos httpclient-3.1.0 to 3.1
    fix moved repos httpclient-3.1.0 to 3.1

Earlier this year

  • Nov 19, 2009
    issue 33 (GCalDAVCalendarCollectionTest.java fails because of wrong ex...) reported by tmende   -   When i execute GCalDAVCalendarCollectionTest, testAddRemove fails with the exception given below. testAddRemove expects a ResourceNotFoundException exception, and this exception is correctly thrown in getETag. However, the "catch (Exception e)" in getETags catches this exception and rethrows it as a CalDAV4JException exception. The attached patch fixes this problem, and GCalDAVCalendarCollectionTest.testAddRemove successfully passes. org.osaf.caldav4j.CalDAV4JException: Problem executing get method at org.osaf.caldav4j.CalDAVCalendarCollection.getETag(CalDAVCalendarCollection.java:786) at org.osaf.caldav4j.CalDAVCalendarCollection.getCalDAVResource(CalDAVCalendarCollection.java:665) at org.osaf.caldav4j.CalDAVCalendarCollection.getCalendarByPath(CalDAVCalendarCollection.java:135) at org.osaf.caldav4j.google.GCalDAVCalendarCollectionTest.testAddNewRemove(GCalDAVCalendarCollectionTest.java:257) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:108) at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:42) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:165) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:105) Caused by: org.osaf.caldav4j.ResourceNotFoundException: Could not find resource for the PATH '/calendar/dav/tmende@informatik.uni-bremen.de/events/NEW_UID.ics' at org.osaf.caldav4j.CalDAVCalendarCollection.getETag(CalDAVCalendarCollection.java:776) ... 26 more
    When i execute GCalDAVCalendarCollectionTest, testAddRemove fails with the exception given below. testAddRemove expects a ResourceNotFoundException exception, and this exception is correctly thrown in getETag. However, the "catch (Exception e)" in getETags catches this exception and rethrows it as a CalDAV4JException exception. The attached patch fixes this problem, and GCalDAVCalendarCollectionTest.testAddRemove successfully passes. org.osaf.caldav4j.CalDAV4JException: Problem executing get method at org.osaf.caldav4j.CalDAVCalendarCollection.getETag(CalDAVCalendarCollection.java:786) at org.osaf.caldav4j.CalDAVCalendarCollection.getCalDAVResource(CalDAVCalendarCollection.java:665) at org.osaf.caldav4j.CalDAVCalendarCollection.getCalendarByPath(CalDAVCalendarCollection.java:135) at org.osaf.caldav4j.google.GCalDAVCalendarCollectionTest.testAddNewRemove(GCalDAVCalendarCollectionTest.java:257) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:108) at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:42) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:165) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:105) Caused by: org.osaf.caldav4j.ResourceNotFoundException: Could not find resource for the PATH '/calendar/dav/tmende@informatik.uni-bremen.de/events/NEW_UID.ics' at org.osaf.caldav4j.CalDAVCalendarCollection.getETag(CalDAVCalendarCollection.java:776) ... 26 more
  • Nov 19, 2009
    issue 32 (Fields in GCalDAVCalendarCollectionTest hide Fields in BaseT...) reported by tme...@informatik.uni-bremen.de   -   When i execute GCalDAVCalendarCollectionTest, i get a NullPointerException, as shown below. The problem is that COLLECTION_PATH in GCalDAVCalendarCollectionTest hides the field COLLECTION_PATH defined in BaseTestCase. Same problem for httpClient and methodFactory. The attached patch fixes the problem, so that running GCalDAVCalendarCollectionTest does not end in an NPE. java.lang.NullPointerException at org.osaf.caldav4j.CalDAVCalendarCollectionBase.setCalendarCollectionRoot(CalDAVCalendarCollectionBase.java:64) at org.osaf.caldav4j.CalDAVCalendarCollection.<init>(CalDAVCalendarCollection.java:102) at org.osaf.caldav4j.google.GCalDAVCalendarCollectionTest.createCalDAVCalendarCollection(GCalDAVCalendarCollectionTest.java:393) at org.osaf.caldav4j.google.GCalDAVCalendarCollectionTest.testAddNewRemove(GCalDAVCalendarCollectionTest.java:254) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:108) at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:42) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:165) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:105)
    When i execute GCalDAVCalendarCollectionTest, i get a NullPointerException, as shown below. The problem is that COLLECTION_PATH in GCalDAVCalendarCollectionTest hides the field COLLECTION_PATH defined in BaseTestCase. Same problem for httpClient and methodFactory. The attached patch fixes the problem, so that running GCalDAVCalendarCollectionTest does not end in an NPE. java.lang.NullPointerException at org.osaf.caldav4j.CalDAVCalendarCollectionBase.setCalendarCollectionRoot(CalDAVCalendarCollectionBase.java:64) at org.osaf.caldav4j.CalDAVCalendarCollection.<init>(CalDAVCalendarCollection.java:102) at org.osaf.caldav4j.google.GCalDAVCalendarCollectionTest.createCalDAVCalendarCollection(GCalDAVCalendarCollectionTest.java:393) at org.osaf.caldav4j.google.GCalDAVCalendarCollectionTest.testAddNewRemove(GCalDAVCalendarCollectionTest.java:254) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:108) at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:42) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:165) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:105)
  • Nov 03, 2009
    Roadmap (What's next for CalDAV4j?) Wiki page commented on by kundanvyas   -   I plan to use the CALDAV4j libraries for building a functionality within my product. Where can i find more information on licensing details related to the usage of this library. Can you give me some pointers?
    I plan to use the CALDAV4j libraries for building a functionality within my product. Where can i find more information on licensing details related to the usage of this library. Can you give me some pointers?
  • Oct 13, 2009
    issue 31 (Forced 'Content-type' header.) reported by dgomezbrito   -   Hello, The method addRequestHeaders in class CalDAVReportMethod always includes a 'Content-type' header, even if it is already present. In that scenario, the resulting request will have two 'Content-Type' headers. Some servers will return a '400 Bad request' response.
    Hello, The method addRequestHeaders in class CalDAVReportMethod always includes a 'Content-type' header, even if it is already present. In that scenario, the resulting request will have two 'Content-Type' headers. Some servers will return a '400 Bad request' response.
  • Sep 17, 2009
    issue 29 (How to use caldav4j to control access right ?) commented on by yinyuanqings   -   Thanks for the update ! I'll test it futher!
    Thanks for the update ! I'll test it futher!
  • Sep 17, 2009
    issue 30 (Does caldav4j lib now supports to PROPPATCH method ?) commented on by yinyuanqings   -   Yes you're right ... to update ACL , need to issue ACL method, not PROPATCH , I was wrong about that before.
    Yes you're right ... to update ACL , need to issue ACL method, not PROPATCH , I was wrong about that before.
  • Sep 16, 2009
    issue 27 (iCal4J-Version) commented on by wu.phil   -   As of Sept 17, 2009 these are the versions I used to get a simple test running: caldav4j-0.5.jar ical4j-1.0-rc2-SNAPSHOT.jar commons-httpclient-3.0.jar
    As of Sept 17, 2009 these are the versions I used to get a simple test running: caldav4j-0.5.jar ical4j-1.0-rc2-SNAPSHOT.jar commons-httpclient-3.0.jar
  • Sep 07, 2009
    r180 (update to latest ical4j) committed by robipolli   -   update to latest ical4j
    update to latest ical4j
  • Aug 24, 2009
    issue 30 (Does caldav4j lib now supports to PROPPATCH method ?) Labels changed by robipolli   -   it seems that webdav doesn't support PROPPATCH for ACLs...can you provide an example?
    Labels: Priority-Low Priority-Medium
    it seems that webdav doesn't support PROPPATCH for ACLs...can you provide an example?
    Labels: Priority-Low Priority-Medium
  • Aug 24, 2009
    r179 (name setter to ParamFilter and more flexible query on Genera...) committed by robipolli   -   name setter to ParamFilter and more flexible query on GenerateQuery
    name setter to ParamFilter and more flexible query on GenerateQuery
  • Aug 24, 2009
    issue 3 (Methods for finding calendars) commented on by robipolli   -   thx! I'll put something like that in the GenerateQuery test. The game is just add getter/setter and create ae ParamFilterTest like public class ParamFilterTest { ... testSimpleConstructor() { ParamFilter p = new ParamFilter("C"); p.validate(); } .. testSetter() { ParamFilter p = new ParamFilter("C"); p.setName("newname"); p.validate(); } } if you like to join the project you should start with posting junit+patch to caldav4j list.
    thx! I'll put something like that in the GenerateQuery test. The game is just add getter/setter and create ae ParamFilterTest like public class ParamFilterTest { ... testSimpleConstructor() { ParamFilter p = new ParamFilter("C"); p.validate(); } .. testSetter() { ParamFilter p = new ParamFilter("C"); p.setName("newname"); p.validate(); } } if you like to join the project you should start with posting junit+patch to caldav4j list.
  • Aug 24, 2009
    issue 29 (How to use caldav4j to control access right ?) commented on by robipolli   -   ACL /ucaldav/user/g@r.it/calendar <?xml version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:"> <D:ace> <D:principal> <D:href>/principals/users/g@r.it</D:href> </D:principal> <D:grant> <D:privilege><D:read/></D:privilege> <D:privilege><D:write/></D:privilege> </D:grant> </D:ace> </D:acl> further info: http://www.webdav.org/specs/rfc3744.html
    ACL /ucaldav/user/g@r.it/calendar <?xml version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:"> <D:ace> <D:principal> <D:href>/principals/users/g@r.it</D:href> </D:principal> <D:grant> <D:privilege><D:read/></D:privilege> <D:privilege><D:write/></D:privilege> </D:grant> </D:ace> </D:acl> further info: http://www.webdav.org/specs/rfc3744.html
  • Aug 24, 2009
    issue 3 (Methods for finding calendars) commented on by cteaudaxis   -   I don't really know where/how to commit (what is my login ? cteaudaxis not working). Nevertheless, after adding the getter and setter for name, this is the method I use, that can be used as ParamFilterTest: /** * * @param property The Property name to query (i.e: Property.ORGANIZER) * @param param The Parameter to query (i.e: Parameter.SENT-BY) * @param textToMatch (i.e: "mailto:lisa@caldav4j.org") * @return <p>A query matching a given text for the given Property or Parameter of a VEVENT * (With priority to the parameter if provided !)</p> */ protected CalendarQuery getQueryForPropertyAndParameter(String property, String param, String textToMatch){ CalendarQuery query = null; try { //Generate a basic query GenerateQuery genQuery = new GenerateQuery(); genQuery.setFilterComponent(Component.VEVENT); query = genQuery.generateQuery(); CompFilter vEventCompFilter = query.getCompFilter(); //Create the Property Filter with text match to add PropFilter propFilter = new PropFilter("C"); propFilter.setName(property); if(!StringUtils.isEmpty(param)){ ParamFilter paramFilter = new ParamFilter("C"); paramFilter.setName(param); paramFilter.setTextMatch(new TextMatch("C", null, null, null, textToMatch)); propFilter.addParamFilter(paramFilter); }else{ //filter on property if parameter is empty propFilter.setTextMatch(new TextMatch("C", null, null, null, textToMatch)); } //Add the Property filter vEventCompFilter.addPropFilter(propFilter); query.setCompFilter(vEventCompFilter); //Print the query //System.out.println(GenerateQuery.printQuery(query)); } catch (CalDAV4JException e) { log.error(e.getMessage()); } return query; }
    I don't really know where/how to commit (what is my login ? cteaudaxis not working). Nevertheless, after adding the getter and setter for name, this is the method I use, that can be used as ParamFilterTest: /** * * @param property The Property name to query (i.e: Property.ORGANIZER) * @param param The Parameter to query (i.e: Parameter.SENT-BY) * @param textToMatch (i.e: "mailto:lisa@caldav4j.org") * @return <p>A query matching a given text for the given Property or Parameter of a VEVENT * (With priority to the parameter if provided !)</p> */ protected CalendarQuery getQueryForPropertyAndParameter(String property, String param, String textToMatch){ CalendarQuery query = null; try { //Generate a basic query GenerateQuery genQuery = new GenerateQuery(); genQuery.setFilterComponent(Component.VEVENT); query = genQuery.generateQuery(); CompFilter vEventCompFilter = query.getCompFilter(); //Create the Property Filter with text match to add PropFilter propFilter = new PropFilter("C"); propFilter.setName(property); if(!StringUtils.isEmpty(param)){ ParamFilter paramFilter = new ParamFilter("C"); paramFilter.setName(param); paramFilter.setTextMatch(new TextMatch("C", null, null, null, textToMatch)); propFilter.addParamFilter(paramFilter); }else{ //filter on property if parameter is empty propFilter.setTextMatch(new TextMatch("C", null, null, null, textToMatch)); } //Add the Property filter vEventCompFilter.addPropFilter(propFilter); query.setCompFilter(vEventCompFilter); //Print the query //System.out.println(GenerateQuery.printQuery(query)); } catch (CalDAV4JException e) { log.error(e.getMessage()); } return query; }
  • Aug 24, 2009
    FAQ (FAQ) Wiki page edited by robipolli   -   Revision r178 added how to contribute
    Revision r178 added how to contribute
  • Aug 24, 2009
    issue 3 (Methods for finding calendars) Status changed by robipolli   -   It seems it's missing. Can you create a test method ParamFilterTest too? LetMeKnow+Peace, R.
    Status: Accepted
    It seems it's missing. Can you create a test method ParamFilterTest too? LetMeKnow+Peace, R.
    Status: Accepted
  • Aug 24, 2009
    issue 28 (Fail to compile org.osaf.caldav4j.BaseTestCase ) Status changed by robipolli   -  
    Status: Invalid
    Status: Invalid
  • Aug 24, 2009
    issue 30 (Does caldav4j lib now supports to PROPPATCH method ?) Labels changed by robipolli   -   you're welcome to provide that feature. It should be not difficult. follow these steps: 1- write down a PROPPATCH query you want to do 2- test it with curl against your favourite caldav server if it works, then you can implement it with java: 1- writing the test case 2- then writing the code. plenty of information is in the code.
    Labels: Type-Enhancement Type-Defect
    you're welcome to provide that feature. It should be not difficult. follow these steps: 1- write down a PROPPATCH query you want to do 2- test it with curl against your favourite caldav server if it works, then you can implement it with java: 1- writing the test case 2- then writing the code. plenty of information is in the code.
    Labels: Type-Enhancement Type-Defect
  • Aug 24, 2009
    Roadmap (What's next for CalDAV4j?) Wiki page edited by robipolli   -   Revision r177 Edited wiki page through web user interface.
    Revision r177 Edited wiki page through web user interface.
  • Aug 24, 2009
    Roadmap (What's next for CalDAV4j?) Wiki page edited by robipolli   -   Revision r176 Edited wiki page through web user interface.
    Revision r176 Edited wiki page through web user interface.
  • Aug 24, 2009
    CreateCaldavQuery (How to create caldav queries in 5minutes) Wiki page commented on by robipolli   -   Changing ACL is not a CalendarQuery.
    Changing ACL is not a CalendarQuery.
  • Aug 20, 2009
    issue 30 (Does caldav4j lib now supports to PROPPATCH method ?) reported by yinyuanqings   -   As topic, now I want to modify ACL of a URL, read the webdav spec that i need to issue to PROPPATCH method request to caldav server, but I don't see such method definition in caldav4j source yet. Will such function be implemented in the furture ?
    As topic, now I want to modify ACL of a URL, read the webdav spec that i need to issue to PROPPATCH method request to caldav server, but I don't see such method definition in caldav4j source yet. Will such function be implemented in the furture ?
  • Aug 20, 2009
    issue 29 (How to use caldav4j to control access right ?) commented on by yinyuanqings   -   Hi, I has resolved the error of 0 content-length, it's because the webdav library I include in the classpath is not for apache httpclient 3.x. But what's more, I want to know is there an example can show me how to post a new ACL to caldav server?
    Hi, I has resolved the error of 0 content-length, it's because the webdav library I include in the classpath is not for apache httpclient 3.x. But what's more, I want to know is there an example can show me how to post a new ACL to caldav server?
  • Aug 19, 2009
    issue 29 (How to use caldav4j to control access right ?) commented on by yinyuanqings   -   Hi, Sorry for the endless comment :-) And I found one thing too strange ... that the tomcat log shows the http request content-length = -1 , and I do not see the content-length appears in the http request header, is the content length should be auto-included in request header ???
    Hi, Sorry for the endless comment :-) And I found one thing too strange ... that the tomcat log shows the http request content-length = -1 , and I do not see the content-length appears in the http request header, is the content length should be auto-included in request header ???
  • Aug 19, 2009
    issue 29 (How to use caldav4j to control access right ?) commented on by yinyuanqings   -   Hi, I find the problem maybe the request DOM, below is the log in tomcat: Pls note that 'type=propAll', I think something maybe wrong because I suppose to query ACL and that's what it appears in the request text in Comment2 above Tomcat log: [java] 18:00:19,390 DEBUG [PropFindMethod] PropFindMethod: doMethod [java] 18:00:19,390 DEBUG [PropFindMethod] PropFindMethod: depth=0 [java] 18:00:19,390 DEBUG [PropFindMethod] type=propAll <-Note this, I'm curious why it's 'propAll' ? it should be specified to ACL/Owner/privilege- sets I'm querying about ... [java] 18:00:19,390 DEBUG [CaldavBWServlet] setStatus(207) [java] 18:00:19,390 DEBUG [CaldavBWServlet] getWriter called [java] 18:00:19,390 DEBUG [PropFindMethod] uri: /user/vbede/collection [java] 18:00:19,390 DEBUG [PropFindMethod] resourceUri: /user/vbede/collect ion
    Hi, I find the problem maybe the request DOM, below is the log in tomcat: Pls note that 'type=propAll', I think something maybe wrong because I suppose to query ACL and that's what it appears in the request text in Comment2 above Tomcat log: [java] 18:00:19,390 DEBUG [PropFindMethod] PropFindMethod: doMethod [java] 18:00:19,390 DEBUG [PropFindMethod] PropFindMethod: depth=0 [java] 18:00:19,390 DEBUG [PropFindMethod] type=propAll <-Note this, I'm curious why it's 'propAll' ? it should be specified to ACL/Owner/privilege- sets I'm querying about ... [java] 18:00:19,390 DEBUG [CaldavBWServlet] setStatus(207) [java] 18:00:19,390 DEBUG [CaldavBWServlet] getWriter called [java] 18:00:19,390 DEBUG [PropFindMethod] uri: /user/vbede/collection [java] 18:00:19,390 DEBUG [PropFindMethod] resourceUri: /user/vbede/collect ion
  • Aug 19, 2009
    issue 29 (How to use caldav4j to control access right ?) commented on by yinyuanqings   -   More info. based on comment2 .. That is, in the request text I don't see the path I'm requesting ACL for, isn't the path should be included in the request header ? Although the path can't been seen, from tomcat's log I can see the request do include a URI path, maybe it's just because I don't know how to extract the path from the PropFindMethod ...
    More info. based on comment2 .. That is, in the request text I don't see the path I'm requesting ACL for, isn't the path should be included in the request header ? Although the path can't been seen, from tomcat's log I can see the request do include a URI path, maybe it's just because I don't know how to extract the path from the PropFindMethod ...
  • Aug 19, 2009
    issue 29 (How to use caldav4j to control access right ?) commented on by yinyuanqings   -   Hi, I run the PropFindTest.java on my PC, the server is bedework at localhost:8080, but what result looks pretty strange, I added some codes in getACL method to extract the text of entire request : <----Request-----> Authorization=Basic dmJlZGU6YmVkZXdvcms= Content-Type=text/xml; charset=utf-8 User-Agent=Jakarta Commons-HttpClient/3.1 Host=localhost:8080 Depth=0 <?xml version="1.0"?> <D:propfind xmlns:D="DAV:"> <D:prop> <D:acl/> <D:owner/> <D:supported-privilege-set/> <D:current-user-privilege-set/> </D:prop> </D:propfind> And I got response which is not the resource I want, as see, I request (Or I think I'm requesting ACL/Owner/privilege-sets from the path) Here's the response: <------Response---------> <?xml version="1.0" encoding="UTF-8"?><multistatus xmlns="DAV:" xmlns:ns1="urn:ietf:params:xml:ns:caldav" xmlns:ns2="http://www.w3.org/2002/12/cal/ical#"> <response> <href>/ucaldav/user/vbede/collection/</href> <propstat> <prop> <getcontentlength>0</getcontentlength> <getlastmodified>Wednesday, 19 Auguest 2009 03:09:18 +0000</getlastmodified> <displayname>collection</displayname> <getetag>"20090819T030918Z-1"</getetag> <current-user-principal> <href>/ucaldav/principals/users/vbede</href> </current-user-principal> <resourcetype> <collection/> <ns1:calendar/> </resourcetype> </prop> <status>HTTP/1.1 200 ok</status> </propstat> </response> </multistatus> Would pls help to let me know what's wrong ?
    Hi, I run the PropFindTest.java on my PC, the server is bedework at localhost:8080, but what result looks pretty strange, I added some codes in getACL method to extract the text of entire request : <----Request-----> Authorization=Basic dmJlZGU6YmVkZXdvcms= Content-Type=text/xml; charset=utf-8 User-Agent=Jakarta Commons-HttpClient/3.1 Host=localhost:8080 Depth=0 <?xml version="1.0"?> <D:propfind xmlns:D="DAV:"> <D:prop> <D:acl/> <D:owner/> <D:supported-privilege-set/> <D:current-user-privilege-set/> </D:prop> </D:propfind> And I got response which is not the resource I want, as see, I request (Or I think I'm requesting ACL/Owner/privilege-sets from the path) Here's the response: <------Response---------> <?xml version="1.0" encoding="UTF-8"?><multistatus xmlns="DAV:" xmlns:ns1="urn:ietf:params:xml:ns:caldav" xmlns:ns2="http://www.w3.org/2002/12/cal/ical#"> <response> <href>/ucaldav/user/vbede/collection/</href> <propstat> <prop> <getcontentlength>0</getcontentlength> <getlastmodified>Wednesday, 19 Auguest 2009 03:09:18 +0000</getlastmodified> <displayname>collection</displayname> <getetag>"20090819T030918Z-1"</getetag> <current-user-principal> <href>/ucaldav/principals/users/vbede</href> </current-user-principal> <resourcetype> <collection/> <ns1:calendar/> </resourcetype> </prop> <status>HTTP/1.1 200 ok</status> </propstat> </response> </multistatus> Would pls help to let me know what's wrong ?
  • Aug 18, 2009
    issue 28 (Fail to compile org.osaf.caldav4j.BaseTestCase ) commented on by yinyuanqings   -   Thanks, it's sovled now
    Thanks, it's sovled now
  • Aug 18, 2009
    issue 3 (Methods for finding calendars) commented on by cteaudaxis   -   In fact, I made a mistake. In the above query, "SENT-BY" is not a Property, but a Paramerter of "ORGANIZER". So the query should look like <?xml version="1.0" encoding="utf-8" ?> <C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav"> <D:prop xmlns:D="DAV:"> <D:getetag/> <C:calendar-data/> </D:prop> <C:filter> <C:comp-filter name="VCALENDAR"> <C:comp-filter name="VEVENT"> <C:prop-filter name="ORGANIZER"> <C:param-filter name="SENT-BY"> <C:text-match collation="i;ascii-casemap"> mailto:lisa@example.com </C:text-match> </C:param-filter> </C:prop-filter> </C:comp-filter> </C:comp-filter> </C:filter> </C:calendar-query> I tried to use GenerateQuery as advised, but there is no getter/setter into Class ParamFilter for the variable "name"...Is it missing ? If I have this, I can create the necessary "ParamFilter".
    In fact, I made a mistake. In the above query, "SENT-BY" is not a Property, but a Paramerter of "ORGANIZER". So the query should look like <?xml version="1.0" encoding="utf-8" ?> <C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav"> <D:prop xmlns:D="DAV:"> <D:getetag/> <C:calendar-data/> </D:prop> <C:filter> <C:comp-filter name="VCALENDAR"> <C:comp-filter name="VEVENT"> <C:prop-filter name="ORGANIZER"> <C:param-filter name="SENT-BY"> <C:text-match collation="i;ascii-casemap"> mailto:lisa@example.com </C:text-match> </C:param-filter> </C:prop-filter> </C:comp-filter> </C:comp-filter> </C:filter> </C:calendar-query> I tried to use GenerateQuery as advised, but there is no getter/setter into Class ParamFilter for the variable "name"...Is it missing ? If I have this, I can create the necessary "ParamFilter".
  • Aug 18, 2009
    issue 3 (Methods for finding calendars) commented on by cteaudaxis   -   In fact, I made a mistake. In the above query, "SENT-BY" is not a Property, but a Paramerter of "ORGANIZER". So the query should look like <?xml version="1.0" encoding="utf-8" ?> <C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav"> <D:prop xmlns:D="DAV:"> <D:getetag/> <C:calendar-data/> </D:prop> <C:filter> <C:comp-filter name="VCALENDAR"> <C:comp-filter name="VEVENT"> <C:prop-filter name="ORGANIZER"> <C:param-filter name="ORGANIZER"> <C:text-match collation="i;ascii-casemap"> mailto:lisa@example.com </C:text-match> </C:param-filter> </C:prop-filter> </C:comp-filter> </C:comp-filter> </C:filter> </C:calendar-query> I tried to use GenerateQuery as advised, but there is no getter/setter into Class ParamFilter for the variable "name"...Is it missing ? If I have this, I can create the necessary "ParamFilter".
    In fact, I made a mistake. In the above query, "SENT-BY" is not a Property, but a Paramerter of "ORGANIZER". So the query should look like <?xml version="1.0" encoding="utf-8" ?> <C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav"> <D:prop xmlns:D="DAV:"> <D:getetag/> <C:calendar-data/> </D:prop> <C:filter> <C:comp-filter name="VCALENDAR"> <C:comp-filter name="VEVENT"> <C:prop-filter name="ORGANIZER"> <C:param-filter name="ORGANIZER"> <C:text-match collation="i;ascii-casemap"> mailto:lisa@example.com </C:text-match> </C:param-filter> </C:prop-filter> </C:comp-filter> </C:comp-filter> </C:filter> </C:calendar-query> I tried to use GenerateQuery as advised, but there is no getter/setter into Class ParamFilter for the variable "name"...Is it missing ? If I have this, I can create the necessary "ParamFilter".
  • Aug 17, 2009
    issue 9 (Connection and credentials check) changed by robipolli   -   I'll take a look asap. thx+Peace, R.
    Status: Accepted
    Labels: Priority-High Priority-Low
    I'll take a look asap. thx+Peace, R.
    Status: Accepted
    Labels: Priority-High Priority-Low
  • Aug 17, 2009
    issue 28 (Fail to compile org.osaf.caldav4j.BaseTestCase ) Labels changed by robipolli   -   addDescription is 0.6 stuff. anyway if you're building caldav4j trunk, then you don't need to include old caldav4j libs: you have to rebuild from scratch. let me know if it fixes. Peace, R.
    Labels: Type-Other Priority-Low OpSys-Windows Type-Defect Priority-Medium
    addDescription is 0.6 stuff. anyway if you're building caldav4j trunk, then you don't need to include old caldav4j libs: you have to rebuild from scratch. let me know if it fixes. Peace, R.
    Labels: Type-Other Priority-Low OpSys-Windows Type-Defect Priority-Medium
  • Aug 17, 2009
    issue 29 (How to use caldav4j to control access right ?) Labels changed by robipolli   -   There's something experimental in trunk.. it's a wrapper around slide webdav functionalities. Check the http://code.google.com/p/caldav4j/source/browse/trunk/src/test/java/org/osaf/caldav4j/methods/PropFindTest.java for the "donttestGetAcl*" methods.. if you want to help with ACL support pls write on caldav4j list and I can help... afaik with webdav you need always to send the whole ACI - so you need 1- to retrieve old ACI 2- modify ACI 3- send new ACI to caldav server let me know+Peace, R.
    Labels: Type-Enhancement Type-Defect
    There's something experimental in trunk.. it's a wrapper around slide webdav functionalities. Check the http://code.google.com/p/caldav4j/source/browse/trunk/src/test/java/org/osaf/caldav4j/methods/PropFindTest.java for the "donttestGetAcl*" methods.. if you want to help with ACL support pls write on caldav4j list and I can help... afaik with webdav you need always to send the whole ACI - so you need 1- to retrieve old ACI 2- modify ACI 3- send new ACI to caldav server let me know+Peace, R.
    Labels: Type-Enhancement Type-Defect
  • Aug 17, 2009
    issue 27 (iCal4J-Version) commented on by robipolli   -   see pom.xml : do you have any issues?
    see pom.xml : do you have any issues?
  • Aug 17, 2009
    issue 3 (Methods for finding calendars) commented on by robipolli   -   did you try with GenerateQuery ?
    did you try with GenerateQuery ?
  • Aug 16, 2009
    issue 29 (How to use caldav4j to control access right ?) reported by yinyuanqings   -   What I want is: have a calendar, and enable the owner to grant access right (read- only/read-write) to specified user, does caldav4j have such capacity in this moment ?
    What I want is: have a calendar, and enable the owner to grant access right (read- only/read-write) to specified user, does caldav4j have such capacity in this moment ?
  • Aug 16, 2009
    CreateCaldavQuery (How to create caldav queries in 5minutes) Wiki page commented on by yinyuanqings   -   How can I use CalDav4j package to perform calendar access control function ? What I really want is : user A create a calendar in server, and grant user B a read-only(or read-write) access right to the calendar.
    How can I use CalDav4j package to perform calendar access control function ? What I really want is : user A create a calendar in server, and grant user B a read-only(or read-write) access right to the calendar.
  • Aug 16, 2009
    issue 28 (Fail to compile org.osaf.caldav4j.BaseTestCase ) reported by yinyuanqings   -   I'm now tring to compile org.osaf.caldav4j.BaseTestCase on my PC with Windows XP. But found the method: ** protected void mkcalendar(String path) ** have a statement with 'symbol not found' error, reported by jdk 1.6 compiler, it's the statement: mk.addDescription(CALENDAR_DESCRIPTION, "en"); it seems the MkCalendarMethod class do not have a 'addDescription' method. What I include in the classpath is caldav4j-0.5.jar.
    I'm now tring to compile org.osaf.caldav4j.BaseTestCase on my PC with Windows XP. But found the method: ** protected void mkcalendar(String path) ** have a statement with 'symbol not found' error, reported by jdk 1.6 compiler, it's the statement: mk.addDescription(CALENDAR_DESCRIPTION, "en"); it seems the MkCalendarMethod class do not have a 'addDescription' method. What I include in the classpath is caldav4j-0.5.jar.
  • Aug 12, 2009
    issue 27 (iCal4J-Version) reported by Roland.S...@gmx.de   -   Hi, which version of iCal4J where used in calDAV4J-0.5? (e.g. in PutMethod.java)
    Hi, which version of iCal4J where used in calDAV4J-0.5? (e.g. in PutMethod.java)
  • Aug 11, 2009
    issue 9 (Connection and credentials check) commented on by cteaudaxis   -   Hi Guys, For this problem, I have implemented a check method that tries to get the requested calendar before doing anything and reports many kinds of Networking Exceptions. As a matter of fact, it would be great if this was done within the library This is what I do in my application (see attached) before any calendar manipulation
    Hi Guys, For this problem, I have implemented a check method that tries to get the requested calendar before doing anything and reports many kinds of Networking Exceptions. As a matter of fact, it would be great if this was done within the library This is what I do in my application (see attached) before any calendar manipulation
  • Aug 11, 2009
    issue 3 (Methods for finding calendars) commented on by cteaudaxis   -   Hi guys, I also faced the same problem. For the while, I just loop on all the calendars for a time-range and look up for the good SENT_BY...Very inefficient I know :( Generate such a query would be great. <?xml version="1.0" encoding="utf-8" ?> <C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav"> <D:prop xmlns:D="DAV:"> <D:getetag/> <C:calendar-data/> </D:prop> <C:filter> <C:comp-filter name="VCALENDAR"> <C:comp-filter name="VEVENT"> <C:prop-filter name="SENT-BY"> <C:text-match collation="i;ascii-casemap"> mailto:lisa@example.com </C:text-match> </C:prop-filter> </C:comp-filter> </C:comp-filter> </C:filter> </C:calendar-query>
    Hi guys, I also faced the same problem. For the while, I just loop on all the calendars for a time-range and look up for the good SENT_BY...Very inefficient I know :( Generate such a query would be great. <?xml version="1.0" encoding="utf-8" ?> <C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav"> <D:prop xmlns:D="DAV:"> <D:getetag/> <C:calendar-data/> </D:prop> <C:filter> <C:comp-filter name="VCALENDAR"> <C:comp-filter name="VEVENT"> <C:prop-filter name="SENT-BY"> <C:text-match collation="i;ascii-casemap"> mailto:lisa@example.com </C:text-match> </C:prop-filter> </C:comp-filter> </C:comp-filter> </C:filter> </C:calendar-query>
  • Aug 02, 2009
    FAQ (FAQ) Wiki page edited by robipolli   -   Revision r175 Edited wiki page through web user interface.
    Revision r175 Edited wiki page through web user interface.
  • Jul 21, 2009
    r174 (reorganized constants and fixed put method (ContentType was ...) committed by robipolli   -   reorganized constants and fixed put method (ContentType was missing)
    reorganized constants and fixed put method (ContentType was missing)
  • Jul 21, 2009
    r173 (s/webdavStatus/caldavStatus/ and more helper methods) committed by robipolli   -   s/webdavStatus/caldavStatus/ and more helper methods
    s/webdavStatus/caldavStatus/ and more helper methods
  • Jul 21, 2009
    r172 (added setRequestEntity(String s) setting content-type ) committed by robipolli   -   added setRequestEntity(String s) setting content-type
    added setRequestEntity(String s) setting content-type
  • Jul 16, 2009
    issue 26 (Problem (or help) connecting with bedework) commented on by as.landry   -   Helo I hav the same problem : addEvent works fine but this instruction : Calendar pippo = cdm.getCalendarForEventUID( ((HttpClient cdm.client),nve.getUid().getValue() ); i have an exception : Exception in thread "main" org.osaf.caldav4j.CalDAV4JException: Problem executing method at org.osaf.caldav4j.CalDAVCalendarCollection.getCalDAVResourceForEventUID(CalDAVCalendarCollection.java:642) at org.osaf.caldav4j.CalDAVCalendarCollection.getCalendarForEventUID(CalDAVCalendarCollection.java:123) at com.nqi.test.test3.main(test3.java:82) Caused by: java.lang.RuntimeException: java.lang.NullPointerException at org.osaf.caldav4j.util.XMLUtils.toPrettyXML(XMLUtils.java:96) at org.osaf.caldav4j.methods.CalDAVReportMethod.generateRequestBody(CalDAVReportMethod.java:133) at org.apache.webdav.lib.methods.XMLResponseMethodBase.getRequestContentLength(XMLResponseMethodBase.java:226) at org.apache.webdav.lib.methods.XMLResponseMethodBase.writeRequestBody(XMLResponseMethodBase.java:291) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.osaf.caldav4j.methods.HttpClient.executeMethod(HttpClient.java:103) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.osaf.caldav4j.CalDAVCalendarCollection.getCalDAVResourceForEventUID(CalDAVCalendarCollection.java:640) ... 2 more Caused by: java.lang.NullPointerException at org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer.java:687) at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:1239) at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:1307) at org.apache.xml.serialize.BaseMarkupSerializer.serialize(BaseMarkupSerializer.java:501) at org.osaf.caldav4j.util.XMLUtils.toPrettyXML(XMLUtils.java:94) ... 13 more Java Result: 1 I use Java 1.6 i don't now why he does'nt works , i use xercesImpl.jar . Maybe the problem com from this jar file. Help me !!!
    Helo I hav the same problem : addEvent works fine but this instruction : Calendar pippo = cdm.getCalendarForEventUID( ((HttpClient cdm.client),nve.getUid().getValue() ); i have an exception : Exception in thread "main" org.osaf.caldav4j.CalDAV4JException: Problem executing method at org.osaf.caldav4j.CalDAVCalendarCollection.getCalDAVResourceForEventUID(CalDAVCalendarCollection.java:642) at org.osaf.caldav4j.CalDAVCalendarCollection.getCalendarForEventUID(CalDAVCalendarCollection.java:123) at com.nqi.test.test3.main(test3.java:82) Caused by: java.lang.RuntimeException: java.lang.NullPointerException at org.osaf.caldav4j.util.XMLUtils.toPrettyXML(XMLUtils.java:96) at org.osaf.caldav4j.methods.CalDAVReportMethod.generateRequestBody(CalDAVReportMethod.java:133) at org.apache.webdav.lib.methods.XMLResponseMethodBase.getRequestContentLength(XMLResponseMethodBase.java:226) at org.apache.webdav.lib.methods.XMLResponseMethodBase.writeRequestBody(XMLResponseMethodBase.java:291) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.osaf.caldav4j.methods.HttpClient.executeMethod(HttpClient.java:103) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.osaf.caldav4j.CalDAVCalendarCollection.getCalDAVResourceForEventUID(CalDAVCalendarCollection.java:640) ... 2 more Caused by: java.lang.NullPointerException at org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer.java:687) at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:1239) at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:1307) at org.apache.xml.serialize.BaseMarkupSerializer.serialize(BaseMarkupSerializer.java:501) at org.osaf.caldav4j.util.XMLUtils.toPrettyXML(XMLUtils.java:94) ... 13 more Java Result: 1 I use Java 1.6 i don't now why he does'nt works , i use xercesImpl.jar . Maybe the problem com from this jar file. Help me !!!
  • Jun 22, 2009
    FAQ (FAQ) Wiki page added by robipolli
  • Jun 22, 2009
    CreateCaldavQuery (How to create caldav queries in 5minutes) Wiki page edited by robipolli
  • May 15, 2009
    r169 (fixed strange charset issues and bad data in test resource) committed by robipolli   -   fixed strange charset issues and bad data in test resource
    fixed strange charset issues and bad data in test resource
  • May 15, 2009
    issue 14 (Non-latin characters garbaged with PUT method) Status changed by robipolli   -   CReated a related test case.
    Status: Fixed
    CReated a related test case.
    Status: Fixed
 
Hosted by Google Code