Nils Breunese wrote: > We're currently investigating a problem with images on our websites. We > haven't really been able to discover what the exact problem is yet, but > digging in the code did bring up the following: > > STKUtil.getAssetLink(Content content, String nodeDataPrefix, String > variationName) calls > STKUtil.getAsset(Content content, String nodeDataPrefix, String > variationName) which calls > DAMUtil.getAsset(Content content, String nodeDataName) which calls > DAMSupport.getAsset(Content node, String nodeDataPrefix) which calls > NodeDataUtil.getString(Content node, String name) > > This looks weird to me. Note how nodeDataPrefix and nodeDataName are being > interchanged as if they are the same thing. It all results in a call to > NodeDataUtil.getString(Content node, String name), which doesn't treat name > as some kind of prefix, but just checks for that exact name, doesn't find it > and returns an empty string. > > Resolving the handlerName on the first line of DAMSupport.getAsset(Content > node, String nodeDataPrefix) like that looks strange to me. Can someone tell > me if this is a bug? If so, is it a known issue?
A co-worker just discovered that other working nodes do have node data with the name of the handler as the value, so that explains how DAMSupport.getAsset can work. Let's dig some more... But the mixing of prefix and non-prefix variable names is still confusing to me. Nils. ------------------------------------------------------------------------ VPRO www.vpro.nl ------------------------------------------------------------------------ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
