Checklist
Description
Using a0deploy export we get the following file:
brute-force-protection.json
{
"enabled": true,
"shields": [
"block",
"user_notification"
],
"mode": "count_per_identifier_and_ip",
"form_submission_behavior": "auto_submit",
"allowlist": [],
"max_attempts": 10
}
Using a0deploy import we get the following error:
error: BadRequestError
Status code: 400
Body: {
"statusCode": 400,
"error": "Bad Request",
"message": "Payload validation error: 'Additional properties not allowed: form_submission_behavior'.",
"errorCode": "invalid_body"
}
Expectation
Consistent behaviour between export and import - either don't export form_submission_behavior or allow to import form_submission_behavior.
Reproduction
- Export a json configuration from a tenant with brute-force-protection enabled
- Try to import the same configuration (which contains form_submission_behavior field)
Deploy CLI version
8.43.0
Node version
20.20.2
Checklist
Description
Using a0deploy export we get the following file:
brute-force-protection.json
Using a0deploy import we get the following error:
Expectation
Consistent behaviour between export and import - either don't export form_submission_behavior or allow to import form_submission_behavior.
Reproduction
Deploy CLI version
8.43.0
Node version
20.20.2