Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. PlatformminorN/A2008-09-01 18:452022-02-01 08:09
Reportergorka_gilView Statuspublic 
Assigned ToTriage Platform Base 
PrioritylowResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision6707 
Review Assigned To
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0004788: In tomcat filters change HttpServletRequest to HttpServletRequestWrapper

DescriptionThere is three filters for request:

Now this filters edit directly the request/response objects.
The recommended implementation is use a wrapper: [^]

I try to implement it in the way:

  public void doFilter(ServletRequest request, ServletResponse response, FilterChain next) throws IOException, ServletException {
    HttpServletRequestWrapper reqWrapper = new HttpServletRequestWrapper((HttpServletRequest) request);
    next.doFilter(reqWrapper, response);

But the problem is that the setCharacterEncoding must be done before receive the request, because after has no effect.

The actual and working solution is:

  public void doFilter(ServletRequest request, ServletResponse response, FilterChain next) throws IOException, ServletException {
    next.doFilter(request, response);

and in the Web.xml set the CharsetFilter the first filter.

Thanks to Ville for his collaboration.
Steps To Reproduce   
   Now (trunk 6707), works fine,

but for test if a new implementation works:

1. Go to any window, for example, Sales order
2. In some field, for example, description
3. Introduce no standard characters, for example "€@#$%&"
4. Save
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0004774 closedgorka_gil Session filter breaks charset filter 

-  Notes
gorka_gil (administrator)
2017-03-10 17:06

@platform team: please check if that request is useful and still valid

- Issue History
Date Modified Username Field Change
2008-09-01 18:45 gorka_gil New Issue
2008-09-01 18:45 gorka_gil Assigned To => cromero
2008-09-01 18:45 gorka_gil sf_bug_id 0 => 2087168
2008-09-01 18:45 gorka_gil Regression testing => No
2008-09-01 18:47 gorka_gil Relationship added related to 0004774
2008-09-01 18:55 gorka_gil Description Updated
2008-09-01 18:56 gorka_gil Description Updated
2008-09-01 18:57 gorka_gil Description Updated
2008-11-10 13:10 cromero Assigned To cromero => pjuvara
2008-11-16 19:54 pjuvara Tag Attached: ToBeReviewed
2009-05-22 19:34 pjuvara Assigned To pjuvara => iciordia
2017-03-10 17:06 gorka_gil Assigned To iciordia => platform
2017-03-10 17:06 gorka_gil Note Added: 0094946
2022-02-01 08:09 alostale Assigned To platform => Triage Platform Base

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker