[Cosmo-dev] Re: [commits-cosmo] (rletness)  calculate
calendar bytes length at time of spooling to ensure
bcm at osafoundation.org
Fri Apr 6 09:28:58 PDT 2007
On 4/6/07, Randy Letness <randy at osafoundation.org> wrote:
> Understood, but the code I added doesn't introduce anything new. The
> only difference is I get the length of the byte array before passing the
> byte array into ByteArrayOutputStream().
can you think of a reason we use IOUtil.spool here instead of ical4j's
CalendarOutputter? i don't believe that does any copying under the
hood. of course, it removes the capability of logging the mismatching
length warning that you just added.
i assume that this warning is to help track down the problem we're
having of the content length being set incorrectly in the database. i
thought we had some custom hibernate foo to automatically set the
content length based on the length of the data in the calendar blob
column. is that not so?
More information about the cosmo-dev