Discussion:
[Geoserver-users] Integrated gwc problem
dracic
2017-04-06 12:20:31 UTC
Permalink
I have problem since I upgraded from 2.7.x to 2.10.x. The problem is similar
to the one that supposed to be resolved:

http://www.mail-archive.com/geoserver-***@lists.sourceforge.net/msg09204.html
<http://www.mail-archive.com/geoserver-***@lists.sourceforge.net/msg09204.html>

I have geoserver behind NGINX, and everything works except tile seeding.
When i click on seed button I get:

"Unknown or malformed request. Please try again, somtimes the form is not
properly received. This frequently happens on the first POST after a
restart. The POST was to /geoserver/gwc/rest/seed/nurc:Pk50095"

To exclude proxy base url settings (which are btw. correctly set in gs
settings) i tried the same thing directly on tomcat instance with the same
result. Also tried to set PROXY_BASE_URL in Geoserver web.xml. The only
thing I get in logs is:

/2017-04-06 12:15:49,881 DEBUG [geoserver.filters] - Compressing output for
mimetype: text/html;charset=UTF-8
2017-04-06 12:15:49,882 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] - SecurityContextHolder
now cleared, as request processing completed
2017-04-06 12:15:54,310 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/web/**'
2017-04-06 12:15:54,310 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/gwc/rest/web/**'
2017-04-06 12:15:54,310 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/'
2017-04-06 12:15:54,310 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/j_spring_security_check'
2017-04-06 12:15:54,310 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/j_spring_security_check/'
2017-04-06 12:15:54,310 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/j_spring_security_logout'
2017-04-06 12:15:54,310 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/j_spring_security_logout/'
2017-04-06 12:15:54,310 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/rest/**'
2017-04-06 12:15:54,310 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/gwc/rest/**'
2017-04-06 12:15:54,310 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Matched Path:
/gwc/rest/seed/nurc:pk50095, QueryString: null with /gwc/rest/**
2017-04-06 12:15:54,310 DEBUG
[security.RESTfulPathBasedFilterInvocationDefinitionMap] - Converted URL to
lowercase, from: '/gwc/rest/seed/nurc:pk50095'; to:
'/gwc/rest/seed/nurc:pk50095' and httpMethod= GET
2017-04-06 12:15:54,310 DEBUG
[security.RESTfulPathBasedFilterInvocationDefinitionMap] - ~~~~~~~~~~
antPath= /** methodList= [GET]
2017-04-06 12:15:54,310 DEBUG
[security.RESTfulPathBasedFilterInvocationDefinitionMap] - Candidate is:
'/gwc/rest/seed/nurc:pk50095'; antPath is /**; matchedPath=true;
matchedMethods=true
2017-04-06 12:15:54,310 DEBUG
[security.RESTfulPathBasedFilterInvocationDefinitionMap] - returning ADMIN
2017-04-06 12:15:54,312 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/gwc/rest/seed/nurc:Pk50095]
2017-04-06 12:15:54,343 DEBUG [geoserver.filters] - Compressing output for
mimetype: text/html;charset=ISO-8859-1
2017-04-06 12:15:54,351 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] - SecurityContextHolder
now cleared, as request processing completed
2017-04-06 12:15:54,412 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/web/geowebcache_logo.png, QueryString: null';
against '/web/**'
2017-04-06 12:15:54,412 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/web/geowebcache_logo.png, QueryString: null';
against '/gwc/rest/web/**'
2017-04-06 12:15:54,412 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Matched Path:
/gwc/rest/web/geowebcache_logo.png, QueryString: null with /gwc/rest/web/**
2017-04-06 12:15:54,413 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/gwc/rest/web/geowebcache_logo.png]
2017-04-06 12:15:54,421 DEBUG [geoserver.filters] - Not compressing output
for mimetype: image/png
2017-04-06 12:15:54,421 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] - SecurityContextHolder
now cleared, as request processing completed
2017-04-06 12:15:54,422 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/web/gwc.css, QueryString: null'; against
'/web/**'
2017-04-06 12:15:54,422 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/web/gwc.css, QueryString: null'; against
'/gwc/rest/web/**'
2017-04-06 12:15:54,422 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Matched Path:
/gwc/rest/web/gwc.css, QueryString: null with /gwc/rest/web/**
2017-04-06 12:15:54,450 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/gwc/rest/web/gwc.css]
2017-04-06 12:15:54,451 DEBUG [geoserver.filters] - Compressing output for
mimetype: text/css
2017-04-06 12:15:54,451 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] - SecurityContextHolder
now cleared, as request processing completed
2017-04-06 12:15:54,589 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/web/**'
2017-04-06 12:15:54,589 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/gwc/rest/web/**'
2017-04-06 12:15:54,589 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/'
2017-04-06 12:15:54,589 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/j_spring_security_check'
2017-04-06 12:15:54,589 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/j_spring_security_check/'
2017-04-06 12:15:54,589 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/j_spring_security_logout'
2017-04-06 12:15:54,589 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/j_spring_security_logout/'
2017-04-06 12:15:54,589 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/rest/**'
2017-04-06 12:15:54,589 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/gwc/rest/**'
2017-04-06 12:15:54,589 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/**'
2017-04-06 12:15:54,589 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Request matched by
universal pattern '/**'
2017-04-06 12:15:54,589 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Matched Path: ,
QueryString: null with /**
2017-04-06 12:15:54,590 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/]
2017-04-06 12:15:54,590 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/]
2017-04-06 12:15:54,590 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/]
2017-04-06 12:15:54,590 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/]
2017-04-06 12:15:54,591 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] - SecurityContextHolder
now cleared, as request processing completed
2017-04-06 12:15:55,986 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/web/**'
2017-04-06 12:15:55,986 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/gwc/rest/web/**'
2017-04-06 12:15:55,986 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/'
2017-04-06 12:15:55,986 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/j_spring_security_check'
2017-04-06 12:15:55,986 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/j_spring_security_check/'
2017-04-06 12:15:55,986 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/j_spring_security_logout'
2017-04-06 12:15:55,986 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/j_spring_security_logout/'
2017-04-06 12:15:55,986 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/rest/**'
2017-04-06 12:15:55,986 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/rest/seed/nurc:pk50095, QueryString: null'; against
'/gwc/rest/**'
2017-04-06 12:15:55,986 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Matched Path:
/gwc/rest/seed/nurc:pk50095, QueryString: null with /gwc/rest/**
2017-04-06 12:15:55,987 DEBUG
[security.RESTfulPathBasedFilterInvocationDefinitionMap] - Converted URL to
lowercase, from: '/gwc/rest/seed/nurc:pk50095'; to:
'/gwc/rest/seed/nurc:pk50095' and httpMethod= POST
2017-04-06 12:15:55,987 DEBUG
[security.RESTfulPathBasedFilterInvocationDefinitionMap] - ~~~~~~~~~~
antPath= /** methodList= [GET]
2017-04-06 12:15:55,987 DEBUG
[security.RESTfulPathBasedFilterInvocationDefinitionMap] - Candidate is:
'/gwc/rest/seed/nurc:pk50095'; antPath is /**; matchedPath=true;
matchedMethods=false
2017-04-06 12:15:55,987 DEBUG
[security.RESTfulPathBasedFilterInvocationDefinitionMap] - ~~~~~~~~~~
antPath= /** methodList= [POST, DELETE, PUT]
2017-04-06 12:15:55,987 DEBUG
[security.RESTfulPathBasedFilterInvocationDefinitionMap] - Candidate is:
'/gwc/rest/seed/nurc:pk50095'; antPath is /**; matchedPath=true;
matchedMethods=true
2017-04-06 12:15:55,987 DEBUG
[security.RESTfulPathBasedFilterInvocationDefinitionMap] - returning ADMIN
2017-04-06 12:15:55,988 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/gwc/rest/seed/nurc:Pk50095]
2017-04-06 12:15:56,027 DEBUG [geoserver.filters] - Compressing output for
mimetype: text/plain;charset=ISO-8859-1
2017-04-06 12:15:56,027 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] - SecurityContextHolder
now cleared, as request processing completed
2017-04-06 12:15:56,118 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/web/**'
2017-04-06 12:15:56,118 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/gwc/rest/web/**'
2017-04-06 12:15:56,118 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/'
2017-04-06 12:15:56,118 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/j_spring_security_check'
2017-04-06 12:15:56,118 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/j_spring_security_check/'
2017-04-06 12:15:56,118 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/j_spring_security_logout'
2017-04-06 12:15:56,118 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/j_spring_security_logout/'
2017-04-06 12:15:56,118 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/rest/**'
2017-04-06 12:15:56,118 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/gwc/rest/**'
2017-04-06 12:15:56,118 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: , QueryString: null'; against '/**'
2017-04-06 12:15:56,118 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Request matched by
universal pattern '/**'
2017-04-06 12:15:56,118 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Matched Path: ,
QueryString: null with /**
2017-04-06 12:15:56,120 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/]
2017-04-06 12:15:56,120 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/]
2017-04-06 12:15:56,120 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/]
2017-04-06 12:15:56,120 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/]
2017-04-06 12:15:56,120 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] - SecurityContextHolder
now cleared, as request processing completed
2017-04-06 12:15:57,443 DEBUG [geoserver.wps] - Removing statuses matching
[[[ NOT [ completionTime IS NULL ] ] AND
***@a04a0a1] AND [[ NOT [ lastUpdated IS
NULL ] ] AND ***@5004b8d]]
2017-04-06 12:16:24,945 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /web/wicket/bookmarkable/org.geoserver.web.admin.logpage,
QueryString: null'; against '/web/**'
2017-04-06 12:16:24,945 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Matched Path:
/web/wicket/bookmarkable/org.geoserver.web.admin.logpage, QueryString: null
with /web/**
2017-04-06 12:16:24,947 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/web/wicket/bookmarkable/org.geoserver.web.admin.LogPage]
2017-04-06 12:16:24,947 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/web/wicket/bookmarkable/org.geoserver.web.admin.LogPage]
2017-04-06 12:16:24,947 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/web/wicket/bookmarkable/org.geoserver.web.admin.LogPage]
2017-04-06 12:16:24,947 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/web/wicket/bookmarkable/org.geoserver.web.admin.LogPage]
2017-04-06 12:16:24,947 DEBUG [org.geoserver] - Thread 66 locking in mode
WRITE
2017-04-06 12:16:24,947 DEBUG [org.geoserver] - Thread 66 got the lock in
mode WRITE/

Any idea? This was functional on 2.7.x



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Integrated-gwc-problem-tp5316121.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
dracic
2017-04-10 09:42:56 UTC
Permalink
Just to update you about the problem. I tried to disable direct integration
with GeoServer WMS, with no success. Also when I try to reload GWC settings
I get:

Unknown or malformed request. Please try again, somtimes the form is not
properly received. This frequently happens on the first POST after a
restart. The POST was to /geoserver/gwc/rest/reload

I have gs instance with this plugins enabled:

app-schema-plugin, charts-plugin, control-flow-plugin, css-plugin,
feature-pregeneralized-plugin, imagemap-plugin, imagemosaic-jdbc-plugin
importer-bdb-plugin, importer-plugin, libjpeg-turbo-plugin, pyramid-plugin,
querylayer-plugin, sqlserver-plugin, wps-plugin, ysld-plugin
colormap-plugin, geofence-plugin, geopkg-plugin, jms-cluster-plugin,
mbtiles-plugin, params-extractor-plugin, pgraster-plugin, sldservice-plugin
spatialite-plugin, vectortiles-plugin

Then I disabled all plugins, except imagemap & pyramidlayer plugin, and the
problem was gone. So tried to add plugins one by one to see which one is
problematic, and the problem reappeared with params-extractor plugin. So I
suppose Parameters extractor plugin messes something with GWC rest. Can
anyone confirm this?



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Integrated-gwc-problem-tp5316121p5316607.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Jason Newmoyer
2017-05-05 14:09:07 UTC
Permalink
I am also getting this error with any seed request via REST (including from
the GWC UI).

I started getting it after upgrading from 2.10.0 to 2.11.0 and I am NOT
using params-extractor plugin. Just WPS and VT plugins for me.

"Unknown or malformed request. Please try again, somtimes the form is not
properly received. This frequently happens on the first POST after a
restart."


Jason Newmoyer
Newmoyer Geospatial Solutions
843.606.0424
Post by dracic
Just to update you about the problem. I tried to disable direct integration
with GeoServer WMS, with no success. Also when I try to reload GWC settings
Unknown or malformed request. Please try again, somtimes the form is not
properly received. This frequently happens on the first POST after a
restart. The POST was to /geoserver/gwc/rest/reload
app-schema-plugin, charts-plugin, control-flow-plugin, css-plugin,
feature-pregeneralized-plugin, imagemap-plugin, imagemosaic-jdbc-plugin
importer-bdb-plugin, importer-plugin, libjpeg-turbo-plugin, pyramid-plugin,
querylayer-plugin, sqlserver-plugin, wps-plugin, ysld-plugin
colormap-plugin, geofence-plugin, geopkg-plugin, jms-cluster-plugin,
mbtiles-plugin, params-extractor-plugin, pgraster-plugin, sldservice-plugin
spatialite-plugin, vectortiles-plugin
Then I disabled all plugins, except imagemap & pyramidlayer plugin, and the
problem was gone. So tried to add plugins one by one to see which one is
problematic, and the problem reappeared with params-extractor plugin. So I
suppose Parameters extractor plugin messes something with GWC rest. Can
anyone confirm this?
--
View this message in context: http://osgeo-org.1560.x6.
nabble.com/Integrated-gwc-problem-tp5316121p5316607.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Kevin Smith
2017-05-13 00:04:54 UTC
Permalink
It looks like this error occurs when several different fields (list,
kill_thread, kill_all, or minX) have been looked for in the form, and
all of them are null.

https://github.com/GeoWebCache/geowebcache/blob/master/geowebcache/rest/src/main/java/org/geowebcache/rest/seed/SeedFormRestlet.java#L155

Try using a web debugger to view the form content as it is being
POSTed. That may give a clue as to what's going on.
Post by dracic
Unknown or malformed request. Please try again, somtimes the form is not
properly received
--
Kevin Michael Smith
<***@draconic.ca>
Loading...