[ECOMMERCE-482] Magento-Cannot use Checkout Endpoint for authentication user Created: 11/Oct/21  Updated: 18/Oct/22  Resolved: 24/Jan/22

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: None
Fix Version/s: 1.3.2, 1.2.7

Type: Bug Priority: Major
Reporter: Oanh Thai Hoang Assignee: Thuy To
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 3d 2.25h
Original Estimate: Not Specified

Attachments: File [Magento] Ecommerce-Endpoint.postman_collection.json     PNG File hard-card-id-with-mine.png    
Issue Links:
relation
is related to ECOMMERCE-494 [Magento] Throw the unauthorized erro... Open
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: AuthorX Maintenance
Sprint: AuthorX 1
Story Points: 5

 Description   

Steps to reproduce

  1.  Look at following magento docu a bit https://devdocs.magento.com/guides/v2.4/rest/tutorials/orders/order-create-order.html
  2. See following code does not add bearer token for authenticate user https://git.magnolia-cms.com/projects/ADDON/repos/ecommerce/browse/magnolia-ecommerce-magento-connector/src/main/java/info/magnolia/ecommerce/magento/checkout/MagentoCheckoutProvider.java#82,111,143
  3. See following code does use correct url follow to magento document https://git.magnolia-cms.com/projects/ADDON/repos/ecommerce/browse/magnolia-ecommerce-magento-connector/src/main/java/info/magnolia/ecommerce/magento/checkout/MagentoCheckoutProvider.java#46-48
  4. Execute checkout from postman [Magento] Ecommerce-Endpoint.postman_collection.json

.. Logs, screenshots, gifs...

Expected results

Can execute all method described in https://docs.magnolia-cms.com/product-docs/6.2/Connector-Packs/Commerce-Connector-Pack/E-commerce-REST-endpoints/Checkout-endpoint-API-v2.html for authenticate user

Actual results

500 error is return

Workaround

See temporary branch: https://git.magnolia-cms.com/projects/ADDON/repos/ecommerce/pull-requests?create&sourceBranch=refs%2Fheads%2FECOMMERCE-482

Run with cardId as "mine". See  

Development notes



 Comments   
Comment by Thuy To [ 24/Jan/22 ]

We cannot currently run the rest endpoint for cart/checkout on real server. I have created a new ticket to investigate https://jira.magnolia-cms.com/browse/ECOMMERCE-494 

Generated at Mon Feb 12 01:44:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.