Hi,
as you probably know it's currently impossible to use workspace specific
styles with GWC, any attempt to use them just fails with exception.

Which basically means, GWC does not work at all in a multitenancy setup.
There is this "workspace" extra param that can be used, but it is not a
good solution,
people need to know it has to be added, it's not transparent as the
integrated
GWC strives to be.

After talking with the n-th user that would have liked to use virtual
services, but
was blocked by this issue, I got a little frustrated and asked myself "how
hard
can it be?".

After a couple of hours of hacking, the answer seems to be "not much".
I've leveraged the support for prefixed style names in the catalog and
modified a bit the integration, so that everywhere a style name was used,
a prefixed name is now used instead.

I've then modified the tests for the "workspace" param to just remove it,
updated the many mock tests we have to use prefixedName, and voilà,
it seems to be working ok, it can be seeded and truncated,
and used in the GWC preview.

I've then checked the direct integration, which at first was not fully
working
because the WMSWorkspaceQualifier was not qualifying styles too (a bit
trickier than qualifying layers, as a style can be both local and global).
After changing this also direct integration seems to be working ok, whether
a style is not specified, specified without or with prefix.

Anyways... would be nice if someone else could check this pull request?
https://github.com/geoserver/geoserver/pull/908

Going to have a look also at http://jira.codehaus.org/browse/GEOS-6512,
it was reported against the opengeo suite (sigh!), but I guess it can be
reproduced
also with a standard geoserver.

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to