Deprecation message on validation of empty file key

Created on 24 April 2023, almost 2 years ago
Updated 25 April 2023, almost 2 years ago

The deprecation message Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in jwt/src/Plugin/KeyType/JwtHsKeyType.php is thrown on PHP 8.1, when a new file key is added when the file doesn't exist

Steps to reproduce:

  • Navigate to /admin/config/system/keys/add to add a key
  • Set "Key type" to "JWT HMAC Key"
  • Set "Key provider" to "File"
  • Set "File location" to a non-existent file
  • Save the configuration
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands arkener

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024