Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-3217

Error "There is no active transaction.", when attaching a file

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 2.5.6
    • Form Builder
    • Form Builder v1.2.5

      Postgres 11 DB

      Redis cache

    Description

      Steps to reproduce

      1. Make sure the anonymous has no permission to read form submissions
      2. Create a form with an upload widget
      3. Log out from the backend
      4. Submit the form with a file attached
      5. See a blank page
      6. See the attachment created in the backend

      I tracked down the cause to the event handler, that invokes the PublishContent Event which is handled by the `StartWorkflowSubscriber`. There it tries to read the content, but does not have permission to (which is wanted).

      Suggested Solutions:

      a) Use sudo in the EventListener to always be able to read the content
      b) try-catch failed events, log them and continue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            9dcdb0dd-5caa-459b-93b0-1ce97332c3fa@accounts.ibexa.co Hannes Giesenow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: