When you access an invalid URL on worklight server from a browser (e.g. http://mywebserver.com/myApp/ThisIsaFileThatDoesNotExist) the stack trace gets flashed on your browser.
We need to disable the stack trace (for security reasons). Our setup is MobileFirst Platform Foundation 6.3 with WebSphere Liberty Profile 8.5.5.
Below is the message that is displayed in the browser.
"Exception thrown by application class 'com.worklight.core.auth.impl.AuthenticationFilter.doFilter:272' java.lang.RuntimeException: java.io.FileNotFoundException: SRVE0190E: File not found: /ThisIsaFileThatDoesNotExist at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:272) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:207) at [internal classes] Caused by: java.io.FileNotFoundException: SRVE0190E: File not found: /ThisIsaFileThatDoesNotExist at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:528) at [internal classes] at com.worklight.core.auth.impl.AuthenticationFilter$1.execute(AuthenticationFilter.java:217) at com.worklight.core.auth.impl.AuthenticationServiceBean.accessResource(AuthenticationServiceBean.java:76) at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:222) ... 2 more"
We need to disable showing the stack trace as it is considered a problem.