-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
DamTemplatingFunctions#getAssetForAbsolutePath throws an IllegalArgumentException ("relPath is not a relative path:") when info.magnolia.dam.jcr.JcrAssetProvider is used an rootPath is set to "/"
Problematic code is
info.magnolia.dam.templating.functions.DamTemplatingFunctions#getAssetForAbsolutePath
String relativeAssetPath = StringUtils.removeStart(absoluteAssetPath, provider.getRootFolder().getPath() + "/");
Because info.magnolia.dam.jcr.JcrAssetProvider#getPath returns "/" in case when provider root path is set to "/" and then starting "/" is not stripped from absoluteAssetPath.
Acceptance criteria
- is related to
-
MGNLDAM-481 JcrAssetProvider#getRootFolder throws an IllegalArgumentException
- Closed