#97235Exception when adding variant with recipients label to form yaml
Description
Hi there,
I stumbled over a bug. I have a form yaml and added a variant to change the finisher under a certain condition. If I do so, the following message appears in backend when trying to save the form:
(1/2) #1297759968 TYPO3\CMS\Extbase\Property\Exception Exception while property mapping at property path "": No hmac found for property "variants.0.finishers.0.options.recipients.0._label" (form element "younameit") #1528588037
The form is not saved then and the error appears. Sending the form in the frontend works though. Seems like labels for “recipients” in variants within the topmost element are a problem. I commented that area in the yaml below. Interestingly I can workaround that using “recipientAddress” (with no label) instead of “recipients”.
yaml looks like this:
renderingOptions:
submitButtonLabel: Absenden
type: Form
identifier: younameit
label: 'younameit'
prototypeName: standard
variants:
-
identifier: variant-finishers
condition: 'formValues["anonymous-sending"] == 1'
finishers:
-
options:
subject: '{hidden-1}'
# critical part on
recipients:
email@domain.com: ''
# critical part off
# workaround:
# recipientAddress: email@domain.com
senderAddress: email@domain.com
senderName: Intranet
addHtmlPart: true
attachUploads: true
translation:
language: Standard
useFluidEmail: true
title: ''
identifier: EmailToReceiver
-
options:
pageUid: '86'
additionalParameters: ''
identifier: Redirect
finishers:
-
options:
subject: '{hidden-1}'
recipients:
email@domain.com: ''
senderAddress: email@domain.com
senderName: Intranet
addHtmlPart: true
attachUploads: true
translation:
language: Standard
useFluidEmail: false
title: ''
identifier: EmailToReceiver
-
options:
subject: '{hidden-1}'
recipients:
'{sso-email}': ''
senderAddress: email@domain.com
senderName: Intranet
addHtmlPart: true
attachUploads: true
useFluidEmail: true
title: ''
identifier: EmailToSender
-
options:
pageUid: '86'
additionalParameters: ''
identifier: Redirect
renderables:
-
renderingOptions:
previousButtonLabel: 'Vorherige Seite'
nextButtonLabel: 'Nächster Schritt'
type: Page
identifier: page-1
label: ''
renderables:
-
defaultValue: 'younameit'
type: Hidden
identifier: hidden-1
label: Verborgen
-
defaultValue: ''
type: Text
identifier: sso-name
label: Name
properties:
fluidAdditionalAttributes:
required: required
validators:
-
identifier: NotEmpty
-
defaultValue: ''
type: Text
identifier: sso-email
label: E-Mail-Adresse
properties:
fluidAdditionalAttributes:
required: required
validators:
-
identifier: NotEmpty
-
type: Checkbox
identifier: anonymous-sending
label: 'Anonym senden'
properties:
elementClassAttribute: anonymous-sending
-
defaultValue: ''
type: Text
identifier: text-3
label: Kurzbeschreibung
properties:
fluidAdditionalAttributes:
minlength: '5'
maxlength: '100'
required: required
validators:
-
options:
minimum: '5'
maximum: '100'
identifier: StringLength
-
identifier: NotEmpty
-
defaultValue: ''
type: Textarea
identifier: textarea-1
label: Beschreibung
properties:
fluidAdditionalAttributes:
required: required
validators:
-
identifier: NotEmpty
-
properties:
saveToFileMount: '1:/user_upload/'
allowedMimeTypes:
- application/msword
- application/vnd.openxmlformats-officedocument.wordprocessingml.document
- application/msexcel
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
- application/pdf
- application/vnd.oasis.opendocument.text
- application/vnd.oasis.opendocument.spreadsheet-template
- image/jpeg
- image/png
- image/bmp
elementDescription: 'Klicken Sie hier, um eine Datei anzufügen.'
type: FileUpload
identifier: fileupload-1
label: Anlagen
-
properties:
text: "..."
type: StaticText
identifier: statictext-1
label: ''Reviews 4
- 10.4 76164[BUGFIX] Cover multi-value properties in form editor with HMAC
- 11.5 76165[BUGFIX] Cover multi-value properties in form editor with HMAC
- main 75009[BUGFIX] Cover multi-value properties in form editor with HMAC
- main 75000[BUGFIX] Skip HMAC validation for multi-value properties in form editor