Skip to content

Commit 21bf365

Browse files
committed
allow non-admins to request GS REST APIs
1 parent ecf1350 commit 21bf365

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docker/geoserver/entrypoint.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,15 @@ if [ "${GEOSERVER_CORS_ENABLED}" = "true" ] || [ "${GEOSERVER_CORS_ENABLED}" = "
240240
fi
241241
fi
242242

243+
echo '<?xml version="1.0" encoding="UTF-8"?>
244+
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
245+
<beans>
246+
<bean id="SldXmlReaderExclusionFilter" class="org.geoserver.platform.ClassExclusionFilter">
247+
<property name="beanClass" value="org.geoserver.rest.catalog.AdminRequestCallback" />
248+
</bean>
249+
</beans>' \
250+
> /usr/local/tomcat/webapps/geoserver/WEB-INF/classes/applicationContext.xml
251+
243252
if [ ${FORCE_REINIT} = "true" ] || [ ${FORCE_REINIT} = "True" ] || [ ! -e "${GEOSERVER_DATA_DIR}/geoserver_init.lock" ]; then
244253
# Run async configuration, it needs Geoserver to be up and running
245254
# executes step configure-geoserver from task.py file

0 commit comments

Comments
 (0)