jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-28) Node.checkin() throws ArrayIndexOutOfBoundsException
Date Tue, 14 Dec 2004 10:58:55 GMT
Node.checkin() throws ArrayIndexOutOfBoundsException

         Key: JCR-28
         URL: http://nagoya.apache.org/jira/browse/JCR-28
     Project: Jackrabbit
        Type: Bug
 Environment: Jackrabbit SVN Rev. 11798
    Reporter: Felix Meschberger

I get an ArrayIndexOutOfBoundsException for index 0 when checking-in a node. After drilling
into the code I found, that during checkin, the jcr:uuid property (defined as OPV INITIALIZE)
is not copied from the node to the frozen node.

After checkin though the implementation tries to access the string value of the jcr:uuid property,
which is not existing, hence the internal property implementation throws the exception when
accessing the first element in the empty value array.

As a workaround I currently the set jcr:uuid property to OPV=COPY in the mixin:referenceable
node type. But I could imagine, that this might be incorrect according to the spec, yet it
works in my use case.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message