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

Command icon 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

Spleshka created an issue. See original summary.

spleshka’s picture

Status: Active » Needs review

  • Spleshka committed f3839e52 on 3.x
    Issue #3338511: Ensure anonymous user always exists in the system
    

Spleshka credited iamdroid.

spleshka’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.