struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <>
Subject [jira] [Commented] (WW-4831) Array-of-null parameters are converted to arrays containing "null"
Date Tue, 01 Aug 2017 14:23:02 GMT


Hudson commented on WW-4831:

SUCCESS: Integrated in Jenkins build Struts-master-JDK7 #12 (See [])
[WW-4831] convert nulls within arrays to empty strings rather than the 4 (shell_layer-github:
rev 8cc56b2974e5c744954b110e645f61f18e0b12ab)
* (edit) core/src/main/java/com/opensymphony/xwork2/conversion/impl/
[WW-4831] add unit tests for conversion of String arrays (shell_layer-github: rev 60d61fac0abb5993977e84f8dcc5bea6588f41d6)
* (edit) core/src/test/java/com/opensymphony/xwork2/conversion/impl/

> Array-of-null parameters are converted to arrays containing "null"
> ------------------------------------------------------------------
>                 Key: WW-4831
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.5.12
>            Reporter: Mitth'raw'nuruodo
>            Assignee: Lukasz Lenart
>             Fix For: 2.5.13
> The {{com.opensymphony.xwork2.conversion.impl.StringConverter}} class, since Struts 2.5.11,
incorrectly handles arrays containing null; it converts them to arrays containing the string
"null" (using {{String.valueOf}}).
> This is breaking one of our applications; some pages are OK, but on other pages, every
non-provided field is populated with the String "null".
> This is a similar issue to WW-4737, but occurring in different code.
> Please ensure that conversion to String always uses the two-argument version of {{Objects.toString}},
which preserves nulls, rather than {{String.valueOf}}, which converts them to the four-letter
string "null".

This message was sent by Atlassian JIRA

View raw message