[GeoNetwork-devel] Bug: Map viewer export as PDf fails when north arrow option is selected [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 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:

I suggest changing this to:

That is, make the file path relative to the web application context root.

To work you also need to change org.wfp.vam.intermap.services.export.ExportPDF (line 117) from:

BufferedImage arrow = ImageUtils.load(_northarrowfile);

to:

BufferedImage arrow = ImageUtils.load(context.getAppPath() + _northarrowfile);

Regards,

Stephen