geosolutions-it / ogc-testbed

Management repository for OGC testbed and other initiatives
0 stars 0 forks source link

[Tiles API + Styles API] Tiles cached are not updated after PUT request of a style #76

Open allyoucanmap opened 4 years ago

allyoucanmap commented 4 years ago

Tiles are not removed from disk when a style is updated via PUT request.

Request example

curl "http://localhost:8080/geoserver/ogc/styles/styles/vtp__hillshade" -X PUT -H "Sec-Fetch-Mode: cors" -H "Origin: http://localhost:8080" -H "Accept-Encoding: gzip, deflate, br" -H "Accept-Language: en-US,en;q=0.9" -H "Authorization: Basic YWRtaW46Z2Vvc2VydmVy" -H "Cookie: GS_FLOW_CONTROL=GS_CFLOW_-1ddf1d37:16b6ae88dc9:-540d; JSESSIONID=node09jgd2jtzmqap1v163v4y4cnjb8.node0; csrftoken=iEAj72dAFaQN1m0eOKe2XSi1RCcTkT7McXbCUJ1xLGPxLQT7sEELS5ygz0WqFm8T; sessionid=lkwvci0cmimdo4ffzqumercvx6v5oo7f" -H "Connection: keep-alive" -H "Pragma: no-cache" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36" -H "Content-Type: application/vnd.ogc.sld+xml" -H "Accept: application/json, text/plain, */*" -H "Cache-Control: no-cache" -H "Referer: http://localhost:8080/" -H "Sec-Fetch-Site: same-origin" --data-binary ^"^<?xml version=^\^"1.0^\^" encoding=^\^"UTF-8^\^" standalone=^\^"yes^\^"?^>^

^<StyledLayerDescriptor version=^\^"1.0.0^\^" xsi:schemaLocation=^\^"http://www.opengis.net/sld StyledLayerDescriptor.xsd^\^" xmlns=^\^"http://www.opengis.net/sld^\^" xmlns:ogc=^\^"http://www.opengis.net/ogc^\^" xmlns:xlink=^\^"http://www.w3.org/1999/xlink^\^" xmlns:xsi=^\^"http://www.w3.org/2001/XMLSchema-instance^\^"^>^

  ^<NamedLayer^>^

    ^<Name^>Daraa_DTED^</Name^>^

    ^<UserStyle^>^

      ^<Name^>Daraa_DTED^</Name^>^

      ^<Title^>Daraa_DTED^</Title^>^

      ^<FeatureTypeStyle^>^

        ^<Rule^>^

          ^<Name/^>^

          ^<RasterSymbolizer^>^

            ^<ColorMap type=^\^"ramp^\^"^>^

              ^<ColorMapEntry color=^\^"^#e7cda0^\^" quantity=^\^"-371^\^"/^>^

              ^<ColorMapEntry color=^\^"^#95b187^\^" quantity=^\^"-360^\^" opacity=^\^"0.59^\^"/^>^

              ^<ColorMapEntry color=^\^"^#cac86b^\^" quantity=^\^"-216^\^"/^>^

              ^<ColorMapEntry color=^\^"^#cecd9d^\^" quantity=^\^"-100^\^"/^>^

              ^<ColorMapEntry color=^\^"^#cecd9d^\^" quantity=^\^"0^\^"/^>^

              ^<ColorMapEntry color=^\^"^#c5ae88^\^" quantity=^\^"355^\^"/^>^

              ^<ColorMapEntry color=^\^"^#a8f11b^\^" quantity=^\^"811^\^"/^>^

              ^<ColorMapEntry color=^\^"^#847252^\^" quantity=^\^"1171^\^"/^>^

              ^<ColorMapEntry color=^\^"^#9b8f7e^\^" quantity=^\^"1500^\^"/^>^

              ^<ColorMapEntry color=^\^"^#f1e8dd^\^" quantity=^\^"1801^\^"/^>^

            ^</ColorMap^>^

          ^</RasterSymbolizer^>^

        ^</Rule^>^

      ^</FeatureTypeStyle^>^

    ^</UserStyle^>^

  ^</NamedLayer^>^

^</StyledLayerDescriptor^>^" --compressed
aaime commented 4 years ago

Just to be sure, the style is associated to the layer in the configuration yes?

aaime commented 4 years ago

Right now I see the following, there is no style called "hillshade", probably configuration got modified:

Selezione_963

aaime commented 4 years ago

Also found this, maybe it was not associated indeed: https://osgeo-org.atlassian.net/browse/GEOS-9371