Problem/Motivation
In professional secure environments data obfuscation or truncation is a must, to ensure that PII (personal identifiable information) is not present on developers machines. Such solutions may include truncation of all users data (i.e. when database backup is being exported without user tables). This leads to missing anonymous user in Drupal resulting in random errors on Drupal side.
Steps to reproduce
- Truncate users table
- Try to use the site as usual. You'll likely experience a random error.
Proposed resolution
Ensure that anonymous user always exists and create it if not.
Issue fork domino-3338511
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
spleshkaComment #6
spleshka