struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lovepreeet (JIRA)" <>
Subject [jira] [Commented] (WW-4467) disableRequestAttributeValueStackLookup is not working for MultiPartRequestWrapper
Date Fri, 20 Feb 2015 17:55:12 GMT


Lovepreeet commented on WW-4467:

Sir Actually i am changing the framework from struts1.3 to struts2.0
In struts1.3 i am using request.getAttribute and cast the result to string which is working
but in struts2.0 when i am doing the same it is giving classCastException
after studying code of struts2.0 i came to know that StrutsRequestWrapper and MultiPartRequestWrapper
looks value in valuestack when request.getAttribute is null and give array of object as a
result if it finds the value which leads classCastException. 
And some others constants saved in value stack gives unexpected results like action, which
gives fully Qualified name of action in struts2.0.

> disableRequestAttributeValueStackLookup is not working for MultiPartRequestWrapper
> ----------------------------------------------------------------------------------
>                 Key: WW-4467
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions:
>            Reporter: Lovepreeet
>            Priority: Minor
>             Fix For: 2.3.22
> I m using disableRequestAttributeValueStackLookup to disable request to extract attributes
from value stack because it leads to class cast exception.
> But i noticed in source code of struts2-core that in case of MultPart request
the value of disableRequestAttributeValueStackLookup constant is set to false by default.
> I need to know is there any other way to solve this problem or it is a bug in struts2

This message was sent by Atlassian JIRA

View raw message