Hi,

yes the layer and the style are in the same workspace 'test' and I can also
set them via the GeoServer interface.

Regards,

Joel


2013/6/8 Jonathan Moules <[email protected]>

> Hi Joel,
> If I'm reading this right (and I've still not quite got my head around
> workspaces), the layer is in the workspace "test". So I'd imagine that
> having the style in the same workspace ("test") should work fine.
>
> Can you set it via the GeoServer interface? If so, it may be a bug.
>
> Regards,
> Jonathan
>
>
>
> On 4 June 2013 14:11, Joel Kaiser <[email protected]> wrote:
>
>> Hello list,
>>
>> I have a problem setting a predefined style as the layer default one via
>> REST. I call "/geoserver/rest/layers/test:Test_Layer.json" via PUT and send
>> the following data:
>>
>> {'layer': {'enabled': True, 'defaultStyle': {''name': 'asd'}}}
>>
>> If the style 'asd' belongs to the workspace 'test' it doesn't work. If
>> the style has no workspace everything works fine.
>>
>> Do I miss something?
>>
>> I'm using geoserver 2.2.2 with an underlying tomcat6.
>>
>> Thanks,
>>
>> Joel
>>
>>
>> ------------------------------------------------------------------------------
>> How ServiceNow helps IT people transform IT departments:
>> 1. A cloud service to automate IT design, transition and operations
>> 2. Dashboards that offer high-level views of enterprise services
>> 3. A single system of record for all IT processes
>> http://p.sf.net/sfu/servicenow-d2d-j
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
>
> This transmission is intended for the named addressee(s) only and may
> contain sensitive or protectively marked material up to RESTRICTED and
> should be handled accordingly. Unless you are the named addressee (or
> authorised to receive it for the addressee) you may not copy or use it, or
> disclose it to anyone else. If you have received this transmission in error
> please notify the sender immediately. All email traffic sent to or from us,
> including without limitation all GCSX traffic, may be subject to recording
> and/or monitoring in accordance with relevant legislation.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to