Saving Encryption profile settings the first time results in fatal

Created on 12 March 2023, about 2 years ago
Updated 16 March 2023, about 2 years ago

Problem/Motivation

I was exploring some issues I was having and noticed I hadn't set up an encryption profile yet. When to do so and got the following after the first save:

TypeError: Drupal\drd\EncryptionUpdate::update(): Argument #1 ($old_profile_id) must be of type string, null given, called in /app/web/modules/contrib/drd/src/Form/Settings.php on line 214 in Drupal\drd\EncryptionUpdate->update() (line 69 of /app/web/modules/contrib/drd/src/EncryptionUpdate.php).

Steps to reproduce

New install of Drupal 10
Install Drd
Install real aes
Create your key
create your encryption profile
add a host
go to /drd/cores/add
Click on link in error message to navigate to drd/settings
Select the newly created encryption profile

Proposed resolution

Need to do some error checking over here because $old_profile_id doesn't exist yet.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

4.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States generalredneck Texas, USA πŸ‡ΊπŸ‡Έ

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

Comments & Activities

Production build 0.71.5 2024