Skip to content

Captcha not working with remote storage #33051

Open
@marvincaspar

Description

@marvincaspar

I have setup remote storage for a magento shop and this works fine for nearly all media files excepts for the captcha images. They are generated and stored on the local filesystem and are not synced to the s3 bucket.

$mediaDir = $this->_filesystem->getDirectoryWrite(DirectoryList::MEDIA, Filesystem\DriverPool::FILE);
)

Nginx than tries to find the image in the s3 bucket and returns a 404. The result is that the user can't see the captcha and for example is unable to reset the password. Current workaround is to disable the captcha feature.

Preconditions (*)

  1. magento 2.4.2
  2. enable remote storeage for s3 bucket

Steps to reproduce (*)

  1. enable remote storage for s3 bucket
  2. sync initial media files to s3
  3. enable captcha for customer forget password page
  4. go to customer forget password page

Expected result (*)

  1. captcha is displayed correctly

Actual result (*)

  1. browser sends 404 for the captcha image
  2. captcha is not displayed

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ContentComponent: RemoteStorageIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.2Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions