Skip to content

Commit

Permalink
fix problem with invalid nested parameters and uncomment the function…
Browse files Browse the repository at this point in the history
…al test that exposed the problem
  • Loading branch information
Jeff Brown committed Apr 3, 2009
1 parent 8a4e13e commit 0132b66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Expand Up @@ -5,7 +5,6 @@ class CommandObjectsFunctionalTests extends functionaltestplugin.FunctionalTestC
assertContentContains 'name: fred, age:45'
}

/* TODO - uncomment
void testCommandObjectsAdditionalParams() {
get('/test/testCommand?name=fred&age=45&x=23&y=343')
assertStatus 200
Expand All @@ -14,9 +13,7 @@ class CommandObjectsFunctionalTests extends functionaltestplugin.FunctionalTestC
get('/test/testCommand?name=fred&age=45&name.x=23&name.y=343')
assertStatus 200
assertContentContains 'name: fred, age:45'
}
*/

void testCommandObjectsWithNestedObject() {
get('/test/testCommandWithNestedValues?name=fred&age=45&x=23&y=343&nested.value=test')
Expand Down
Expand Up @@ -116,6 +116,7 @@ public GrailsDataBinder(Object target, String objectName) {
}
setDisallowedFields(disallowed);
setAllowedFields(ALL_OTHER_FIELDS_ALLOWED_BY_DEFAULT);
setIgnoreInvalidFields(true);

}

Expand Down

0 comments on commit 0132b66

Please sign in to comment.