[Geoserver-users] Reg Map not printed in mapfish print WMS layer is Secured

Hi

I got around the printing authenticated layers issue by creating a user
in Geoserver called printer with access to all layers.

You can then add this security block in your config.yaml to send all
print requests as a specified user:

Security:

  • !basicAuth
    Matcher: !dnsMatch
    host: geoserver
    port: 8080
    username: printer
    password: password
    preemptive: true

As for the filename there’s an outputFilename: parameter you can put in
the config.yaml, I’m guessing you can substitute any variable that
you’re sending to mapfish in there as you do elsewhere:

outputFilename: ‘${customfilename}’

Hope this helps

Tom

Date: Fri, 28 Feb 2014 18:07:38 +0530
From: geo gis <gisgeoserver@anonymised.com84…>
Subject: [Geoserver-users] Fwd: Reg Map not printed in mapfish print
when WMS layer is Secured
To: geoserver-users@lists.sourceforge.net
Message-ID:

<CAG2EM7kN-Aiv4-rBunnj0CR1zcpf5MnZRxuBg=di9GApam9VWw@anonymised.com>
Content-Type: text/plain; charset=“iso-8859-1”

Hi,

In GeoEXT print ,map is not printed When WMS layer is secured and
getting java.io.IOException:
The byte array is not a recognized imageformat.
But the same print is
working fine when layer is public and also how to change output filename
dymanically form javascript.Please guide wt i have to do…Give some
suggestions.
Herewith i have enclosed sample YAML file for reference…
-------------- next part --------------
An HTML attachment was scrubbed…
-------------- next part --------------
A non-text attachment was scrubbed…
Name: config.yaml
Type: application/octet-stream
Size: 3721 bytes
Desc: not available