GEOS-5820 Disabling security does not work as expected