Hola senores,
When calling f.e. /dwapi/ecommerce/products/{id} we always get an empty list for ImagePatternImages.
If we manually upload images to products through PIM or Ecommerce then we get the image list under AssetCategories, but never any images when using image naming patterns.
We checked the source code (roughly) and think we saw something that might possibly be suspicious.
In the ImagePatternManager constructor you initialize an empty list for foundPatterns, set it as the value of ActivePatterns but then pass foundPatterns into the AddPattern method.
Then when looping through the patterns and gathering the images for ImagePatternImages you use ActivePatterns, now it should be populated due to pass-by-reference to foundPatterns:
I doubt this is what's messing things up, but it was the only thing that I saw that rang any sorts of warning bells for me so I wanted to point it out rather than not.
We've tried this against all our DW solutions running DW versions 9.12.7 or later and none of them return any values in ImagePatternImages.
Is this a known bug or are we messing something up on our end?
Best regards,
Nóri