core icon indicating copy to clipboard operation
core copied to clipboard

Can't delete content with multiple language versions

Open DeanGonzalez opened this issue 11 years ago • 12 comments

Saw this on dotCMS 3.2 release version running on Linux/postgres

Bug: content gets in a state where no version of the content can be deleted at all.

To recreate: 1) Create a piece of generic content in English (save and publish) 2) Create a spanish version of that same contentlet (save and publish) 3) Unpublish, archive and try to delete the spanish version... it does not delete and shows this message on the screen: http://screencast.com/t/299HaK53E5uV 4) Now go to the English version of the content, unpublish, archive and try to delete the English and spanish version... neither will delete. Try to delete them individually, neither deletes.

DeanGonzalez avatar Apr 27 '15 21:04 DeanGonzalez

the functionality is right. We don't delete because that destroys the identifier. The message is wrong but behavior is right

jtesser avatar Apr 27 '15 21:04 jtesser

If you want to delete all versions, all languages, there is no way to do so unless you are an Admin and have access to the Maintenance Tools - Delete Contentlets portlet... that is a bug... I can understand if it does not let you delete a language version when another is published or working... but when EVERY language version is archived it still won't let you delete.

DeanGonzalez avatar Apr 27 '15 21:04 DeanGonzalez

We allow full delete if the contentlet has only one Language version

DeanGonzalez avatar Apr 27 '15 21:04 DeanGonzalez

@DeanGonzalez no you can delete IF you have permissions meaning Edit Permission permission AND the other versions are unpublished.

jtesser avatar Apr 28 '15 13:04 jtesser

We are in agreement on the way it should work, but the case you just mentioned does not work, that is the bug. I am logged in as Admin, and all versions of the content are unpublished, and I still can't delete. http://screencast.com/t/ISQ7gnsyH9Ox

DeanGonzalez avatar Apr 28 '15 14:04 DeanGonzalez

You have to follow my steps in the original reported bug to make it happen.

DeanGonzalez avatar Apr 28 '15 14:04 DeanGonzalez

@DeanGonzalez no :-p In your steps at step 3 the English is STILL published. In fact in step 4 you explain that you unpublished it. But step 3 is where your error is

jtesser avatar Apr 28 '15 15:04 jtesser

OK so step 4 is the issue you are saying. We'll look

jtesser avatar Apr 28 '15 15:04 jtesser

Yep, I totally agree that step 3 should not allow the delete, if it did, that would be bad - step 4 is where things something gets hung up, even though it should allow the delete then.

DeanGonzalez avatar Apr 28 '15 23:04 DeanGonzalez

This is the same as https://github.com/dotCMS/core/issues/8269. It doesn't work yet in 3.2.4.

Xander-Steinmann avatar Oct 27 '15 07:10 Xander-Steinmann

also cant deleted data in 3.2.4

allychan avatar Nov 26 '15 02:11 allychan

This issue has been automatically marked as stale because it has not had activity within the past 90 days. It will be closed in 30 days no further activity occurs. Thank you.

stale[bot] avatar Sep 30 '19 02:09 stale[bot]