jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: changing property of a checked in node
Date Sat, 10 Nov 2007 11:29:20 GMT
Vikas Bhatia wrote:
> I have a node that is versionable. Here is the CND
> ===
> [mcd:xy] > nt:base,mix:versionable
>   orderable mixin
>   - mcd:language (string) mandatory
>   - mcd:url (string)
>   - mcd:title (string) ignore mandatory
> ===
> Here is the title is set to "ignore". After the node with this
> nodetype xy is first created, we can change the title without checking
> out the node. i.e., the title changing does not need the node to be
> checked out.
> But once a new version of node xy is created, lets say the new version
> 1.1, we cant change the property mcd:title without checking out the
> node. if we try to change the title without checking out the node, the
> error is
> javax.jcr.version.VersionException: cannot set the value of a
> checked-in node, /a/b/c/xyz:title
> The behavior is confusing.. if the node is not versioned, you can
> change the property, but once the first version is created, you
> cannot... is that expected behavior. I thought that by setting the
> title attribute to "ignore" you could change the property without
> checking the node out.
> Is this a bug or expected behavior?

That sounds like a bug to me. You probably should open a JIRA issue, 
optimally including a short test case.

BR, Julian

View raw message