You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by smjain <ja...@gmail.com> on 2012/01/11 07:45:51 UTC

deleting the last version of a node doesnt work

I am trying to delete the last version of a node. It gives an error. All
other versions can be deleted.

Has someone seen this issue in the past?

Thanks

Shashank

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/deleting-the-last-version-of-a-node-doesnt-work-tp4284582p4284582.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

Re: deleting the last version of a node doesnt work

Posted by Tobias Bocanegra <tr...@adobe.com>.
Hi Shashank,
you cannot remove a version that is still referenced as a base version
of a node. If you want to remove all versions, you first
need to remove the mix:versionable from that node.

--
toby

On Wed, Jan 11, 2012 at 6:11 PM, smjain <ja...@gmail.com> wrote:
> We get the version from the version manager and do a remove on it. Able to
> delete other versions except the last one..
>
> --
> View this message in context: http://jackrabbit.510166.n4.nabble.com/deleting-the-last-version-of-a-node-doesnt-work-tp4284582p4287611.html
> Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

Re: deleting the last version of a node doesnt work

Posted by David Buchmann <da...@liip.ch>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

i can not find the reference right now, but i thought it is not possible
to remove the current version of a node. after all, what would the node
be then?

you could restore the previous version with removeExisting set to true.
or if you completely want to remove the node, just remove it instead of
removing all versions separatly.

cheers,david

Am 12.01.2012 03:11, schrieb smjain:
> We get the version from the version manager and do a remove on it. Able to
> delete other versions except the last one..
> 
> --
> View this message in context: http://jackrabbit.510166.n4.nabble.com/deleting-the-last-version-of-a-node-doesnt-work-tp4284582p4287611.html
> Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

- -- 
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8OmeIACgkQqBnXnqWBgIvV6QCgp0ld4I5B+il2TQJcld8omB5B
UtcAoJEFZfqnyIoSmvPIEe7RoMKMZQRb
=8GB5
-----END PGP SIGNATURE-----

Re: deleting the last version of a node doesnt work

Posted by smjain <ja...@gmail.com>.
We get the version from the version manager and do a remove on it. Able to
delete other versions except the last one..

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/deleting-the-last-version-of-a-node-doesnt-work-tp4284582p4287611.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

Re: deleting the last version of a node doesnt work

Posted by smjain <ja...@gmail.com>.
The jackrabbit version is 2.2.4
Thanks

Shashank

--
View this message in context: http://jackrabbit.510166.n4.nabble.com/deleting-the-last-version-of-a-node-doesnt-work-tp4284582p4287608.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

Re: deleting the last version of a node doesnt work

Posted by Peri Subrahmanya <pe...@gmail.com>.
Shashank,

Could you provide details on what version of JCR are you using and also how you are trying to delete? 

Thanks
-PeriS

On Jan 11, 2012, at 12:15 PM, smjain wrote:

> I am trying to delete the last version of a node. It gives an error. All
> other versions can be deleted.
> 
> Has someone seen this issue in the past?
> 
> Thanks
> 
> Shashank
> 
> --
> View this message in context: http://jackrabbit.510166.n4.nabble.com/deleting-the-last-version-of-a-node-doesnt-work-tp4284582p4284582.html
> Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.