[ECOMMERCE-339] Exception opening product & category chooser Created: 10/Nov/20  Updated: 01/Feb/21  Resolved: 18/Nov/20

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: 1.2.1
Fix Version/s: 1.2.3

Type: Bug Priority: Major
Reporter: Ilgun Ilgun Assignee: Jesus Alonso
Resolution: Fixed Votes: 0
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: 5m
Original Estimate: Not Specified

Attachments: HTML File Untitled (1)    
Issue Links:
Relates
relates to ECOMMERCE-355 Product Picker. categoryChooserField ... Closed
relates to ECOMMERCE-360 Exception when open Product Chooser w... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: Ext DAMs maintenance & partnership support
Sprint: Maintenance 33, Maintenance 34
Story Points: 3

 Description   

The product/category chooser all of a sudden stopped working and it now throws classCastException due to a combination of events we don't know. However, the following line is the culprit from UI side.
private ItemCaptionGenerator<T> itemCaptionGenerator = Object::toString;
 

AC

  • Fix the chooser so no exception is thrown

 

How to reproduce

  • Open up pages app
  • Add an E-commerce template
  • Try to add a product teaser and see the exception.

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