deyanTG / caldav4j

Automatically exported from code.google.com/p/caldav4j
0 stars 0 forks source link

BaseTestCase produces invalid (?) iCalendar data #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run FunTest against Apple CalendarServer

What is the expected output?
  a succeeding test :)

What do you see instead?

In the unittest output:

DEBUG - BaseTestCase.put(190) | 
PUT /calendars/users/raboof/caldav4j/Floating_Jan_2_7pm.ics
<?xml version='1.0' encoding='UTF-8'?>
<error xmlns='DAV:'>
  <valid-calendar-object-resource xmlns='urn:ietf:params:xml:ns:caldav'/>
</error>

In the server logging:

2009-03-26 01:20:25+0100 [-] [caldav-8009]  [-]
[twistedcaldav.method.put_common#error] At line 26: ' 20090326T002025Z' is
not a valid DATE-TIME

In the code (BaseTestCase.java:184):

        event = event.replaceAll("DTSTAMP:.*", "DTSTAMP: " + new
DateTime(true).toString());

Is that space directly after 'DTSTAMP:' allowed?

What version of the product are you using? On what operating system?
svn trunk on ubuntu linux

Original issue reported on code.google.com by arnout.engelen on 26 Mar 2009 at 12:30

GoogleCodeExporter commented 8 years ago
Removed whitespace

Original comment by robipo...@gmail.com on 7 Apr 2009 at 6:08