2

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")[0].childNodes[0].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?

  • There's no error in the ajax so error is not called – Ian Turton Jan 25 '16 at 18:38
  • So how to handle this exception then? – user2139428 Jan 26 '16 at 16:44
  • Inform the user what happened? – Ian Turton Jan 26 '16 at 18:03
  • Ok, that is clear now, i have a supplementary question, Is there any way to logout a user from geoserver? so that after logging out he is unable to make transactions? – user2139428 Jan 27 '16 at 10:42
  • you need to ask a new question – Ian Turton Jan 27 '16 at 11:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.