Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0029849 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | have not tried | 2015-05-12 12:05 | 2015-05-21 09:19 | |||
Reporter | egoitz | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR15Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | d142537185dc | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | AugustoMauch | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | callout.tar.gz [^] (19,056 bytes) 2015-05-12 12:05 | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||||||||||||||||
|
Notes | |
(0077381) hgbot (developer) 2015-05-13 13:52 |
Repository: erp/devel/pi Changeset: d142537185dc7a9164b96d860f4529c027dc6afa Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Wed May 13 13:50:58 2015 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/d142537185dc7a9164b96d860f4529c027dc6afa [^] 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/RequestContext.java --- |
(0077456) 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: https://code.openbravo.com/erp/devel/main/rev/3375171dd310 [^] Maturity status: Test |
(0077608) AugustoMauch (administrator) 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 | => http://code.openbravo.com/erp/devel/pi/rev/d142537185dc7a9164b96d860f4529c027dc6afa [^] |
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 |