Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0018632 | Openbravo ERP | A. Platform | public | 2011-09-28 00:03 | 2011-10-12 01:59 |
Reporter | alostale | ||||
Assigned To | alostale | ||||
Priority | normal | Severity | trivial | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | 3.0MP4 | Fixed in Version | |||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
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. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|