Unable To Delete created components

4 views
Skip to first unread message

RAHUL DATE

unread,
Nov 10, 2017, 3:07:18 AM11/10/17
to caldav4j
Hello,

I am using Caldav4j with Apple's CalendarServer. 

It is a great library and I love playing with it.

I was able to create VTODO (by modifying addevent) placed at /calendars/users/user/tasks/abcd.ics

component is VTODO

But when I performed collection.delete(client, component, uid) I got error as: 

java.lang.IllegalArgumentException: Invalid uri '/calendars/users/user/tasks/abcd.ics': Invalid URL encoding: not a valid digit (radix 16): 118
at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222) ~[commons-httpclient-3.1.jar!/:na]
at org.apache.webdav.lib.methods.HttpRequestBodyMethodBase.<init>(HttpRequestBodyMethodBase.java:76) ~[jakarta-slide-webdavlib-3.0.jar!/:2.2pre1-httpclient-3.0]
at org.apache.webdav.lib.methods.XMLResponseMethodBase.<init>(XMLResponseMethodBase.java:93) ~[jakarta-slide-webdavlib-3.0.jar!/:2.2pre1-httpclient-3.0]
at org.apache.webdav.lib.methods.DeleteMethod.<init>(DeleteMethod.java:85) ~[jakarta-slide-webdavlib-3.0.jar!/:2.2pre1-httpclient-3.0]
at org.osaf.caldav4j.methods.DeleteMethod.<init>(DeleteMethod.java:13) ~[caldav4j-0.8.jar!/:na]


What can be the issue? Is Caldav4j delete written for VEVENT only? Or am I missing some libraries?

Roberto Polli

unread,
Nov 10, 2017, 3:39:29 AM11/10/17
to cald...@googlegroups.com
Hi Rahul,


2017-11-09 7:53 GMT+01:00 RAHUL DATE <rahul...@gmail.com>:
> I am using Caldav4j with Apple's CalendarServer.
Ok.

> I was able to create VTODO (by modifying addevent) placed at
> /calendars/users/user/tasks/abcd.ics
> component is VTODO
ok, VTODO is not actually tested, but an extension should be easy enough to add.

> But when I performed collection.delete(client, component, uid) I got error
> as:
>
> java.lang.IllegalArgumentException: Invalid uri
> '/calendars/users/user/tasks/abcd.ics': Invalid URL encoding: not a valid
> digit (radix 16): 118
> at
> org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
> ~[commons-httpclient-3.1.jar!/:na]

The error is in the underlying apache-httpclient lib.

We recently worked on the jcr-dev branch which contains many
improvements: use that and let me know!

Peace,
R.
Reply all
Reply to author
Forward
0 new messages