Uploaded image for project: 'Websphere Commerce Integration'
  1. Websphere Commerce Integration
  2. MGNLWCS-94

Wrong image link is resolved when WCS server and WCS search server have different hostname or port

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.0.1, 1.1
    • 1.0
    • None
    • None

      For example: WCS server is running on port 80, but WCS search server is running on port 3737.
      Method info.magnolia.wcs.integration.dam.WebsphereAssetProvider#getAssets uses getSearchService().findProductsByCategory(storeId, id, "E") to get all products from Category.
      Product:

      "resourceId": "http://wcsdemo.magnolia-cms.com:3737/search/resources/store/10001/productview/byId/10005"
      "thumbnail": "/wcsstore/Aurora/images/catalog/apparel/women/wcl000_dresses/200x310/wcl000_0028_a_red.jpg"
      

      Then info.magnolia.wcs.integration.util.WCSUtils#getImageUrl use "resourceId" to build image url. http://wcsdemo.magnolia-cms.com:3737 + "thumbnail path", but images are not stored on search server, but on WCS server. So URL should be http://wcsdemo.magnolia-cms.com + "thumbnail path".

        Acceptance criteria

              mdivilek Milan Divilek
              mdivilek Milan Divilek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD