Skip to content

[Issue] fix invoice cancel from backend 404 error issue #40038

Open
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #39314: fix invoice cancel from backend 404 error issue


Description (*)
Getting 404 error while canceling invoice form backend

Related Pull Requests

The issue comes from 3e63705#diff-f55a86b611d11bb9a801c4b16ba9ac4b17dab4c325d252b86d5d3a8b8275c291

Canceling invoices from the backend results in a 404 error due to the core controller class Magento\Sales\Controller\Adminhtml\Order\Invoice\Cancel using Magento\Framework\App\Action\HttpPostActionInterface instead of Magento\Framework\App\Action\HttpGetActionInterface. This misconfiguration prevents proper access, triggering the error.

Manual testing scenarios (*)

  1. create an order with an offline payment method
  2. create an invoice for the order (offline)
  3. cancel the invoice

Resolved issue
resolves #39298: Fix offline invoice capture (404)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Admin UIComponent: SalesIssue: 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.Reported 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

    Status

    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions