Skip to content

fix(Webapi Xml Renderer - 18361): removed the not needed ampersand re… #18380

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

Merged
merged 2 commits into from
Dec 7, 2018
Merged

fix(Webapi Xml Renderer - 18361): removed the not needed ampersand re… #18380

merged 2 commits into from
Dec 7, 2018

Conversation

nickshatilo
Copy link
Contributor

@nickshatilo nickshatilo commented Oct 4, 2018

Fixes #18361 (ampersand xml serialisation issue)

Description

As described in #18361, the issue is about having the ampersand in any customer text field, and when using the WebApi, it causes an issue of doubling the encoding. I.e &, which is not the case in the XML format, so it should be resolved.

Fixed Issues (if relevant)

  1. Customer last name is encoded twice in the XML interface #18361: Customer last name is encoded twice in the XML interface Customer last name is encoded twice in the XML interface #18361

Manual testing scenarios

  1. Create a customer via Backend with the last name "Foo & Bar Corp"
  2. Create an order (via frontend is fine)
  3. Export the order via XML interfcae
curl -XPOST -H 'Content-Type: application/json' http://hostname/rest/V1/integration/admin/token -d '{ "username": "admin_username", "password": "admin_password" }'
export B=code received above
 curl -X GET --header "Accept: application/xml" --header "Authorization: Bearer $B" "http://hostname/rest/english/V1/orders/1"

The customer_lastname tag should contain Foo & Bar Corp

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)
  • All automated tests passed successfully (all builds on Travis CI are green)

It is a copy of PR #18362

@magento-engcom-team magento-engcom-team added Component: Framework/Webapi USE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just Catalog Release Line: 2.3 labels Oct 4, 2018
@josefbehr josefbehr self-assigned this Oct 6, 2018
@josefbehr
Copy link
Contributor

@nickshatilo Thank you for your contribution. Please add class annotations so that the tests pass, and consider applying the change requested at the 2.2-PR (#18362 (comment)).

@nickshatilo
Copy link
Contributor Author

@josefbehr Fixed. :)

@josefbehr
Copy link
Contributor

@nickshatilo Thanks. Could you also please fix the static tests?

@sidolov
Copy link
Contributor

sidolov commented Oct 23, 2018

Hi @nickshatilo , any updates in this? Thank you!

@sidolov
Copy link
Contributor

sidolov commented Nov 6, 2018

Hi @nickshatilo , I am closing this PR now due to inactivity.
Please reopen and update if you wish to continue.
Thank you for the collaboration!

@sidolov sidolov closed this Nov 6, 2018
@amenk
Copy link
Contributor

amenk commented Nov 6, 2018

phew .. it's unlucky that is closed because of problematic static tests ...

@amenk
Copy link
Contributor

amenk commented Nov 6, 2018

@nickshatilo will work tomorrow on this

@amenk amenk reopened this Nov 6, 2018
@sivaschenko sivaschenko self-assigned this Nov 22, 2018
@magento-engcom-team magento-engcom-team added this to the Release: 2.3.1 milestone Nov 22, 2018
@magento-engcom-team
Copy link
Contributor

Hi @sivaschenko, thank you for the review.
ENGCOM-3535 has been created to process this Pull Request

@magento-engcom-team
Copy link
Contributor

@nickshatilo thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

@amenk
Copy link
Contributor

amenk commented Nov 22, 2018

cool, please merge :)

@magento-engcom-team
Copy link
Contributor

Hi @nickshatilo. Thank you for your contribution.
We will aim to release these changes as part of 2.3.1.
Please check the release notes for final confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Award: bug fix Component: Framework/Webapi USE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just Catalog Progress: accept Release Line: 2.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Customer last name is encoded twice in the XML interface
7 participants