I am writing a feature into postgis behind geoserver using wfst and using jquery ajax call. When the user is authenticated it successfully adds a feature. When user is not authenticated it still returns to the success function instead of error function. When i log the returned data using: data.getElementsByTagName("ExceptionText").childNodes.nodeValue; I get this exception message:
Error performing insert: Cannot access critical_areas with the current privileges
Which makes sense as the user is not authenticated, but instead of going to the error function why is it still returning this to the success function? Can you please suggest what i might be doing wrong?