magento/magento2

Malformed request body or parameters cause "Internal Server Error"

iasthc opened this issue · 8 comments

Preconditions (*)

  1. Magento CLI 2.4.1
  2. Magento/2.4 (Community)
  3. Magento 2.4-develop

Steps to reproduce (*)

  1. [POST] /V1/address/cleanse
    • Body: application/json {"address": "", "scopeType": "" }
  2. [PUT] /V1/customers/me
    • Body: application/json {"customer":""}
  3. [PUT] /V1/configurable-products/variation
    • Body: application/json {"options":"","product":""}
  4. [POST] /V1/customers/resetPassword
    • Body: application/json {"email":"","resetToken":"","newPassword":""}
  5. [POST] /V1/inventory/source-selection-algorithm-result
    • Body: application/json {"inventoryRequest":"","algorithmCode":""}
  6. [GET] /V1/inventory/is-product-salable-for-requested-qty/{sku}/{stockId}/{requestedQty}
    • Parameters: sku=1, stockId=1, requestedQty=1
  7. [GET] /V1/search?searchCriteria[requestName]=1
    • Parameter: searchCriteria[requestName]=1
  8. [GET] V1/customers/search?searchCriteria[filterGroups][0][filters][0][field]=1
    • Parameter: searchCriteria[filterGroups][0][filters][0][field]=1

Expected result (*)

  1. 400 Bad Request
  2. 400 Bad Request
  3. 400 Bad Request
  4. 400 Bad Request
  5. 400 Bad Request
  6. 404 Not Found
  7. 404 Not Found
  8. 404 Not Found

Actual result (*)

  1. 500 Internal Server Error
    • image
  2. 500 Internal Server Error
    • image
  3. 500 Internal Server Error
    • image
  4. 500 Internal Server Error
    • image
  5. 500 Internal Server Error
    • image
  6. 500 Internal Server Error
    • image
  7. 500 Internal Server Error
    • image
  8. 500 Internal Server Error
    • image

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”.

Hi @ch-tsai. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

Hi @engcom-Bravo. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 5. Add label Issue: Confirmed once verification is complete.

  • 6. Make sure that automatic system confirms that report has been added to the backlog.

✅ Confirmed by @engcom-Bravo
Thank you for verifying the issue. Based on the provided information internal tickets MC-40291 were created

Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

Hi @XxXgeoXxX. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

    1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
    1. Verify that the issue is reproducible on 2.4-develop branch
      Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
      - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
    1. If the issue is not relevant or is not reproducible any more, feel free to close it.

@magento I am working on this

@magento give me 2.4-develop instance

Hi @XxXgeoXxX. Thank you for your request. I'm working on Magento instance for you.