Uploaded image for project: 'E-commerce'
  1. E-commerce
  2. ECOMMERCE-360

Exception when open Product Chooser which "productChooserField" field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.2.4
    • 1.2.3
    • None
    • None

      Steps to reproduce

      •  Configure a dialog using the productChooserField
        form: 
          properties: 
            product: 
              $type: productChooserField
              connection: connection
              definition: commercetools
              categoryId: 05005125-3b5b-40df-bd8f-18cf6e2aa0d4
        
      • Open the dialog and browse the product, select one product.
      • Click to edit that selected product

      Expected results

      Can browse the products and then select new one.

      Actual results

      • Exception throw but still can select the new one

      Error log:

      java.lang.ClassCastException: info.magnolia.ecommerce.commercetools.common.CommercetoolsProduct cannot be cast to java.lang.Stringjava.lang.ClassCastException: info.magnolia.ecommerce.commercetools.common.CommercetoolsProduct cannot be cast to java.lang.String at info.magnolia.ui.contentapp.CaptionFilteringDataProviderWrapper.lambda$fetch$0(CaptionFilteringDataProviderWrapper.java:88) ~[magnolia-ui-framework-6.2.5.jar:?] at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174) ~[?:1.8.0_181] at java.util.stream.SliceOps$1$1.accept(SliceOps.java:204) ~[?:1.8.0_181] at java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) ~[?:1.8.0_181] at java.util.stream.Sink$ChainedReference.end(Sink.java:258) ~[?:1.8.0_181] at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499) ~[?:1.8.0_181] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485) ~[?:1.8.0_181] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_181] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_181] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_181] at java.util.stream.LongPipeline.reduce(LongPipeline.java:438) ~[?:1.8.0_181] at java.util.stream.LongPipeline.sum(LongPipeline.java:396) ~[?:1.8.0_181] at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:526) ~[?:1.8.0_181]
      

      Workaround

      No apparent workaround.

      Development notes

      May create a new converter like https://jira.magnolia-cms.com/browse/ECOMMERCE-339

        Acceptance criteria

              ajuran AntonĂ­n Juran
              oanh.thai Oanh Thai Hoang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 2d 3.25h
                    2d 3.25h