Issue Details (XML | Word | Printable)

Key: WW-1127
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Rene Gielen
Reporter: Rene Gielen
Votes: 0
Watchers: 0
Operations

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

DevMode impacts pageflow logic

Created: 25/Jan/06 04:49 PM   Updated: 02/Feb/06 10:48 AM
Component/s: Actions, Configuration
Affects Version/s: 2.2
Fix Version/s: 2.2.1


 Description  « Hide
When devMode is activated, action result is modified to ERROR result if it is tried to set a non existent property via POST or GET parameter (or, in other words: there is no action/model property named like the given parameter).

While it is nice to be verbose to the developer on this issue, it must not interfere with page flow, such as having two different page flows in devMode and deployment mode for exactly the same inputs.

Instead, the possibly wrong parameter usage should be logged as a warning message, and maybe rendered as an action message (or ideally in a devMode specific debug box) if devMode is activated.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Rene Gielen added a comment - 02/Feb/06 10:48 AM
Modified ParametersInterceptor to swallow RuntimeException from OgnlValueStack.setValue in production mode.
In devMode, generate comprehensive message from exception and log it as well as add it to actionMessages.