[Geoserver-users] Cannot change the 'defaultStyle' of a layer with REST

Dear all,

I cannot change the default style of a layer using the REST API.

I GET the Layer, change some values and PUT it back, get 200 OK. Other things are nicely changed, but the 'defaultStyle' is not.

It goes like this:

GET Layer:

{"layer":{"name":"line_crs","type":"VECTOR","defaultStyle":{"name":"line","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/styles\/line.json"},"resource":{"@class":"featureType","name":"line_crs","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/workspaces\/dragouni\/datastores\/line_crs\/featuretypes\/line_crs.json"},"enabled":true,"attribution":{"logoWidth":0,"logoHeight":0}}}

PUT Layer:

{"layer": {"resource": {"href": "http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/datastores/line_crs/featuretypes/line_crs.json", "name": "line_crs", "@class": "featureType"}, "name": "line_crs", "enabled": "false", "defaultStyle": {"href": "http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/styles/line_crs.json", "name": "line_crs"}, "advertised": "false", "attribution": {"logoWidth": "11", "logoHeight": "12"}, "type": "VECTOR", "queryable": "false"}}

response: 200 OK

GET Layer:

{"layer":{"name":"line_crs","type":"VECTOR","defaultStyle":{"name":"line","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/styles\/line.json"},"resource":{"@class":"featureType","name":"line_crs","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/workspaces\/dragouni\/datastores\/line_crs\/featuretypes\/line_crs.json"},"enabled":false,"advertised":false,"queryable":false,"attribution":{"logoWidth":11,"logoHeight":12}}}

So enable, advertised, queryable, attribution logoWidth and logoHeight have changed, the default style has not. I have checked the provided style link in the browser, it works. I have assigned the style in the web interface a get the expected result:

{"layer":{"name":"line_crs","type":"VECTOR","defaultStyle":{"name":"line_crs","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/workspaces\/dragouni\/styles\/line_crs.json"},"resource":{"@class":"featureType","name":"line_crs","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/workspaces\/dragouni\/datastores\/line_crs\/featuretypes\/line_crs.json"},"enabled":false,"advertised":false,"queryable":false,"attribution":{"logoWidth":11,"logoHeight":12}}}

I am using GeoServer 2.3-RC1. Any suggestions are welcome.

Thank you in advance,

Michal

I am attaching the GeoServer log and my own log, where the requests and responses are recorded. My attention was caught by the following lines:

2013-04-08 19:35:24,358 DEBUG [catalog.impl] - Warning, some code is setting the LayerInfo name, but that will be ignored
2013-04-08 19:35:24,358 DEBUG [geoserver.config] - Persisting layer line_crs
2013-04-08 19:35:24,359 DEBUG [geoserver.config] - Persisted org.geoserver.catalog.impl.LayerInfoImpl to /data/geoserver/data/workspaces/dragouni/line_crs/line_crs/layer.xml
2013-04-08 19:35:24,359 DEBUG [gwc.layer] - Handling modify event for LayerInfoImpl[line_crs, resource:FeatureTypeInfoImpl[line_crs]]
2013-04-08 19:35:24,361 DEBUG [geoserver.config] - Persisted sun.proxy.$Proxy506 to /data/geoserver/data/global.xml
2013-04-08 19:35:24,361 INFO [catalog.rest] - PUT layer dragouni:line_crs

But I am not sure, what exactly that means.

I am aware, that I am not allowed to change the name or resource of the layer (in such a case I would expect status code 403), but should it be possible to change the defualtStyle?

Michal

Dne 08.04.2013 18:48, sredl@anonymised.com napsal:

Dear all,

I cannot change the default style of a layer using the REST API.

I GET the Layer, change some values and PUT it back, get 200 OK. Other
things are nicely changed, but the 'defaultStyle' is not.

It goes like this:

GET Layer:

{"layer":{"name":"line_crs","type":"VECTOR","defaultStyle":{"name":"line","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/styles\/line.json"},"resource":{"@class":"featureType","name":"line_crs","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/workspaces\/dragouni\/datastores\/line_crs\/featuretypes\/line_crs.json"},"enabled":true,"attribution":{"logoWidth":0,"logoHeight":0}}}

PUT Layer:

{"layer": {"resource": {"href":

"http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/datastores/line_crs/featuretypes/line_crs.json",

"name": "line_crs", "@class": "featureType"}, "name": "line_crs",
"enabled": "false", "defaultStyle": {"href":

"http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/styles/line_crs.json",

"name": "line_crs"}, "advertised": "false", "attribution":
{"logoWidth": "11", "logoHeight": "12"}, "type": "VECTOR", "queryable":
"false"}}

response: 200 OK

GET Layer:

{"layer":{"name":"line_crs","type":"VECTOR","defaultStyle":{"name":"line","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/styles\/line.json"},"resource":{"@class":"featureType","name":"line_crs","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/workspaces\/dragouni\/datastores\/line_crs\/featuretypes\/line_crs.json"},"enabled":false,"advertised":false,"queryable":false,"attribution":{"logoWidth":11,"logoHeight":12}}}

So enable, advertised, queryable, attribution logoWidth and logoHeight
have changed, the default style has not. I have checked the provided
style link in the browser, it works. I have assigned the style in the
web interface a get the expected result:

{"layer":{"name":"line_crs","type":"VECTOR","defaultStyle":{"name":"line_crs","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/workspaces\/dragouni\/styles\/line_crs.json"},"resource":{"@class":"featureType","name":"line_crs","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/workspaces\/dragouni\/datastores\/line_crs\/featuretypes\/line_crs.json"},"enabled":false,"advertised":false,"queryable":false,"attribution":{"logoWidth":11,"logoHeight":12}}}

I am using GeoServer 2.3-RC1. Any suggestions are welcome.

Thank you in advance,

Michal

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

gs.log (8.79 KB)

myOwn.log (3.07 KB)

Hi Michal,

I discover this behavior in the last days too but I don’t found a solution to solve it yet. In the Geoserver version 2.2-beta2 it was still possible to overwrite the defaultStyle after layer storage using the REST interface. In the versions 2.2.2 and newer it was no longer possible.

Maybe it helps to find a solution

Best Regards
Robert

···

Am 08.04.2013 22:02, schrieb sredl@anonymised.com:

I am attaching the GeoServer log and my own log, where the requests and responses are recorded. My attention was caught by the following lines:

2013-04-08 19:35:24,358 DEBUG [catalog.impl] - Warning, some code is setting the LayerInfo name, but that will be ignored
2013-04-08 19:35:24,358 DEBUG [geoserver.config] - Persisting layer line_crs
2013-04-08 19:35:24,359 DEBUG [geoserver.config] - Persisted org.geoserver.catalog.impl.LayerInfoImpl to /data/geoserver/data/workspaces/dragouni/line_crs/line_crs/layer.xml
2013-04-08 19:35:24,359 DEBUG [gwc.layer] - Handling modify event for LayerInfoImpl[line_crs, resource:FeatureTypeInfoImpl[line_crs]]
2013-04-08 19:35:24,361 DEBUG [geoserver.config] - Persisted sun.proxy.$Proxy506 to /data/geoserver/data/global.xml
2013-04-08 19:35:24,361 INFO [catalog.rest] - PUT layer dragouni:line_crs

But I am not sure, what exactly that means.

I am aware, that I am not allowed to change the name or resource of the layer (in such a case I would expect status code 403), but should it be possible to change the defualtStyle?

Michal

Dne 08.04.2013 18:48, sredl@anonymised.com napsal:

Dear all,

I cannot change the default style of a layer using the REST API.

I GET the Layer, change some values and PUT it back, get 200 OK. Other
things are nicely changed, but the ‘defaultStyle’ is not.

It goes like this:

GET Layer:

{“layer”:{“name”:“line_crs”,“type”:“VECTOR”,“defaultStyle”:{“name”:“line”,“href”:“http://erra.ccss.cz:8080/geoserver/rest/styles/line.json”},“resource”:{“@class”:“featureType”,“name”:“line_crs”,“href”:“http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/datastores/line_crs/featuretypes/line_crs.json”},“enabled”:true,“attribution”:{“logoWidth”:0,“logoHeight”:0}}}

PUT Layer:

{“layer”: {“resource”: {“href”:

“http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/datastores/line_crs/featuretypes/line_crs.json”,

“name”: “line_crs”, “@class”: “featureType”}, “name”: “line_crs”,
“enabled”: “false”, “defaultStyle”: {“href”:

“http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/styles/line_crs.json”,

“name”: “line_crs”}, “advertised”: “false”, “attribution”:
{“logoWidth”: “11”, “logoHeight”: “12”}, “type”: “VECTOR”, “queryable”:
“false”}}

response: 200 OK

GET Layer:

{“layer”:{“name”:“line_crs”,“type”:“VECTOR”,“defaultStyle”:{“name”:“line”,“href”:“http://erra.ccss.cz:8080/geoserver/rest/styles/line.json”},“resource”:{“@class”:“featureType”,“name”:“line_crs”,“href”:“http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/datastores/line_crs/featuretypes/line_crs.json”},“enabled”:false,“advertised”:false,“queryable”:false,“attribution”:{“logoWidth”:11,“logoHeight”:12}}}

So enable, advertised, queryable, attribution logoWidth and logoHeight
have changed, the default style has not. I have checked the provided
style link in the browser, it works. I have assigned the style in the
web interface a get the expected result:

{“layer”:{“name”:“line_crs”,“type”:“VECTOR”,“defaultStyle”:{“name”:“line_crs”,“href”:“http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/styles/line_crs.json”},“resource”:{“@class”:“featureType”,“name”:“line_crs”,“href”:“http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/datastores/line_crs/featuretypes/line_crs.json”},“enabled”:false,“advertised”:false,“queryable”:false,“attribution”:{“logoWidth”:11,“logoHeight”:12}}}

I am using GeoServer 2.3-RC1. Any suggestions are welcome.

Thank you in advance,

Michal


Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
[http://www.cisco.com/web/learning/employer_resources/index.html](http://www.cisco.com/web/learning/employer_resources/index.html)
_______________________________________________
Geoserver-users mailing list
[Geoserver-users@lists.sourceforge.net](mailto:Geoserver-users@lists.sourceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-users](https://lists.sourceforge.net/lists/listinfo/geoserver-users)

Or do I need to edit directly the XML config files, to change the defaultStyle of the Layer?

Michal

Dne 08.04.2013 22:02, sredl@anonymised.com napsal:

I am attaching the GeoServer log and my own log, where the ruests
and responses are recorded. My attention was caught by the following
lines:

2013-04-08 19:35:24,358 DEBUG [catalog.impl] - Warning, some code is
setting the LayerInfo name, but that will be ignored
2013-04-08 19:35:24,358 DEBUG [geoserver.config] - Persisting layer line_crs
2013-04-08 19:35:24,359 DEBUG [geoserver.config] - Persisted
org.geoserver.catalog.impl.LayerInfoImpl to
/data/geoserver/data/workspaces/dragouni/line_crs/line_crs/layer.xml
2013-04-08 19:35:24,359 DEBUG [gwc.layer] - Handling modify event for
LayerInfoImpl[line_crs, resource:FeatureTypeInfoImpl[line_crs]]
2013-04-08 19:35:24,361 DEBUG [geoserver.config] - Persisted
sun.proxy.$Proxy506 to /data/geoserver/data/global.xml
2013-04-08 19:35:24,361 INFO [catalog.rest] - PUT layer dragouni:line_crs

But I am not sure, what exactly that means.

I am aware, that I am not allowed to change the name or resource of
the layer (in such a case I would expect status code 403), but should
it be possible to change the defualtStyle?

Michal

Dne 08.04.2013 18:48, sredl@anonymised.com napsal:

Dear all,

I cannot change the default style of a layer using the REST API.

I GET the Layer, change some values and PUT it back, get 200 OK. Other
things are nicely changed, but the 'defaultStyle' is not.

It goes like this:

GET Layer:

{"layer":{"name":"line_crs","type":"VECTOR","defaultStyle":{"name":"line","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/styles\/line.json"},"resource":{"@class":"featureType","name":"line_crs","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/workspaces\/dragouni\/datastores\/line_crs\/featuretypes\/line_crs.json"},"enabled":true,"attribution":{"logoWidth":0,"logoHeight":0}}}

PUT Layer:

{"layer": {"resource": {"href":

"http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/datastores/line_crs/featuretypes/line_crs.json",

"name": "line_crs", "@class": "featureType"}, "name": "line_crs",
"enabled": "false", "defaultStyle": {"href":

"http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/styles/line_crs.json",

"name": "line_crs"}, "advertised": "false", "attribution":
{"logoWidth": "11", "logoHeight": "12"}, "type": "VECTOR", "queryable":
"false"}}

response: 200 OK

GET Layer:

{"layer":{"name":"line_crs","type":"VECTOR","defaultStyle":{"name":"line","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/styles\/line.json"},"resource":{"@class":"featureType","name":"line_crs","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/workspaces\/dragouni\/datastores\/line_crs\/featuretypes\/line_crs.json"},"enabled":false,"advertised":false,"queryable":false,"attribution":{"logoWidth":11,"logoHeight":12}}}

So enable, advertised, queryable, attribution logoWidth and logoHeight
have changed, the default style has not. I have checked the provided
style link in the browser, it works. I have assigned the style in the
web interface a get the expected result:

{"layer":{"name":"line_crs","type":"VECTOR","defaultStyle":{"name":"line_crs","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/workspaces\/dragouni\/styles\/line_crs.json"},"resource":{"@class":"featureType","name":"line_crs","href":"http:\/\/erra.ccss.cz:8080\/geoserver\/rest\/workspaces\/dragouni\/datastores\/line_crs\/featuretypes\/line_crs.json"},"enabled":false,"advertised":false,"queryable":false,"attribution":{"logoWidth":11,"logoHeight":12}}}

I am using GeoServer 2.3-RC1. Any suggestions are welcome.

Thank you in advance,

Michal

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Robert,

thank you for your answer! Hm, so it looks like a bug, or undocumented feature, at least. I am about to change the XML config files directly, until the issue is solved. Not nice, but hopefully it will work.

Kind regards,

Michal

Dne 08.04.2013 23:30, Robert Kulawik napsal:

Hi Michal,

I discover this behavior in the last days too but I don't found a
solution to solve it yet. In the Geoserver version 2.2-beta2 it was
still possible to overwrite the defaultStyle after layer storage using
the REST interface. In the versions 2.2.2 and newer it was no longer
possible.

Maybe it helps to find a solution

Best Regards
Robert

Am 08.04.2013 22:02, schrieb sredl@anonymised.com:

I am attaching the GeoServer log and my own log, where the requests and responses are recorded. My attention was caught by the following lines:

2013-04-08 19:35:24,358 DEBUG [catalog.impl] - Warning, some code is setting the LayerInfo name, but that will be ignored
2013-04-08 19:35:24,358 DEBUG [geoserver.config] - Persisting layer line_crs
2013-04-08 19:35:24,359 DEBUG [geoserver.config] - Persisted org.geoserver.catalog.impl.LayerInfoImpl to /data/geoserver/data/workspaces/dragouni/line_crs/line_crs/layer.xml
2013-04-08 19:35:24,359 DEBUG [gwc.layer] - Handling modify event for LayerInfoImpl[line_crs, resource:FeatureTypeInfoImpl [6][line_crs]]
2013-04-08 19:35:24,361 DEBUG [geoserver.config] - Persisted sun.proxy.$Proxy506 to /data/geoserver/data/global.xml
2013-04-08 19:35:24,361 INFO [catalog.rest] - PUT layer dragouni:line_crs

But I am not sure, what exactly that means.

I am aware, that I am not allowed to change the name or resource of the layer (in such a case I would expect status code 403), but should it be possible to change the defualtStyle?

Michal

Dne 08.04.2013 18:48, sredl@anonymised.com napsal:

Dear all,

I cannot change the default style of a layer using the REST API.

I GET the Layer, change some values and PUT it back, get 200 OK. Other
things are nicely changed, but the 'defaultStyle' is not.

It goes like this:

GET Layer:

{"layer":{"name":"line_crs","type":"VECTOR","defaultStyle":{"name":"line","href":"http://erra.ccss.cz:8080/geoserver/rest/styles/line.json" [1]},"resource":{"@class":"featureType","name":"line_crs","href":"http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/datastores/line_crs/featuretypes/line_crs.json" [2]},"enabled":true,"attribution":{"logoWidth":0,"logoHeight":0}}}

PUT Layer:

{"layer": {"resource": {"href":

"http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/datastores/line_crs/featuretypes/line_crs.json" [2],

"name": "line_crs", "@class": "featureType"}, "name": "line_crs",
"enabled": "false", "defaultStyle": {"href":

"http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/styles/line_crs.json" [3],

"name": "line_crs"}, "advertised": "false", "attribution":
{"logoWidth": "11", "logoHeight": "12"}, "type": "VECTOR", "queryable":
"false"}}

response: 200 OK

GET Layer:

{"layer":{"name":"line_crs","type":"VECTOR","defaultStyle":{"name":"line","href":"http://erra.ccss.cz:8080/geoserver/rest/styles/line.json" [1]},"resource":{"@class":"featureType","name":"line_crs","href":"http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/datastores/line_crs/featuretypes/line_crs.json" [2]},"enabled":false,"advertised":false,"queryable":false,"attribution":{"logoWidth":11,"logoHeight":12}}}

So enable, advertised, queryable, attribution logoWidth and logoHeight
have changed, the default style has not. I have checked the provided
style link in the browser, it works. I have assigned the style in the
web interface a get the expected result:

{"layer":{"name":"line_crs","type":"VECTOR","defaultStyle":{"name":"line_crs","href":"http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/styles/line_crs.json" [3]},"resource":{"@class":"featureType","name":"line_crs","href":"http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/datastores/line_crs/featuretypes/line_crs.json" [2]},"enabled":false,"advertised":false,"queryable":false,"attribution":{"logoWidth":11,"logoHeight":12}}}

I am using GeoServer 2.3-RC1. Any suggestions are welcome.

Thank you in advance,

Michal

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html [4]
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users [5]

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html [4]

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users [5]

Links:
------
[1] http://erra.ccss.cz:8080/geoserver/rest/styles/line.json
[2]

http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/datastores/line_crs/featuretypes/line_crs.json
[3]

http://erra.ccss.cz:8080/geoserver/rest/workspaces/dragouni/styles/line_crs.json
[4] http://www.cisco.com/web/learning/employer_resources/index.html
[5] https://lists.sourceforge.net/lists/listinfo/geoserver-users
[6] resource:FeatureTypeInfoImpl

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Mon, Apr 8, 2013 at 11:30 PM, Robert Kulawik <rob-news@anonymised.com> wrote:

Hi Michal,

I discover this behavior in the last days too but I don't found a solution
to solve it yet. In the Geoserver version 2.2-beta2 it was still possible
to overwrite the defaultStyle after layer storage using the REST interface.
In the versions 2.2.2 and newer it was no longer possible.

Hum... maybe it's this one?
http://jira.codehaus.org/browse/GEOS-3694

Unfortunately the patch attached to that ticket does not have a test, it
cannot be committed as is.

Cheers
Andrea

--

GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it 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

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

Hi Andrea,

thank you for attention! It looks promising, I just wonder about the fact that the patch is three years old, and according to what Robert says, it used to be working until v.2.2.2.

Michal

Dne 09.04.2013 17:41, Andrea Aime napsal:

On Mon, Apr 8, 2013 at 11:30 PM, Robert Kulawik <rob-news@anonymised.com> wrote:

Hi Michal,

I discover this behavior in the last days too but I don't found a solution to solve it yet. In the Geoserver version 2.2-beta2 it was still possible to overwrite the defaultStyle after layer storage using the REST interface. In the versions 2.2.2 and newer it was no longer possible.

Hum... maybe it's this one?
http://jira.codehaus.org/browse/GEOS-3694 [1]

Unfortunately the patch attached to that ticket does not have a test,
it cannot be committed as is.

Cheers
Andrea

--

==
GeoServer training in Milan, 6th & 7th June 2013!
Visit http://geoserver.geo-solutions.it [2] 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 [3]
http://twitter.com/geosolutions_it [4]

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

Links:
------
[1] http://jira.codehaus.org/browse/GEOS-3694
[2] http://geoserver.geo-solutions.it/
[3] http://www.geo-solutions.it
[4] http://twitter.com/geosolutions_it

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

On Mon, Apr 15, 2013 at 11:34 AM, <sredl@anonymised.com> wrote:

Hi Andrea,

thank you for attention! It looks promising, I just wonder about the fact
that the patch is three years old, and according to what Robert says, it
used to be working until v.2.2.2.

That is indeed strange

Cheers
Andrea

--

GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it 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

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