[ECOMMERCE-565] Cannot select the product on SAP connector in ecommerce chooser Created: 08/Jun/23  Updated: 04/Aug/23  Resolved: 13/Jun/23

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: 1.3.4
Fix Version/s: 2.0, 1.3.5

Type: Bug Priority: Neutral
Reporter: Thuy To Assignee: Alberto Soto
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 1d 5h Time Spent: 1d 5h
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: PNG File image-2023-06-08-18-29-34-409.png     PNG File image-2023-06-08-18-30-46-358.png     PNG File image-2023-06-08-18-35-48-802.png     PNG File image-2023-06-08-18-37-25-556.png     PNG File image-2023-06-08-18-42-09-745.png     PNG File image-2023-06-08-18-42-46-413.png     PNG File image-2023-06-08-18-43-34-395.png     PNG File image-2023-06-09-12-12-55-592.png     PNG File image-2023-06-09-12-17-14-230.png     PNG File image-2023-06-09-12-18-29-044.png     PNG File image-2023-06-09-12-20-19-373.png     PNG File image-2023-06-09-18-34-43-037.png    
Issue Links:
Problem/Incident
causes ECOMMERCE-587 The timeouts values for e-commerce co... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
ECOMMERCE-573 Port to master Sub-task Resolved Alberto Soto  
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:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Release notes required:
Yes
Date of First Response:
Epic Link: AuthorX Maintenance
Story Points: 2
Team: AuthorX
Work Started:
Approved:
Yes

 Description   

Steps to reproduce

  1. Create a page with ecommerce template
  2. Add a product detail component
  3. Select a product on SAP connector  

 

     

Expected results: 

 

Actual results:   Cannot select a valid product.

The same problem when adding the product list and product teaser component.

Workaround

Development notes



 Comments   
Comment by Thuy To [ 09/Jun/23 ]

Discovery:

Because the structures of categoryId in Sap connector are different from other connectors, categoryId contains “/”, so it gets a wrong format for productId when converting a value in bean. Our code is missing this case in Sap. It's impacted by code of the migration in old format data.

Solution:

   + We should re-implement in toBean(String value) method to cover code in case categoryId contains “/” and get the correct format for productId in Sap connector. ProductId should be "1776948". 

   + Test carefully to make sure that the migration in old format data works well.

 

 

 

 

Comment by Alberto Soto [ 13/Jun/23 ]

This bug has been solved. There was a problem parsing the JSON response from the server in some use cases for a product detail widget. 

Although not visible from ecommerce App when selecting a detail widget for a product that relies on SAP, the JSON response from the third party was generating a non traced error, producing a non visible page as a result.

This bud does not need client modifications

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