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

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2015-05-12 12:052015-05-21 09:19
ReporteregoitzView Statuspublic 
Assigned Toalostale 
PriorityimmediateResolutionfixedFixed in Version3.0PR15Q3
StatusclosedFix in branchFixed in SCM revisiond142537185dc
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToAugustoMauch
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0029849: Not possible to overwrite the result of a callout from your own callout using a requestdispatcher an a decorator

Description-Not possible to overwrite the result of a callout from your own callout using a requestdispatcher an a decorator.
Steps To Reproduce-Using the attachemed modules change the partner of a sales order.
TagsNo tags attached.
Attached Filesgz file icon callout.tar.gz [^] (19,056 bytes) 2015-05-12 12:05

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0027244 closedalostale Tomcat 7 is not supported 
related to design defect 0032189 closedinigosanchez Make the callouts extensible 
related to defect 0036192 closedplatform Not possible to overwrite the result of a callout from your own callout using a requestdispatcher an a decorator in Tomcat 7 

-  Notes
hgbot (developer)
2015-05-13 13:52

Repository: erp/devel/pi
Changeset: d142537185dc7a9164b96d860f4529c027dc6afa
Author: Asier Lostalé <asier.lostale <at>>
Date: Wed May 13 13:50:58 2015 +0200
URL: [^]

fixed bug 29849: RequestDispatcher.include deletes context from current thread

  This code:

     RequestDispatcher dispatcher = request.getRequestDispatcher(url);
     dispatcher.include(wrappedRequest, response)

  deletes context OBContext and RequestContext.

  The problem is caused because the way Tomcat internally manages it. By definition
  RequestDispatcher.include should not execute the Request filters (only the include
  ones) but they were executed causing this issue. They were executed because
  of the manner the special attribute to get the dispatch type is obtained, as
  the wrappedRequest now extends javax.servlet.http.HttpServletRequestWrapper it
  is managed differently than before when this was not the case, now type was always
  "Request" even when it should be "Include".

  The fix consists on managing getAttribute from request differently when they are
  special Tomcat internal attributes getting them from the request instead of from
  the delegate.

M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/
hudsonbot (developer)
2015-05-14 17:48

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: [^]
Maturity status: Test
AugustoMauch (manager)
2015-05-21 09:19

Code reviewed and verified in pi@d142537185dc

- Issue History
Date Modified Username Field Change
2015-05-12 12:05 egoitz New Issue
2015-05-12 12:05 egoitz Assigned To => platform
2015-05-12 12:05 egoitz File Added: callout.tar.gz
2015-05-12 12:05 egoitz Modules => Core
2015-05-12 12:05 egoitz Resolution time => 1431640800
2015-05-12 12:05 egoitz Triggers an Emergency Pack => No
2015-05-13 08:25 alostale Relationship added related to 0027244
2015-05-13 13:40 alostale Assigned To platform => alostale
2015-05-13 13:51 alostale Review Assigned To => AugustoMauch
2015-05-13 13:52 hgbot Checkin
2015-05-13 13:52 hgbot Note Added: 0077381
2015-05-13 13:52 hgbot Status new => resolved
2015-05-13 13:52 hgbot Resolution open => fixed
2015-05-13 13:52 hgbot Fixed in SCM revision => [^]
2015-05-14 17:48 hudsonbot Checkin
2015-05-14 17:48 hudsonbot Note Added: 0077456
2015-05-21 09:19 AugustoMauch Note Added: 0077608
2015-05-21 09:19 AugustoMauch Status resolved => closed
2015-05-21 09:19 AugustoMauch Fixed in Version => 3.0PR15Q3
2016-02-26 14:15 alostale Relationship added related to 0032189
2017-06-07 13:59 maite Relationship added related to 0036192

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker