Images not displaying in WMS decorations

Description

I have recently transferred from version 2.2.5 to 2.4.4 and now find that my layouts including images no longer display in wms requests. If the layout includes other features (such as scale bars) then these continue to display, but without the image.

The configuration of the files/folders is the same as on the old version and as the layouts still display all decorations other than images, I cannot work out why this would be so.

I can find no other record of others having the same issue and wondered if this was a bug with 2.4.4?

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:22 PM

CodeHaus Comment From: isrpp - Time: Tue, 11 Mar 2014 04:05:45 -0500
---------------------
<p>The attached files are those used when experiencing the error.

These are saved in the data_dir/layouts folder of geoserver.</p>

codehaus
April 10, 2015, 4:22 PM

CodeHaus Comment From: isrpp - Time: Tue, 11 Mar 2014 04:12:46 -0500
---------------------
<p>If you question refers to a configuration file in the templates folder, then I do not have a templates folder in my data directory. This is not present in the geoserver that I have upgraded from either. Am I correct in thinking this is what you are after?</p>

codehaus
April 10, 2015, 4:22 PM

CodeHaus Comment From: isrpp - Time: Wed, 19 Mar 2014 10:02:54 -0500
---------------------
<p>Apologies for asking, but does anyone know of any issues with this or layouts in geoserver 2.4.4?</p>

codehaus
April 10, 2015, 4:22 PM

CodeHaus Comment From: aaime - Time: Wed, 19 Mar 2014 10:05:33 -0500
---------------------
<p>Personally I'm not... and in a jira ticket, I'm all the "anyone" you can get. You can ask on the users mailing list though.</p>

codehaus
April 10, 2015, 4:22 PM

CodeHaus Comment From: onack - Time: Tue, 13 Jan 2015 04:48:45 -0600
---------------------
<p>I am working on trying to get this working on latest master branch and I've checked your xml. The documentation is wrong and you need <a href="file://" class="external-link" rel="nofollow">file://</a> else it throws a MalformedURLException(WaterMarkDecoration.java 112) because protol is missing even though on next line it checks if protocol is null. I also cannot get it to find files relative to the data directory, but I've yet to find out why as I am not that into how geoserver works yet.</p>

<p>For me this works, full path and <a href="file://:" class="external-link" rel="nofollow">file://:</a>

&lt;layout&gt;

&lt;decoration type="image" affinity="top,right" offset="10,10" size="77,77"&gt;

&lt;option name="url" value="file:///home/marius/geoserver_data/northarrow.png"/&gt;

&lt;/decoration&gt;

&lt;/layout&gt;</p>

<p>Andrea, is there a optimal way of solving this? I can implement it if i knew how its supposed to look into the geoserver data dir.</p>

Fixed

Assignee

Andrea Aime

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Priority

Low
Configure