diff --git a/CHANGELOG.md b/CHANGELOG.md index c1f0abe86..4f4798dfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ - requests to [WMS](doc/endpoints.md#web-map-service) and [WFS](doc/endpoints.md#web-feature-service) endpoints - [#868](https://github.com/LayerManager/layman/issues/868) Responses to [GET Workspace Layer Metadata Comparison](doc/rest.md#get-workspace-layer-metadata-comparison) and [GET Workspace Map Metadata Comparison](doc/rest.md#get-workspace-map-metadata-comparison) do not respect [HTTP header `X-Forwarded-Prefix`](doc/client-proxy.md#x-forwarded-prefix-http-header) of the request intentionally, in order to keep URLs in canonical form. - [#868](https://github.com/LayerManager/layman/issues/868) Relations between map and [internal layers](doc/models.md#internal-map-layer) are updated in `map_layer` table when calling [POST Workspace Maps](doc/rest.md#post-workspace-maps), [PATCH Workspace Map](doc/rest.md#patch-workspace-map), [DELETE Workspace Map](doc/rest.md#delete-workspace-map), and [DELETE Workspace Maps](doc/rest.md#delete-workspace-maps). +- [#927](https://github.com/LayerManager/layman/issues/927) Send styles to GeoServer with [`raw`](https://docs.geoserver.org/2.21.x/en/user/rest/api/styles.html#raw) param set to `True`. - [#880](https://github.com/LayerManager/layman/issues/880) Use Docker Compose v2 (`docker compose`) in Makefile without `compatibility` flag and remove `Makefile_docker-compose_v1` file. Docker containers are named according to Docker Compose v2 and may have different name after upgrade. - [#765](https://github.com/LayerManager/layman/issues/765) Stop saving OAuth2 claims in filesystem, use prime DB schema only. - [#893](https://github.com/LayerManager/layman/issues/893) It is possible to specify logging level by new environment variable [LAYMAN_LOGLEVEL](doc/env-settings.md#LAYMAN_LOGLEVEL). Default level is `INFO`. diff --git a/src/geoserver/util.py b/src/geoserver/util.py index 8029d6dc6..f32817c4a 100644 --- a/src/geoserver/util.py +++ b/src/geoserver/util.py @@ -405,6 +405,7 @@ def post_workspace_sld_style(geoserver_workspace, layername, sld_file, launder_f 'Content-type': sld_content_type, }, auth=GS_AUTH, + params={'raw': True}, timeout=GS_REST_TIMEOUT, ) if response.status_code == 400: diff --git a/tests/dynamic_data/publications/layer_style/sld_wellknownname_test.py b/tests/dynamic_data/publications/layer_style/sld_wellknownname_test.py index 22a3eacaa..28b9534db 100644 --- a/tests/dynamic_data/publications/layer_style/sld_wellknownname_test.py +++ b/tests/dynamic_data/publications/layer_style/sld_wellknownname_test.py @@ -1,6 +1,5 @@ from lxml import etree as ET import requests -import pytest from geoserver import util as gs_util from micka import NAMESPACES @@ -9,7 +8,6 @@ from tests.dynamic_data import base_test -@pytest.mark.xfail(reason="Geoserver removes default values.") class TestPublication(base_test.TestSingleRestPublication): workspace = 'dynamic_test_workspace_sld_wellknownname' publication_type = process_client.LAYER_TYPE