Problem/Motivation
See #3241542: white spaces in cache tag where someone has enqueued a cache tag for invalidation that contains a space, and then the purger plugin is deciding that that is an error.
Drupal cache tags should not contain spaces, so purge module should validate them as such.
There's already a method \Drupal\purge\Plugin\Purge\Invalidation\TagInvalidation::validateExpression that does validation, it could also validate for spaces.
Steps to reproduce
Purge some cache tags with a space.
Proposed resolution
Validate that the cache tag doesn't contain a space in \Drupal\purge\Plugin\Purge\Invalidation\TagInvalidation::validateExpression
Remaining tasks
Decide if this is a sensible idea etc.
User interface changes
API changes
Data model changes
Issue fork purge-3533998
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
steven jones commented