[MGNLWCS-94] Wrong image link is resolved when WCS server and WCS search server have different hostname or port Created: 31/Oct/14  Updated: 03/Dec/14  Resolved: 03/Dec/14

Status: Closed
Project: Websphere Commerce Integration
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.0.1, 1.1

Type: Bug Priority: Critical
Reporter: Milan Divilek Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

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".


Generated at Mon Feb 12 11:13:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.