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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0015848
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Z. Othersminorhave not tried2011-02-02 19:142011-02-05 00:00
ReportergorkaionView Statuspublic 
Assigned Togorkaion 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisione4beaa650455
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabaseOracleJava version1.5.0_15
OS VersionGentooDatabase version11gAnt version1.7.0
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesUser Interface Application
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0015848: api change, public method ParameterUtils.getParameterFixedValue() method return Object instead of String

DescriptionDue to this changeset the api has been broken.
https://code.openbravo.com/erp/devel/pi/rev/74206cdb4aed [^]
The return object type of the public method parameterUtils.getParameterFixedValue() has been changed from String to Object.

This method returns the Fixed value of the given parameter. If the value is a JS expression it returns the result of the expression based on the parameters passed in from the request. The problem is that the JS expression can return any Object type, not only String. For example, in case that it is desired to get the readable organizations of a role the expression would be "OB.getContext().getReadableOrganizations()" which returns an String[] object.

The risk is low as this is a public method that has been included on one of the last published versions of the Client Application module. In case that someone is using it the fix is to add a cast to String on the method's call.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0034017)
iciordia (manager)
2011-02-02 19:31

Approved.

Ismael
(0034021)
hgbot (developer)
2011-02-03 10:40

Repository: erp/devel/api-checks
Changeset: e4beaa650455aaf35a0fc192ca6cefceb161dc87
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Thu Feb 03 10:38:29 2011 +0100
URL: http://code.openbravo.com/erp/devel/api-checks/rev/e4beaa650455aaf35a0fc192ca6cefceb161dc87 [^]

Fixed issue 15848. Api check 1025 fails.

---
M java/reference/java.japi.gz
---

- Issue History
Date Modified Username Field Change
2011-02-02 19:14 gorkaion New Issue
2011-02-02 19:14 gorkaion Assigned To => iciordia
2011-02-02 19:14 gorkaion Modules => User Interface Application
2011-02-02 19:31 iciordia Note Added: 0034017
2011-02-02 19:31 iciordia Assigned To iciordia => gorkaion
2011-02-03 10:40 hgbot Checkin
2011-02-03 10:40 hgbot Note Added: 0034021
2011-02-03 10:40 hgbot Status new => resolved
2011-02-03 10:40 hgbot Resolution open => fixed
2011-02-03 10:40 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/api-checks/rev/e4beaa650455aaf35a0fc192ca6cefceb161dc87 [^]
2011-02-04 14:56 gorkaion Status resolved => closed
2011-02-05 00:00 anonymous sf_bug_id 0 => 3173093


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker