Project

General

Profile

Actions

Bug #97235

closed

Exception when adding variant with recipients label to form yaml

Added by Alexander Rotzsch over 2 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2022-03-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint

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: ''

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #94106: Unable to save form after variant for EmailToReceiver is addedClosed2021-05-10

Actions
Actions #1

Updated by Björn Jacob over 2 years ago

  • Sprint Focus set to Remote Sprint
Actions #2

Updated by Björn Jacob over 2 years ago

  • Status changed from New to Accepted

Can confirm that this still happens on current main.

Actions #3

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
Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

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

Actions #10

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

Actions #11

Updated by Oliver Hader about 2 years ago

  • Status changed from Under Review to Resolved
Actions #12

Updated by Benni Mack almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF