Hi Dan, Thank you for testing the staged build against your login and change-password actions, and for confirming you can drop the converter. That was exactly the check this release needed.
The vote has passed and Struts 7.5.1 has been released. The artifacts should reach Maven Central within the next few hours. Thanks also to Wyatt for reporting the problem and asking for a patch release. Regards Łukasz On Wed, Nov 25, 2026 01:19 PM, "Piche, Daniel" <[email protected]> wrote: > Hi Lukasz, > > > > I tested the 7.5.1 build from the staging repository on our login and > change-password actions, setting " x " on each property through the value > stack the way ParametersInterceptor does: > > > > - 7.5.0: the password, mapped to your UntrimmedStringConverter, keeps its > spaces; the user name, not mapped, is trimmed. > > - 7.5.1: both keep their spaces, so we can drop the converter when we > upgrade. > > > > [X] General Availability (GA) (non-binding) > > > > Thanks, > > > > Dan > > > > *From:* Lukasz Lenart <[email protected]> > *Sent:* November 25, 2026 2:25 AM > *To:* [email protected] > *Cc:* [email protected]; Piche, Daniel <[email protected]> > *Subject:* Re: [7.5.0] Values bound to String properties are now trimmed > too > > > > Hi, The vote on Struts 7. 5. 1 has started. It contains only the fix for > WW-5871, so request parameters bound to String properties keep their > whitespace again, as in 7. 4. 0. This is a fast-track release, so the > vote stays open for 24 hours: https: //lists. apache. org/thread. > html/p1x5gf1xm8tnd8z1mxbcsock3nhfmzg3 > > Hi, > > The vote on Struts 7.5.1 has started. It contains only the fix for > WW-5871, so request parameters bound to String properties keep their > whitespace again, as in 7.4.0. This is a fast-track release, so the vote > stays open for 24 hours: > https://lists.apache.org/thread.html/p1x5gf1xm8tnd8z1mxbcsock3nhfmzg3 > <https://urldefense.com/v3/__https://lists.apache.org/thread.html/p1x5gf1xm8tnd8z1mxbcsock3nhfmzg3__;!!IqQd2s6KUyvHwNLtrw!tRTPJ948UD3wo5hhXnHfSb81A8hNmEkUfg2tsjEfBgogS4whdWVO2QPfwtX79fXkEGm_kyLAqyW0tzf6t6fbn5monlwQ$> > > Release notes: > https://cwiki.apache.org/confluence/display/WW/Version%2BNotes%2B7.5.1 > <https://urldefense.com/v3/__https://cwiki.apache.org/confluence/display/WW/Version*2BNotes*2B7.5.1__;JSU!!IqQd2s6KUyvHwNLtrw!tRTPJ948UD3wo5hhXnHfSb81A8hNmEkUfg2tsjEfBgogS4whdWVO2QPfwtX79fXkEGm_kyLAqyW0tzf6t6fbn__g38_p$> > > Staging Maven repository: > https://repository.apache.org/content/groups/staging/ > <https://urldefense.com/v3/__https://repository.apache.org/content/groups/staging/__;!!IqQd2s6KUyvHwNLtrw!tRTPJ948UD3wo5hhXnHfSb81A8hNmEkUfg2tsjEfBgogS4whdWVO2QPfwtX79fXkEGm_kyLAqyW0tzf6t6fbn5rjOvxy$> > > If you can, please test it against your application and reply in the vote > thread with what you found. > > Regards > Łukasz > > > > On Tue, Nov 24, 2026 09:12 AM, Lukasz Lenart <[email protected]> > wrote: > > Please take a look on this PR, this is the intended behaviour I'm > going to implement in 7.5.1 > https://github.com/apache/struts/pull/2159 > <https://urldefense.com/v3/__https://github.com/apache/struts/pull/2159__;!!IqQd2s6KUyvHwNLtrw!tRTPJ948UD3wo5hhXnHfSb81A8hNmEkUfg2tsjEfBgogS4whdWVO2QPfwtX79fXkEGm_kyLAqyW0tzf6t6fbnyFNfmPn$> > > > Cheers > Łukasz > > > pon., 23 lis 2026 o 18:33 Lukasz Lenart <[email protected]> > napisał(a): > > > > Yes, it is possible. Yet please consider helping us test the test > > builds before we call for Vote, or at least drop your Vote against a > > given version because you discovered a bug - this really could help us > > :) > > I'm going to prepare a new version, based on the STRUTS_7_5_0 tag, > > port the fix and start the Vote. > > > > Cheers > > Łukasz > > > > pon., 23 lis 2026 o 18:17 Tellis, Wyatt via user > > <[email protected]> napisał(a): > > > > > > Hi Lukasz, > > > > > > Since this could have significant impact on an application with > unintended consequences, would it be possible to get a patch release (e.g. > 7.5.1) instead of waiting for the next minor release. > > > > > > Wyatt > > > > > > ________________________________ > > > From: Piche, Daniel via user <[email protected]> > > > Sent: Monday, November 23, 2026 1:09 AM > > > To: Lukasz Lenart <[email protected]>; [email protected] < > [email protected]> > > > Cc: Piche, Daniel <[email protected]> > > > Subject: Re: [7.5.0] Values bound to String properties are now trimmed > too > > > > > > > > > > > > Hi Lukasz, > > > > > > Thanks for the confirmation and the remedial implementation to use. > > > > > > Best, > > > > > > Dan > > > — > > > > > > Get Outlook for iOS< > https://urldefense.com/v3/__https://aka.ms/o0ukef__;!!LQC6Cpwp!oDf3oeUcesEK8tflkXFmHGjbKVoBPf6QrprE9PmgeJMUZYBj8_mFx9iclxxFGCLRWx2mCIagjfblYSLSSr3O5w$ > > > > > ________________________________ > > > From: Lukasz Lenart <[email protected]> > > > Sent: Sunday, 22 November 2026 19:25:09 > > > To: [email protected] <[email protected]> > > > Cc: Piche, Daniel <[email protected]> > > > Subject: Re: [7.5.0] Values bound to String properties are now trimmed > too > > > > > > Hi Dan, Thanks for the precise analysis. It is not intended, and your > reading of the cause is correct. The trim step excludes arrays, collections > and Character targets but not String, so a request parameter, which arrives > as String[], is trimmed > > > > > > Hi Dan, > > > > > > Thanks for the precise analysis. It is not intended, and your reading > of the cause is correct. The trim step excludes arrays, collections and > Character targets but not String, so a request parameter, which arrives as > String[], is trimmed before it is converted to String. The test added with > WW-3666 only covered a bare String, which takes the early return, so it > never caught this. > > > > > > I filed it as WW-5871 [1] and the fix is targeted at 7.6.0. > > > > > > Until then, a field-level type converter brings the old behaviour back > for the properties where whitespace matters. Field-level converters are > looked up before the default one, so the trim is never reached: > > > > > > public class UntrimmedStringConverter extends StrutsTypeConverter { > > > > > > @Override > > > public Object convertFromString(Map context, String[] values, > Class toClass) { > > > return values.length == 0 ? null : values[0]; > > > } > > > > > > @Override > > > public String convertToString(Map context, Object o) { > > > if (o instanceof String[] values) { > > > return values.length == 0 ? null : values[0]; > > > } > > > return o == null ? null : o.toString(); > > > } > > > } > > > > > > and next to the action class, in LoginAction-conversion.properties: > > > > > > password=com.example.UntrimmedStringConverter > > > > > > The String[] branch in convertToString is the important part: when the > target type is String, StrutsTypeConverter passes the raw request value to > convertToString, not convertFromString. > > > > > > No need to send the test class, your three cases are enough to > reproduce it. > > > > > > [1] > https://urldefense.com/v3/__https://issues.apache.org/jira/browse/WW-5871__;!!LQC6Cpwp!oDf3oeUcesEK8tflkXFmHGjbKVoBPf6QrprE9PmgeJMUZYBj8_mFx9iclxxFGCLRWx2mCIagjfblYSLw6XVmGA$ > < > https://urldefense.com/v3/__https://issues.apache.org/jira/browse/WW-5871__;!!IqQd2s6KUyvHwNLtrw!vcLi9BL2KIgBPKF0jBaPGJ5weRWRBCkFC_4B10Ky2BMulOts8wRg-ULa-NiWOy4DQPplU-gBAHQM71r1IJ0vCVlM9nO9$ > > > > > > > > > > > Regards > > > Łukasz > > > > > > On Sun, Nov 22, 2026 11:06 AM, "Piche, Daniel via user" < > [email protected]<mailto:[email protected]>> wrote: > > > > > > Hi Łukasz, > > > > > > > > > > > > After upgrading from 7.4.0 to 7.5.0, request parameters bound to > String properties are trimmed, not only values converted to numbers, dates > and other non-String types. WW-3666 and PR #2039 say String targets keep > the value untouched, so this looks unintended. > > > > > > > > > > > > It seems to come from the early return in > XWorkBasicConverter.convertValue: it skips only a value whose class already > matches the target type. A request parameter arrives as String[], so it > doesn’t match, each element is trimmed, and the result is then converted to > String. > > > > > > > > > > > > Calling XWorkBasicConverter.convertValue directly: > > > > > > > > > > > > String[]{" summer2026 "} -> String 7.4.0: " summer2026 " 7.5.0: > "summer2026" > > > > > > " summer2026 " -> String unchanged on both > > > > > > String[]{" 42 "} -> Integer 7.4.0: conversion error 7.5.0: > 42 (the intended change) > > > > > > > > > > > > Where it hurts is a password field: a password that starts or ends > with a space stops matching after the upgrade. > > > > > > > > > > > > Is this intended? > > > > > > > > > I can send the small test class if it helps. > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Dan > > > > > > -- > > > > > > [X] > > > > > > Daniel Piché, IDFusion Software > > > > > > Solution Architect, Digital and Technology Solutions > > > > > > Innovation & New Technology > > > > > > 1-204-292-2555 > > > > > > [email protected]<mailto:[email protected]> > > > > > > Confidentiality Notice: This e-mail message (including any > attachments) is confidential and may be subject to privilege, including > Crown privilege. All rights to privilege are expressly claimed and not > waived. It is strictly prohibited to use, copying, distribution or > disclosure this message or any attachment, in whole or part, by anyone > other than the intended recipient. If you have received this message in > error, please delete this message, and all attachments, securely without > making any copies and notify the sender immediately. > > > > > > > > > > > > > >

