On Tue, Nov 8, 2011 at 11:33 AM, Gis Mage <[email protected]> wrote:
> Andrea, hi!
> Yes, this is the flag I'm talking about. I've set it for all my layers.
> When at least one layer in a layer group is not advertised, the whole
> group isn't advertised.
> But I need the caps doc with just a group and without the single layers.
>
> Is this in a nightly build?

Just tried and you're right. Damn, it's a side effect of how layer groups work
in GeoServer, in fact, they do not exist services and security wise, so
if the group happens to be empty in the current operation (for example,
because the layers it's made of are not visible to the current user,
or because of the advertised flag) the group becomes invisible as well.
I honestly don't know how to fix this without also breaking in a major
way the security subsystem...

Layer hiding was not tested along with layer groups as the company that
sponsored the advertised flag did not need hiding for that, but only to
hide temporary layers.

All I can suggest at the moment is that you add a dummy layer to the
group that gets published, but that never draws anything (you can get
that by associating to to a style that has odd scale limits or filters that
are never satisified).

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to