Skip to content

Duplicate query captcha log with same ip #37994

Open
@rogerdz

Description

@rogerdz

Preconditions and environment

  • Magento version 2.4-develop

Steps to reproduce

  1. Add log to function countAttemptsByRemoteAddress() in Magento\Captcha\Model\ResourceModel\Log:
    ``$writer = new \Zend_Log_Writer_Stream(BP . '/var/log/custom.log');
    $logger = new \Zend_Log();
    $logger->addWriter($writer);
    $logger->info($ip);`
    image
  2. Flush cache: php bin/magento cache:flush
  3. Go to homepage
  4. Check file log var/log/custom.log

Expected result

1 query captcha log per ip

Actual result

2 query captcha log for same ip
image

Additional information

No response

Release note

No response

Triage and priority

  • 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

Labels

Area: FrameworkComponent: LoggerIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: ready for confirmationPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: PR in progressReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions