Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The mock resource resolver does not do the complete cycle of the resolving. For example I could have a file:
/content/dam/my-file.jpg
If I would now do resourceResolver.resolve("/content/dam/my-file.jpg.selector/my-suffix") I would expect to get /content/dam/my-file.jpg but it returns a non existing resource for path /content/dam/my-file.jpg.selector/my-suffix
I see that this logic is done by the ResourcePathIterator in the ResourceResolverImpl:
What would be the recommended approach? Copy the internal ResourcePathIterator class to the mock testing library and implement the same logic?