Skip to content

Restore fails if spam_folder is empty #7980

@DavidePrincipi

Description

@DavidePrincipi

Steps to reproduce

  • Install a mail module on NS8 without enabling the Junk folder
  • Take a backup
  • Restore the module

Expected behavior

Restore completes without validation errors, regardless of spam_folder value

Actual behavior

Restore fails during set-mailbox-settings subtask if spam_folder is empty, with validation error:

validation-failed at step ...: [spam_folder.name: String length must be greater than or equal to 1 spam_folder.name: Does not match pattern '^[^"]+$']
Image

Components

NethServer mail module 1.7.11

See also


Thanks to @nrauso

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    ToDo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions