[GroupDAV] Funambol GroupDAV connector java exception

Mathew McBride groupdav@opengroupware.org
Wed, 25 Oct 2006 22:40:31 +1000


The issue has turned up elsewhere, and yes, the offset is correct, as a 
result of how System.arraycopy works in Java. The 
ArrayIndexOutOfBoundsException occurs if the store fails to PROPFIND the 
server correctly and leaves some arrays (usually deleted item keys) 
null. The store log will probably reveal where it failed.
Chris Bryant wrote:
> Matt,
>
> I've been trying to do some testing of your Funambol connector with 
> our USA.NET GroupDAV server and I've been seeing an 
> ArrayIndexOutOfBoundsException thrown  in vCalGroupDAVConnector.java.  
> In this file (I downloaded 1.1713.zip today, btw), there are a few 
> calls to System.arraycopy that I think are incorrectly adding 1 to the 
> offset in the destination array.  I think if the "+1" in these 
> statements is removed, this exception would be corrected.  I'm trying 
> to get ant setup to rebuild the jar file, but I have not been 
> successful yet, so I can't verify if this fix is correct, but I think 
> if you look at it, you'll see what I'm talking about.  I'm curious 
> nobody else has seen this before though...
>
> Thanks,
> Chris
>
> USA.NET, Inc.
>