[GeoNetwork-devel] Bug: Map viewer fails to send current context as email [SEC=UNCLASSIFIED]

Environment is BlueNetMEST v1.1 & Tomcat 5.5.26. Problem is with the intermap web application and has to do with the way the stylesheet resource file is being accessed using a relative file path. My guess is that this works on Jetty but fails on Tomcat.

As shipped the offending fragment from intermaps config.xml looks like this:

… snip …

Change this to a web app root relative value:

… snip …

And fix the code in org.wfp.vam.intermap.services.wmc.MailWmcContext (line 153) from:

Element stylesheet = (Element)Xml.loadFile(_xslfile).clone();

To:

Element stylesheet = (Element)Xml.loadFile(context.getAppPath() + _xslfile).clone();

Regards,

Stephen