SourceForge has been redesigned. Learn more.
Close

#162 DeleteMethod method with bad URL

Pre-release (0.9)
open
Connector (3)
5
2013-05-11
2013-05-11
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


Log in to post a comment.