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 <[email protected]>
Subject: [Geoserver-users] Fwd: Reg Map not printed in mapfish print
        when    WMS layer is Secured
To: [email protected]
Message-ID:

<CAG2EM7kN-Aiv4-rBunnj0CR1zcpf5MnZRxuBg=di9gapam9...@mail.gmail.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

------------------------------
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to