Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deletion of all document version only deletes head version #663

Closed
MartinWilhelm opened this issue Nov 2, 2021 · 1 comment · Fixed by #666
Closed

Deletion of all document version only deletes head version #663

MartinWilhelm opened this issue Nov 2, 2021 · 1 comment · Fixed by #666

Comments

@MartinWilhelm
Copy link

Hi,

we are using spring-content-jpa in combination with spring-content-cmis.
In our application we want delete documents with multiple version and remove them from the Content Store.

When I call doc.delete(true); for a Document doc, then I would expect that all versions of this document are deleted from the database. Unfortunately only the head version is removed. It seems whether the allVersions = true option is ignored.

Regards Martin

@paulcwarren
Copy link
Owner

Thanks @MartinWilhelm. If I recall, this was a deliberate omission for the initial version but if you need this feature we should add. Will look tomorrow.

paulcwarren added a commit that referenced this issue Nov 4, 2021
- findAllVersions now returns an ordered (by id) list

Fixes #663
@paulcwarren paulcwarren mentioned this issue Nov 4, 2021
2 tasks
paulcwarren added a commit that referenced this issue Nov 5, 2021
paulcwarren added a commit that referenced this issue Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants