DeleteMethod method with bad URL
Brought to you by:
fortuna
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);