Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#162 DeleteMethod method with bad URL

Pre-release (0.9)
open
Ben Fortuna
Connector (3)
5
2013-05-11
2013-05-11
Martin Basovník
No

Class CalDavCalendarCollection.java contains method removeCalendar() where variable deleteMethod of type DeleteMethod can be filled by bad URL. Method getPath() can return string whoch ends with slash.

Workaround can be:

String path = calCollection.getPath();
if (!path.endsWith("/")) {
path = path.concat("/");
}
String str = path + uid + ".ics";
DeleteMethod deleteMethod = new DeleteMethod(str);

Discussion