[ECOMMERCE-408] Wrong yaml config prevent Ecommerce app for working Created: 25/May/21  Updated: 16/Jun/21  Resolved: 04/Jun/21

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: 1.2.4
Fix Version/s: 1.2.5, 1.3

Type: Bug Priority: Neutral
Reporter: Oanh Thai Hoang Assignee: Quach Hao Thien
Resolution: Fixed Votes: 0
Labels: VN-Testing, maintenance
Remaining Estimate: 0d
Time Spent: 2.75d
Original Estimate: Not Specified

Attachments: GIF File bug.gif    
Issue Links:
Relates
relates to ECOMMERCE-371 [Magento] Throwing an exception on br... Closed
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
Epic Link: Commerce maintenance & partnership support
Sprint: Content Mngmt 5
Story Points: 3

 Description   

Steps to reproduce

  1.  Prepare commerce yaml config as below:
  2. class: info.magnolia.ecommerce.common.EcommerceDefinition
    type: commercetools
    enabled: true
    implementation:
      products:
        all: info.magnolia.ecommerce.commercetools.products.All
        byId: info.magnolia.ecommerce.commercetools.products.ById
        byCategoryId: info.magnolia.ecommerce.commercetools.products.ByCategoryId
        searchByText: info.magnolia.ecommerce.commercetools.products.SearchByText
      categories:
        all: info.magnolia.ecommerce.commercetools.categories.All
        byId: info.magnolia.ecommerce.commercetools.categories.ById
        byParentCategoryId: info.magnolia.ecommerce.commercetools.categories.ByParentCategoryId
        byProductId: info.magnolia.ecommerce.commercetools.categories.ByProductId
      connectionValidator: info.magnolia.ecommerce.commercetools.common.CommercetoolsConnectionValidator
    connections:
      connection:
        authUrl: https://auth.sphere.io
        parameters:
    #      clientId: r8kKIO7hq9_1LJI7XiD8r5ud
    #      clientSecret: eY3n0_LOr5iEZq703xAaog89RYGF3Rpc
    #      apiUrl: https://api.sphere.io
    #      projectKey: magnolia-integration
    
  1. See infinitive logs and error log in app as well 

.. Logs, screenshots, gifs...

Expected results

Do not prevent ecommerce app for continue working with another valid connector

Actual results

Workaround

Development notes



 Comments   
Comment by Oanh Thai Hoang [ 31/May/21 ]

https://jira.magnolia-cms.com/browse/ECOMMERCE-371 in the past has throw same type of error and prevent Ecommerce app working. May be it can be reference how to fix it

 

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