Re: bypassing request parameter validation in struts 2.5.14.1

2018-04-25 Thread Rajvinder Pal
Thanks, I changed the data type of accessCode from int to String and it is
working fine.

regards,
Raj

On Tue, Apr 24, 2018 at 10:29 AM, Lukasz Lenart 
wrote:

> 2018-04-23 19:01 GMT+02:00 Rajvinder Pal :
> > Hi,
> >
> > I need to bypass one validation error , which i am getting during appscan
> > run.
> >
> > *Invalid field value for field* XXX
> >
> > I have seen com.opensymphony.xwork2.interceptor.
> ConversionErrorInterceptor
> > in struts2-core- 2.5.14.1.jar . But it does not have any excludeParams
> > .Please let me know what else i can do?I have tried the below code in
> > struts.xml, but it didn't work.
> >
> > 
> > accessCode
> > 
>
> This isn't a validation error but conversion error, your "accessCode"
> cannot be converted from string to some default type. Use String
> instead and everything will be ok.
> ConversionErrorInterceptor only displays the errors not produce them.
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: bypassing request parameter validation in struts 2.5.14.1

2018-04-23 Thread Lukasz Lenart
2018-04-23 19:01 GMT+02:00 Rajvinder Pal :
> Hi,
>
> I need to bypass one validation error , which i am getting during appscan
> run.
>
> *Invalid field value for field* XXX
>
> I have seen com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor
> in struts2-core- 2.5.14.1.jar . But it does not have any excludeParams
> .Please let me know what else i can do?I have tried the below code in
> struts.xml, but it didn't work.
>
> 
> accessCode
> 

This isn't a validation error but conversion error, your "accessCode"
cannot be converted from string to some default type. Use String
instead and everything will be ok.
ConversionErrorInterceptor only displays the errors not produce them.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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



Re: bypassing request parameter validation in struts 2.5.14.1

2018-04-23 Thread Rajvinder Pal
Any idea how can i avoid this error for a specific parameter?

Regards,
Raj

On Mon, Apr 23, 2018 at 10:31 PM, Rajvinder Pal 
wrote:

> Hi,
>
> I need to bypass one validation error , which i am getting during appscan
> run.
>
> *Invalid field value for field* XXX
>
> I have seen com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor
> in struts2-core- 2.5.14.1.jar . But it does not have any excludeParams
> .Please let me know what else i can do?I have tried the below code in
> struts.xml, but it didn't work.
>
> 
> accessCode
> 
>
> Thanks,
> Raj
>