Hello,
When deleting an empty forum, it deletes all previous content, even if this has been moved to a new forum. This is very frustrating and I think is a very serious bug. It has happenned to me twice, so I decided to report it.
Steps to reproduce:
1. Start with a forum system with different forums and forum topics.
2. Move all forum nodes (topics) from a forum to another one (new or old).
3. Delete the selected forum (the one is empty now).
4. All forum nodes which were in this forum before step 2 will be deleted too!
The first time it happened to me I though I had selected "Mark topic as moved", but I know for sure I it wasn't selected the second time.
I have the comment mover module installed, but I don't think this is related.
Please let me know if there is a patch or anything for this, because now I'm afraid of deleting old forums.
Thanks.
Comments
Comment #1
michelleI have a fairly clean 4.7 install (just installed it a few days ago, only one non-forum related contrib module) and I can't reproduce this. My moved forum post was still there after the other forum was deleted.
Michelle
Comment #2
chx commentedComment #3
EnekoAlonso-1 commentedWell, I don't know how to "prove" this problem. I have a Drupal site which started on version 4.6.3 and was migrated to 4.7 and today to 4.7.4.
This problem has happened twice, one today after the migration and another one in the past (I don't remember which version, but I'm pretty sure it was a 4.7.x.
Let me know if you find out anything or anybody with the same problem.
Thanks.
Comment #4
david straussThis is completely unintuitive behavior, and this bug specifically affects sites that keep old revisions of forum nodes. You don't even have to keep around a shadow copy to encounter the issue.
This affects a common workflow on a site:
(1) Decide to retire a forum.
(2) Gradually move topics to the new destinations.
(3) Delete the retired forum.
Current Drupal 5 code:
Current Drupal 6 code:
Either will delete any nodes whose previous revisions fell into old forums.
Comment #5
michelleAh, that explains why I couldn't repro it 2 years ago. I've never had revisions on for forum topics.
Michelle
Comment #6
drummComment #7
beginner commentedI confirm the existence of this bug!
Wouldn't it be present in D7, too? What's the procedure for such a critical bug? Fix head first, or D6 (and D5) first?
Comment #8
alexanderpas commentedfix head, then backport.
Comment #9
webchickComment #10
catchThis almost an exact opposite of the report at #206820: Relocate or delete topics on forum deletion to avoid leaving stale data in database. (thanks beginner for bumping that issue). I just manually tested in HEAD, and deleting a forum continues to not delete any associated forum topics at all.
Comment #11
JamesAn commentedI just tested this in HEAD (7.x) and can't seem to reproduce the error.
This is what I did:
The forum topic doesn't get deleted. So the problem is resolved, yes?
Feel free to reopen if this problem does indeed still exist.
Comment #12
figaro commentedApparently this only happens for forum topics to which replies have been posted. Similarly, this issue does not occur for forum topics without responses. Can we verify this first or - if I am incorrect - have a complete overview of the conditions under which this happens?
Comment #13
vm commentedremarking active based on #12
Comment #14
tic2000 commentedI tested this also. I even created a revision, but the topic wasn't deleted when the old forum was deleted.
Comment #15
vm commentedtic2000 when you state " you tested also" did you test with #12 's comment in mind where the threads had replies?
Comment #16
tic2000 commentedYes I did. With reply and with new revision. The topics are still in the new forum.
Comment #17
vm commentedremarking as fixed per #16
Comment #18
JamesAn commentedI'm also confirming with another round of tests. With or without a shadow copy and with or without comment replies (4 combinations), deleting the old forum doesn't delete the topics that have been moved to a new forum.
Comment #19
figaro commentedCommendable effort to all involved.
@#18: Can you add those 4 combinations as test cases to the testbot for perpetual testing? Thanks in advance.
Comment #20
JamesAn commentedSure thing.
Comment #21
juan_g commentedIs this data-loss bug also fixed for Drupal 6.x, or only for Drupal 7.x? (See comment #7 and others).
Comment #22
sun.core commentedWe absolutely need tests here.
Comment #23
catchWe do, but there's no reproducable bug here, so downgrading.
Comment #24
Tor Arne Thune commentedI couldn't find any extensive tests that deletes a forum with topics or where a forum topic has been moved, in
forum.test, so I suppose this still is a valid issue.Comment #25
Tor Arne Thune commentedComment #38
quietone commentedForum is approved for removal. See #1898812: [policy] Deprecate forum module for removal in Drupal 11
This is now Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
It will be moved to the contributed extension once the Drupal 11 branch is open.
Comment #40
quietone commentedComment #41
quietone commented