Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0018632 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
feature request | [Openbravo ERP] A. Platform | trivial | N/A | 2011-09-28 00:03 | 2011-10-12 01:59 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 42c1ec2c8b72 | ||||
Projection | none | ETA | none | Target Version | 3.0MP4 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0018632: Allow module customizations in TabAttachments | |||||||
Description | A way of customizing TabAttachments java file is creating a class extending it, overwriting doPost method, implement in the subclass the required commands and call super.doPost for the rest. The problem is the request is multipart. The way parameters are read for multipart request differ of the way standard request paramenters are read, making not possible to read the instantiate var twice. | |||||||
Steps To Reproduce | Try this code in TabAttachemnts: final VariablesSecureApp vars = new VariablesSecureApp(request); final VariablesSecureApp vars1 = new VariablesSecureApp(request); vars.getCommand(); //-> SAVE_NEW_OB3 vars1.getCommand(); //-> DEFUALT Note getCommand in vars and vars1 returns different values for the same request whereas it should be the same. This seems to be a core servlet restriction. | |||||||
Proposed Solution | Refactor TabAttachments so doPost method instantiates vars and there's another public method accepting this vars where all logic is performed. In this way it is possible to reuse the vars instantiated in the subclass. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0041331) hgbot (developer) 2011-09-28 00:06 |
Repository: erp/devel/pi Changeset: 42c1ec2c8b72c86434a5b0e59c3f2cda94ea7d23 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Tue Sep 27 18:05:41 2011 -0400 URL: http://code.openbravo.com/erp/devel/pi/rev/42c1ec2c8b72c86434a5b0e59c3f2cda94ea7d23 [^] fixed issue 18632: Allow module customizations in TabAttachments --- M src/org/openbravo/erpCommon/businessUtility/TabAttachments.java --- |
(0041717) hudsonbot (developer) 2011-10-12 01:59 |
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/9bd2b5c2d982 [^] Maturity status: Test |
Issue History | |||
Date Modified | Username | Field | Change |
2011-09-28 00:03 | alostale | New Issue | |
2011-09-28 00:03 | alostale | Assigned To | => alostale |
2011-09-28 00:03 | alostale | Modules | => Core |
2011-09-28 00:06 | hgbot | Checkin | |
2011-09-28 00:06 | hgbot | Note Added: 0041331 | |
2011-09-28 00:06 | hgbot | Status | new => resolved |
2011-09-28 00:06 | hgbot | Resolution | open => fixed |
2011-09-28 00:06 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/42c1ec2c8b72c86434a5b0e59c3f2cda94ea7d23 [^] |
2011-09-30 12:50 | marvintm | Status | resolved => closed |
2011-10-12 01:59 | hudsonbot | Checkin | |
2011-10-12 01:59 | hudsonbot | Note Added: 0041717 |
Copyright © 2000 - 2009 MantisBT Group |