Hi Ian,
There are no permissions set on anything, so not that I'm afraid.

The logs for a /rest/layergroups request show this (GeoServer Debug level):

12 Feb 15:58:32 DEBUG 
[org.geoserver.security.RESTfulPathBasedFilterInvocationDefinitionMap] - 
Converted URL to lowercase, from: '/rest/layergroups'; to: '/rest/layergroups'  
and httpMethod= GET
12 Feb 15:58:32 DEBUG 
[org.geoserver.security.RESTfulPathBasedFilterInvocationDefinitionMap] - 
~~~~~~~~~~ antPath= /** methodList= [GET]
12 Feb 15:58:32 DEBUG 
[org.geoserver.security.RESTfulPathBasedFilterInvocationDefinitionMap] - 
Candidate is: '/rest/layergroups'; antPath is /**; matchedPath=true; 
matchedMethods=true
12 Feb 15:58:32 DEBUG 
[org.geoserver.security.RESTfulPathBasedFilterInvocationDefinitionMap] - 
returning ADMIN
12 Feb 15:58:32 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler 
mapping found for [/rest/layergroups]
12 Feb 15:58:32 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler 
mapping found for [/rest/layergroups]
12 Feb 15:58:32 DEBUG [org.geoserver] - Thread 40 locking in mode READ
12 Feb 15:58:32 DEBUG [org.geoserver] - Thread 40 got the lock in mode READ
12 Feb 15:58:32 DEBUG [org.geoserver.catalog.rest] -  in workspace null
12 Feb 15:58:32 DEBUG [org.geoserver] - Thread 40 releasing the lock in mode 
READ
12 Feb 15:58:32 DEBUG [org.geoserver.filters] - Compressing output for 
mimetype: text/html
12 Feb 15:58:32 DEBUG 
[org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1] - 
SecurityContextHolder now cleared, as request processing completed

GeoTools debug level is completely empty for a rest/layergroups request



And the /rest/styles request shows an exception (geoserver debug):

12 Feb 15:59:28 DEBUG 
[org.geoserver.security.RESTfulPathBasedFilterInvocationDefinitionMap] - 
Converted URL to lowercase, from: '/rest/styles'; to: '/rest/styles'  and 
httpMethod= GET
12 Feb 15:59:28 DEBUG 
[org.geoserver.security.RESTfulPathBasedFilterInvocationDefinitionMap] - 
~~~~~~~~~~ antPath= /** methodList= [GET]
12 Feb 15:59:28 DEBUG 
[org.geoserver.security.RESTfulPathBasedFilterInvocationDefinitionMap] - 
Candidate is: '/rest/styles'; antPath is /**; matchedPath=true; 
matchedMethods=true
12 Feb 15:59:28 DEBUG 
[org.geoserver.security.RESTfulPathBasedFilterInvocationDefinitionMap] - 
returning ADMIN
12 Feb 15:59:28 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler 
mapping found for [/rest/styles]
12 Feb 15:59:28 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler 
mapping found for [/rest/styles]
12 Feb 15:59:28 DEBUG [org.geoserver] - Thread 153 locking in mode READ
12 Feb 15:59:28 DEBUG [org.geoserver] - Thread 153 got the lock in mode READ
12 Feb 15:59:28 DEBUG [org.geoserver.catalog.rest] - GET styles
12 Feb 15:59:28 DEBUG [org.geoserver] - Thread 153 releasing the lock in mode 
READ
12 Feb 15:59:28 ERROR [org.geoserver.rest] - Exception intercepted
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        at org.geoserver.ows.util.OwsUtils.get(OwsUtils.java:162)
        at 
org.geoserver.rest.format.ReflectiveHTMLFormat$ObjectToMapWrapper.wrap(ReflectiveHTMLFormat.java:288)
        at freemarker.ext.beans.BeanModel.wrap(BeanModel.java:325)
        at freemarker.ext.beans.IteratorModel.next(IteratorModel.java:134)
        at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:164)
        at freemarker.core.Environment.visit(Environment.java:428)
        at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
        at freemarker.core.Environment.visit(Environment.java:221)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:221)
        at freemarker.core.Environment.process(Environment.java:199)
        at freemarker.template.Template.process(Template.java:237)
        at 
org.restlet.ext.freemarker.TemplateRepresentation.write(TemplateRepresentation.java:112)
        at 
com.noelios.restlet.http.HttpServerCall.writeResponseBody(HttpServerCall.java:342)
        at 
com.noelios.restlet.http.HttpServerCall.sendResponse(HttpServerCall.java:306)
        at 
com.noelios.restlet.ext.servlet.ServletCall.sendResponse(ServletCall.java:306)
        at 
org.geoserver.rest.GeoServerServletConverter.commit(GeoServerServletConverter.java:54)
        at 
com.noelios.restlet.ext.servlet.ServletConverter.service(ServletConverter.java:130)
        at 
org.geoserver.rest.RESTDispatcher.handleRequestInternal(RESTDispatcher.java:87)
        at 
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
        at 
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
        at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
        at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
        at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
        at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at 
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at 
org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at 
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75)
        at 
org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71)
        at 
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
        at 
org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at 
org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
        at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
        at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
        at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
        at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
        at 
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
        at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
        at 
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
        at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
        at 
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
        at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at 
org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:54)
        at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
        at 
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
        at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
        at 
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
        at 
org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:83)
        at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
        at 
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
        at 
org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53)
        at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
        at 
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
        at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at 
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
        at 
org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:135)
        at 
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
        at 
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:76)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at 
org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at 
org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at 
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
        at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
        at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
        at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor469.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.geoserver.ows.util.OwsUtils.get(OwsUtils.java:159)
        ... 105 more
Caused by: java.io.IOException: No such resource: OS VectorMap Local - Areas.sld
        at 
org.geoserver.config.GeoServerDataDirectory.parsedStyle(GeoServerDataDirectory.java:1227)
        at org.geoserver.catalog.ResourcePool.getStyle(ResourcePool.java:1746)
        at 
org.geoserver.catalog.impl.StyleInfoImpl.getStyle(StyleInfoImpl.java:102)
        at sun.reflect.GeneratedMethodAccessor242.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.geoserver.catalog.impl.ModificationProxy.invoke(ModificationProxy.java:146)
        at $Proxy10.getStyle(Unknown Source)
        ... 109 more
12 Feb 15:59:28 DEBUG 
[org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1] - 
SecurityContextHolder now cleared, as request processing completed




---- On Thu, 11 Feb 2016 15:46:35 +0000 Ian Turton<[email protected]> 
wrote ---- 

Permissions? failing that turn logging up and see what shows up

curl -u admin:geoserver -v http://localhost:4080/geoserver/rest/styles.json
and 
curl -u admin:geoserver -v http://localhost:4080/geoserver/rest/styles

both work fine for me on a vanilla 2.8.1 install as do the layergroups ones too.


Ian







On 11 February 2016 at 15:35, Jonathan Moules 
<[email protected]> wrote:

Hi List,
    On a 2.7.1 install, the REST API is giving what appear to be anomalous 
results.
    A GET request to ../rest/layers correctly lists all of the layers on the 
instance.
    
    But
    /rest/layergroups and /rest/styles both return empty lists despite there 
being lots of both of them.
    
    Further confusion:
    /styles(.html) = no results (and an empty html page source)
    /styles.json|xml = 10 results (both giving the same 10) - there are over 
100 styles on the server.
    
    /layergroups returns empty across all three formats.
    
    Any thoughts on what's going on? Is there a reason they wouldn't be listed? 
The docs don't suggest any.
    Cheers,
    Jonathan



------------------------------------------------------------------------------
 Site24x7 APM Insight: Get Deep Visibility into Application Performance
 APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
 Monitor end-to-end web transactions and take corrective actions now
 Troubleshoot faster and improve end-user experience. Signup Now!
 http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
 Geoserver-users mailing list
 [email protected]
 https://lists.sourceforge.net/lists/listinfo/geoserver-users
 





-- 
Ian Turton

 
 



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to