NethServer / nethsecurity

NethSecurity image and build environment
https://www.nethsecurity.org/
Other
82 stars 5 forks source link

Restore: show a validation error for invalid passphrase #587

Closed andre8244 closed 1 week ago

andre8244 commented 3 weeks ago

Show a validation error "Invalid passphrase" if the user enters a wrong passphrase when restoring a backup. At the moment the standard toast notification for API failed is shown.

github-actions[bot] commented 2 weeks ago

Testing image version: 8-23.05.3-ns.1.0.1-6-g6071d0f

stephdl commented 2 weeks ago

QA

install the test image

go to backup and restore, do a backup with password

try to restore it, the error form of validation must be different if you give no password or if you give a wrong password

gsanchietti commented 2 weeks ago

Testing image: 23.05.3-ns.1.0.1-11-g7926d6e

gsanchietti commented 2 weeks ago

The error is displayed correctly only when restoring a backup with an upload: verified. If machine has a subscription, and the backup is restored from a remote backup, the old behavior is still present: not verified.

Screenshot of failed verification: image

github-actions[bot] commented 1 week ago

Testing image version: 8-23.05.3-ns.1.0.1-19-gff81a44

gsanchietti commented 1 week ago

Now the message is correctly displayed also when restoring a remote backup.

Verified.