- πΊπΈUnited States smustgrave
Does appear to be a duplicate of π Revision user incorrectly appears as anonymous user when node author is cancelled Needs work could anyone confirm?
Prior to #2057401: Make the node entity database schema sensible β and the implementation of fully revisioned node fields, data loss was possible when reverting between revisions with different node authors. This has been a long-standing source of confusion and bugs through multiple versions of Drupal core. Notwithstanding that this should now be "fixed", tests should be implemented to ensure that node and revision author information is in fact preserved across revisions and reverts.
Per comment #8 by catch β below, the typical problem scenario arises when changing author information across revisions and then reverting:
Steps to reproduce, logged in as user 1 works fine for this.
- Create a node with user A (current user is fine)
- Edit the node, change authoring information to user B, check the 'new revision' checkbox.
- Revert to the revision created with #1.
- Revert to the revision created with #2.
Now there's two issues:
- User A is still listed as the author of the node, but it should be user B.
- There is no trace of user B ever being the author of the node in the node_revisions table or anywhere else.
The underlying need for revisioning author information has been addressed in core, but we should add tests to ensure there is no future regression.
The test proposed needs to be reviewed.
None -- this affects automated testing only.
None -- this affects automated testing only.
<!-- Delete or add "Novice" from the Novice? column in the table below as appropriate. Uncomment tasks as the issue advances. Update the Complete? column to indicate when they are done, and maybe reference the comment number where they were done. -->Postponed: needs info
9.5
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Does appear to be a duplicate of π Revision user incorrectly appears as anonymous user when node author is cancelled Needs work could anyone confirm?