The file does not exist but is used by the GeoServerExceptionTranslationFilter.
The simplest solution is to kick out the accessDeniedErrorPage property. At the moment, it is not possible to configure such a page using the admin GUI and I think this functionality is not needed.
Opinions
Christian
–
DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH
The file does not exist but is used by the GeoServerExceptionTranslationFilter.
The simplest solution is to kick out the accessDeniedErrorPage property. At the moment, it is not possible to configure such a page using the admin GUI and I think this functionality is not needed.
Opinions
Christian
–
DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH
–
DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH
You can use GeoServerResourceLoader to access webapp files in earlier GeoServer versions. It is a bit magic hence the simplification and explicit method.
The file does not exist but is used by the GeoServerExceptionTranslationFilter.
The simplest solution is to kick out the accessDeniedErrorPage property. At the moment, it is not possible to configure such a page using the admin GUI and I think this functionality is not needed.
Opinions
Christian
–
DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH
–
DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH
I think GeoServerResoureLoader does not help here. As far as I understand the code the resource loader is for retrieving resources from the data directory. I need
ServletContext.getRealPath(…)
to check if an optional access denied error page is reachable. (HTTP response code 403).
At the moment, I have no idea how to get a reference to the current servlet context object.
Another idea for 2.5.x and 2.4.x:
I could make an individual tiny bug fix for these 2 branches. I can check if the page attribute has the default value “/accessDenied.jsp” and if it has, ignore it. Ugly, but it would work.
You can use GeoServerResourceLoader to access webapp files in earlier GeoServer versions. It is a bit magic hence the simplification and explicit method.
The file does not exist but is used by the GeoServerExceptionTranslationFilter.
The simplest solution is to kick out the accessDeniedErrorPage property. At the moment, it is not possible to configure such a page using the admin GUI and I think this functionality is not needed.
Opinions
Christian
–
DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH
–
DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH
In older version of GeoServer GeoServerResource loader was insane and would search in the servlet context as well! I moved this functionality to GeoServerExtensions since it had a copy of the servlet context.
Still if you don’t believe me here is it adding the location:
I think GeoServerResoureLoader does not help here. As far as I understand the code the resource loader is for retrieving resources from the data directory. I need
ServletContext.getRealPath(…)
to check if an optional access denied error page is reachable. (HTTP response code 403).
At the moment, I have no idea how to get a reference to the current servlet context object.
Another idea for 2.5.x and 2.4.x:
I could make an individual tiny bug fix for these 2 branches. I can check if the page attribute has the default value “/accessDenied.jsp” and if it has, ignore it. Ugly, but it would work.
You can use GeoServerResourceLoader to access webapp files in earlier GeoServer versions. It is a bit magic hence the simplification and explicit method.
The file does not exist but is used by the GeoServerExceptionTranslationFilter.
The simplest solution is to kick out the accessDeniedErrorPage property. At the moment, it is not possible to configure such a page using the admin GUI and I think this functionality is not needed.
Opinions
Christian
–
DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH
–
DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH