You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "smartr@gmail.com" <sm...@gmail.com> on 2014/01/20 09:26:35 UTC

Broken Compatibility issue with ParameterNameAware when upgrading

I was running into some issues when updating to 2.3.16 (worms!) from around
2.3.4.1 (2.3.14.1 also broke compat) in regards to implementing
ParameterNameAware.

If you have a bean, "MyBean", with properties "id" and "name", when
implementing acceptableParameterName, before one needed only return true
for "myBeanInstance.id" and "myBeanInstance.name" - whereas now one needs
those along with "myBeanInstance", "id", and "name" for the action to
correctly populate the bean on an action. While I might have a funky
configuration involving Spring, the only change I made to experience the
break was updating the Struts2 libraries.

I did not notice that documented or mentioned anywhere, so I thought I'd
pass the information along in case it did need to be documented or was a
bug.

Re: Broken Compatibility issue with ParameterNameAware when upgrading

Posted by Lukasz Lenart <lu...@apache.org>.
Yes, hope in next week ;-)

2014-03-28 9:34 GMT+01:00 thomas.hill <th...@gmx.de>:
> Hi,
>
> sorry for duplicate, i thought i had deleted the first post.
>
> I would migrate from version 2.3.15.3 to 2.3.16.1
> I did not read the issue because the system was in maintenance, but now i
> have read and it seams, that i have to wait for version 2.3.17, right?
>
> regards,
> Thomas
>
>
>
>
>
>
>
> --
> View this message in context: http://struts.1045723.n5.nabble.com/Broken-Compatibility-issue-with-ParameterNameAware-when-upgrading-tp5715110p5715604.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Broken Compatibility issue with ParameterNameAware when upgrading

Posted by "thomas.hill" <th...@gmx.de>.
Hi,

sorry for duplicate, i thought i had deleted the first post.

I would migrate from version 2.3.15.3 to 2.3.16.1
I did not read the issue because the system was in maintenance, but now i
have read and it seams, that i have to wait for version 2.3.17, right?

regards,
Thomas 







--
View this message in context: http://struts.1045723.n5.nabble.com/Broken-Compatibility-issue-with-ParameterNameAware-when-upgrading-tp5715110p5715604.html
Sent from the Struts - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Broken Compatibility issue with ParameterNameAware when upgrading

Posted by Lukasz Lenart <lu...@apache.org>.
Have you followed the link of the issue? From what version do you
migrate to 2.3.16?

2014-03-28 8:30 GMT+01:00 thomas.hill <th...@gmx.de>:
> Hello,
>
> i have the same problem.
> Since version 2.3.16 (and 2.3.16.1 too) a lot of my parameters will not
> accepted.
> I have a lot of paramNames with a dot in name like "session.bean.firstname"
> and this doesnt work.
> It seams so, that the ParametersInterceptor split these paramNames in
> "session", "bean" and "firstname".
>
> Is this a bug or a feature?
> There are any restrictions for param names (no using of dots)?
>
> regards,
> Thomas
>
>
>
> --
> View this message in context: http://struts.1045723.n5.nabble.com/Broken-Compatibility-issue-with-ParameterNameAware-when-upgrading-tp5715110p5715598.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Broken Compatibility issue with ParameterNameAware when upgrading

Posted by "thomas.hill" <th...@gmx.de>.
Hello,

i have the same problem.
Since version 2.3.16 (and 2.3.16.1 too) a lot of my parameters will not
accepted.
I have a lot of paramNames with a dot in name like "session.bean.firstname"
and this doesnt work.
It seams so, that the ParametersInterceptor split these paramNames in
"session", "bean" and "firstname".

Is this a bug or a feature?
There are any restrictions for param names (no using of dots)?

regards,
Thomas 



--
View this message in context: http://struts.1045723.n5.nabble.com/Broken-Compatibility-issue-with-ParameterNameAware-when-upgrading-tp5715110p5715598.html
Sent from the Struts - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Broken Compatibility issue with ParameterNameAware when upgrading

Posted by Lukasz Lenart <lu...@apache.org>.
Great! Fill free to post your comments here or in jira!

2014/1/20 smartr@gmail.com <sm...@gmail.com>:
> That sounds exactly like the problem. Unless I was having completely
> different backwards compatibility issues that were since fixed in   2.3.16,
> the issue goes back a good bit further than described in the ticket from
> what I have been seeing. I hope ya'll haven't been barking up the wrong
> tree for it. I'll try and run some test cases around that ticket this week
> and see what I come up with.
>
>
> On Mon, Jan 20, 2014 at 3:26 AM, Lukasz Lenart <lu...@apache.org>wrote:
>
>> Hi,
>>
>> I'm not sure if I understand your problem but maybe this issue is
>> related to your problem
>> https://issues.apache.org/jira/browse/WW-4257
>>
>> 2014/1/20 smartr@gmail.com <sm...@gmail.com>:
>> > I was running into some issues when updating to 2.3.16 (worms!) from
>> around
>> > 2.3.4.1 (2.3.14.1 also broke compat) in regards to implementing
>> > ParameterNameAware.
>> >
>> > If you have a bean, "MyBean", with properties "id" and "name", when
>> > implementing acceptableParameterName, before one needed only return true
>> > for "myBeanInstance.id" and "myBeanInstance.name" - whereas now one needs
>> > those along with "myBeanInstance", "id", and "name" for the action to
>> > correctly populate the bean on an action. While I might have a funky
>> > configuration involving Spring, the only change I made to experience the
>> > break was updating the Struts2 libraries.
>> >
>> > I did not notice that documented or mentioned anywhere, so I thought I'd
>> > pass the information along in case it did need to be documented or was a
>> > bug.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Broken Compatibility issue with ParameterNameAware when upgrading

Posted by "smartr@gmail.com" <sm...@gmail.com>.
That sounds exactly like the problem. Unless I was having completely
different backwards compatibility issues that were since fixed in   2.3.16,
the issue goes back a good bit further than described in the ticket from
what I have been seeing. I hope ya'll haven't been barking up the wrong
tree for it. I'll try and run some test cases around that ticket this week
and see what I come up with.


On Mon, Jan 20, 2014 at 3:26 AM, Lukasz Lenart <lu...@apache.org>wrote:

> Hi,
>
> I'm not sure if I understand your problem but maybe this issue is
> related to your problem
> https://issues.apache.org/jira/browse/WW-4257
>
> 2014/1/20 smartr@gmail.com <sm...@gmail.com>:
> > I was running into some issues when updating to 2.3.16 (worms!) from
> around
> > 2.3.4.1 (2.3.14.1 also broke compat) in regards to implementing
> > ParameterNameAware.
> >
> > If you have a bean, "MyBean", with properties "id" and "name", when
> > implementing acceptableParameterName, before one needed only return true
> > for "myBeanInstance.id" and "myBeanInstance.name" - whereas now one needs
> > those along with "myBeanInstance", "id", and "name" for the action to
> > correctly populate the bean on an action. While I might have a funky
> > configuration involving Spring, the only change I made to experience the
> > break was updating the Struts2 libraries.
> >
> > I did not notice that documented or mentioned anywhere, so I thought I'd
> > pass the information along in case it did need to be documented or was a
> > bug.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Broken Compatibility issue with ParameterNameAware when upgrading

Posted by Lukasz Lenart <lu...@apache.org>.
Hi,

I'm not sure if I understand your problem but maybe this issue is
related to your problem
https://issues.apache.org/jira/browse/WW-4257

2014/1/20 smartr@gmail.com <sm...@gmail.com>:
> I was running into some issues when updating to 2.3.16 (worms!) from around
> 2.3.4.1 (2.3.14.1 also broke compat) in regards to implementing
> ParameterNameAware.
>
> If you have a bean, "MyBean", with properties "id" and "name", when
> implementing acceptableParameterName, before one needed only return true
> for "myBeanInstance.id" and "myBeanInstance.name" - whereas now one needs
> those along with "myBeanInstance", "id", and "name" for the action to
> correctly populate the bean on an action. While I might have a funky
> configuration involving Spring, the only change I made to experience the
> break was updating the Struts2 libraries.
>
> I did not notice that documented or mentioned anywhere, so I thought I'd
> pass the information along in case it did need to be documented or was a
> bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org