[JSP Filter] Explicit log and force redirection on error case
Fix #337
fix #339
Merge branch 'dev' into public-cloud