Skip to content

Commit

Permalink
Post styles on GeoServer with raw=True
Browse files Browse the repository at this point in the history
  • Loading branch information
index-git authored and jirik committed Sep 21, 2023
1 parent ff71ab7 commit 0c5c91b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
1 change: 1 addition & 0 deletions src/geoserver/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0c5c91b

Please sign in to comment.