Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.7
-
None
-
None
-
Operating System: Linux
Platform: PC
-
35413
Description
System:
standalone cocoon 2.1.7 in jetty on j2sdk1.4.2_08 (linux)
Problem:
Cocoon calendar generator produces not-wellformed xml for certain months
(It adds an additional </calendar:week>)
see http://revo.naber.biz:8888/test/2005/7/calendar
and http://revo.naber.biz:8888/test/2006/12/calendar
other months I tried worked fine. It seems it only happens when the week ends on
the last day of the month.
test sub-sitemap:
<!-- xsp calendar -->
<map:match pattern="*/*/calendar">
<map:generate type="calendar" >
<map:parameter name="year" value="{1}" />
<map:parameter name="month" value="{2}" />
<map:parameter name="country" value="DE" />
<map:parameter name="lang" value="DE" />
<map:parameter name="padWeeks" value="true" />
</map:generate>
<map:serialize type="xml"/>
</map:match>
The bug vanishes when I set <map:parameter name="padWeeks" value="false" />
The code tries to fill up and end a week it never began in the first place.
see http://revo.naber.biz:8888/test/2005/7/notfullcalendar
standalone cocoon 2.1.7 in jetty on j2sdk1.4.2_08 (linux)
Problem:
Cocoon calendar generator produces not-wellformed xml for certain months
(It adds an additional </calendar:week>)
see http://revo.naber.biz:8888/test/2005/7/calendar
and http://revo.naber.biz:8888/test/2006/12/calendar
other months I tried worked fine. It seems it only happens when the week ends on
the last day of the month.
test sub-sitemap:
<!-- xsp calendar -->
<map:match pattern="*/*/calendar">
<map:generate type="calendar" >
<map:parameter name="year" value="{1}" />
<map:parameter name="month" value="{2}" />
<map:parameter name="country" value="DE" />
<map:parameter name="lang" value="DE" />
<map:parameter name="padWeeks" value="true" />
</map:generate>
<map:serialize type="xml"/>
</map:match>
The bug vanishes when I set <map:parameter name="padWeeks" value="false" />
The code tries to fill up and end a week it never began in the first place.
see http://revo.naber.biz:8888/test/2005/7/notfullcalendar