Bug #97235
closedException when adding variant with recipients label to form yaml
0%
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: ''
Updated by Björn Jacob over 2 years ago
- Status changed from New to Accepted
Can confirm that this still happens on current main.
Updated by Elias Häußler over 2 years ago
- Is duplicate of Bug #94106: Unable to save form after variant for EmailToReceiver is added added
Updated by Gerrit Code Review over 2 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75000
Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75009
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75009
Updated by Gerrit Code Review over 2 years ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75009
Updated by Gerrit Code Review about 2 years ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75009
Updated by Gerrit Code Review about 2 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76164
Updated by Gerrit Code Review about 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76165
Updated by Oliver Hader about 2 years ago
- Status changed from Under Review to Resolved
Applied in changeset 7a7fa140e125211316e4c81595cabdf65e9ccde4.
Updated by Benni Mack almost 2 years ago
- Status changed from Resolved to Closed