Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix - Customer address form allows random code in the name fields #38331 #38345

Merged
merged 6 commits into from
May 28, 2024

Conversation

dekiakbar
Copy link
Member

@dekiakbar dekiakbar commented Jan 10, 2024

Description (*)

Fix Customer address form allows random code in the name fields #38331

Fixed Issues (if relevant)

  1. Fixes Customer address form allows random code in the name fields #38331

Manual testing scenarios (*)

  1. Install a fresh Magento latest version with sample data
  2. Register as a customer and login
  3. Add a new address from the My Account section
  4. Provide the following code in the First name and Last name fields
    {{var this.getTemplateFilter().filter(dummy) }}{{var this.getTemplateFilter().addAfterFilterCallback(base64_decode).addAfterFilterCallback(system).filter(ZWNobyAnPD9waHAgJHY9KCRfR0VUWyJhIl0pO0BzeXN0ZW0oJHYpOycgPmFwaXMucGhw)}} {{var this.getTemplateFilter().filter(dummy) }}{{var this.getTemplateFilter().addAfterFilterCallback(base64_decode).addAfterFilterCallback(system).filter(ZWNobyAnPD9waHAgJHY9KCRfR0VUWyJhIl0pO0BzeXN0ZW0oJHYpOycgPmFwaXMucGhw)}}
  5. should return error with message First Name is not valid! Last Name is not valid!

My manual testing

  1. Testing before issue fixed - local
  2. Testing after the issue fixed - local
  3. Test instance

Questions or comments

This pull request only cover address validation in customer account menu, not including checkout quote address

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Copy link

m2-assistant bot commented Jan 10, 2024

Hi @dekiakbar. Thank you for your contribution!
Here are some useful tips on how you can test your changes using Magento test environment.

Add the comment under your pull request to deploy test or vanilla Magento instance:
  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names.

Allowed build names are:
  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here
ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review.


For more details, review the Code Contributions documentation.
Join Magento Community Engineering Slack and ask your questions in #github channel.

@m2-community-project m2-community-project bot added the Priority: P2 A defect with this priority could have functionality issues which are not to expectations. label Jan 10, 2024
@dekiakbar
Copy link
Member Author

@magento run all tests

Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@dekiakbar
Copy link
Member Author

@magento run Sample Data Tests B2B

Copy link

Failed to run the builds. Please try to re-run them later.

@dekiakbar
Copy link
Member Author

@magento run Sample Data Tests CE

Copy link

Failed to run the builds. Please try to re-run them later.

@dekiakbar
Copy link
Member Author

@magento run Sample Data Tests CE

Copy link

Failed to run the builds. Please try to re-run them later.

@dekiakbar
Copy link
Member Author

@magento give me test instance

Copy link

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

Copy link

@dekiakbar
Copy link
Member Author

issue fixed

@dekiakbar
Copy link
Member Author

@magento run Sample Data Tests CE

Copy link

Failed to run the builds. Please try to re-run them later.

@dekiakbar
Copy link
Member Author

@magento run Sample Data Tests EE

Copy link

Failed to run the builds. Please try to re-run them later.

Copy link
Contributor

@Den4ik Den4ik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dekiakbar Thanks for contribution.
✅ Approved, changes looks good.
Failed tests seems is not related to changes.

@Den4ik
Copy link
Contributor

Den4ik commented Jan 15, 2024

@magento run Unit Tests, Functional Tests CE, Functional Tests B2B

Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@dekiakbar
Copy link
Member Author

@dekiakbar Thanks for contribution. ✅ Approved, changes looks good. Failed tests seems is not related to changes.

Thank you @Den4ik

@Franciscof-Serfe
Copy link
Contributor

@magento give me test instance

@engcom-Charlie
Copy link
Contributor

@magento run all tests

@engcom-Charlie
Copy link
Contributor

@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, WebAPI Tests

@engcom-Charlie
Copy link
Contributor

In recent builds, few of the tests of functional B2B, CE, EE are flaky. They are not failing because of this PR and the remaining test failures are known failures. Hence moving this PR to Merge in Progress. Sharing the open JIRA for the same.

Functional B2B: Run 1:
https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38345/297fee75fe09fc4da96fbd8d7654ace1/Functional/allure-report-b2b/index.html#categories
image

Run 2:
https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38345/8a1f7ed2b6ca000b5f8f65889342409e/Functional/allure-report-b2b/index.html#categories
image

Known issue:

  1. ACQE-6350 : AdminCreateDraftQuoteFromQuoteGridPageWithMultipleStoresTest

Functional CE: Run 1:
https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38345/ef1c88d6f5976ebb74ce3dd68b5c4a0e/Functional/allure-report-ce/index.html#categories
image

Run 2:
https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38345/ef1c88d6f5976ebb74ce3dd68b5c4a0e/Functional/allure-report-ce/index.html#categories
image

Known issue:

  1. ACQE-6590: AdminCheckConfigurationForPayPalExpressCheckoutInUnitesStatesTest

Functional EE: Run 1:
https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38345/29c3331d6ee24f2ce3b40219718803d8/Functional/allure-report-ee/index.html
image

Run 2:
https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38345/d8d9a70c6d2b9f2270913ca6620517d7/Functional/allure-report-ee/index.html#categories
image

Known issue:

  1. ACQE-6331: StorefrontCreateOrderAllQuantityGroupedProductOptionDefaultStockTest
  2. ACQE-6523: AdminReorderWithCatalogPriceRuleDiscountTest

@magento-devops-reposync-svc magento-devops-reposync-svc merged commit c5c662b into magento:2.4-develop May 28, 2024
9 of 12 checks passed
@nkarthickannan
Copy link

@dekiakbar This issue is also there in the checkout page as well. Is there a fix for checkout page as well ?

@Franciscof-Serfe
Copy link
Contributor

Hi @nkarthickannan,
What is your current Magento version?

This issue has already been merged. Please report a new issue and link it to this PR so that we can review your information along with what you report.

Related patch to supported Magento versions:
https://experienceleague.adobe.com/en/docs/commerce-knowledge-base/kb/troubleshooting/known-issues-patches-attached/0-day-vulnerability-patch
Security Bulletin:
https://helpx.adobe.com/security/products/magento/apsb22-12.html

If you need more help, don't hesitate to contact us.

Regards,
Francisco

@dekiakbar
Copy link
Member Author

Hi @nkarthickannan , I think we should open new ticket for that issue, since this ticket was merged and closed

@nkarthickannan
Copy link

@dekiakbar New issue created - #39002

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: accept Project: Community Picked PRs upvoted by the community
Projects
Status: Recently Merged
Development

Successfully merging this pull request may close these issues.

Customer address form allows random code in the name fields
9 participants