History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: APF-809
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matt Raible
Reporter: Laurent Dejoux
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

Some bad url's does not display the "Page not found" page but the "Yikes!" page....

Created: 07/Jun/07 09:08 AM   Updated: 24/Nov/07 02:59 PM
Component/s: Web - Struts
Affects Version/s: 2.0-M5
Fix Version/s: 2.0.1

Environment: http://demo.appfuse.org/appfuse-struts/blabla.html


 Description  « Hide
After log in, try the url http://demo.appfuse.org/appfuse-struts/blabla.html
you should get this error message :

Oups !

There is no Action mapped for namespace / and action name blabla. - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186)
at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:497)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.appfuse.webapp.filter.StaticFilter.doFilterInternal(StaticFilter.java:106)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
...

 All   Comments   Change History   FishEye      Sort Order:
Matt Raible - 07/Jun/07 09:58 AM
If you set struts.devMode to false, it should fix this problem. It fixes the problem in my local workspace.

In struts.xml:

<constant name="struts.devMode" value="false" />

Matt Raible - 07/Jun/07 10:05 AM
In an application I'm working on, setting struts.devMode to false solved this problem. However, demo.appfuse.org/appfuse-struts already has it set to false. Therefore, I've logged an issue with Struts:

https://issues.apache.org/struts/browse/WW-1977

Matt Raible - 08/Oct/07 01:30 PM
Will be fixed by upgrading to Struts 2.0.10 - APF-932.