Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0018632
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. PlatformtrivialN/A2011-09-28 00:032011-10-12 01:59
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision42c1ec2c8b72
ProjectionnoneETAnoneTarget Version3.0MP4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0018632: Allow module customizations in TabAttachments

DescriptionA 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 ReproduceTry 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 SolutionRefactor 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.
TagsNo 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
Powered by Mantis Bugtracker