dolfdijkstra / gst-foundation

Sites Global Foundation Project
Apache License 2.0
13 stars 14 forks source link

mobile framework not sending 404 when expected #9

Closed dolfdijkstra closed 11 years ago

dolfdijkstra commented 11 years ago

One more possible bug, when using the new mobile framework, if I enter an invalid url then I get a null pointer exception error page instead of a 404 page -

java.lang.NullPointerException at com.fatwire.gst.foundation.mobile.action.DeviceAwareRenderPageAction.findTranslation(DeviceAwareRenderPageAction.java:80) at com.fatwire.gst.foundation.mobile.action.DeviceAwareRenderPageAction.resolveAssetId(DeviceAwareRenderPageAction.java:55) at com.fatwire.gst.foundation.controller.BaseRenderPage.renderPage(BaseRenderPage.java:284) at com.fatwire.gst.foundation.controller.action.RenderPage.handleRequest(RenderPage.java:38) at com.fatwire.gst.foundation.controller.action.AbstractActionController.doExecute(AbstractActionController.java:70) at com.fatwire.gst.foundation.controller.AbstractController.Execute(AbstractController.java:77) at COM.FutureTense.XML.Template.CallJava.execute(CallTag.java:190)

Please can you check if the code displays a 404 page when then friendly url does not map to any asset?