Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0015848 | Openbravo ERP | Z. Others | public | 2011-02-02 19:14 | 2011-02-05 00:00 |
|
Reporter | gorkaion | |
Assigned To | gorkaion | |
Priority | immediate | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 20 | OS Version | Gentoo |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | No |
Web browser | |
Modules | User Interface Application |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0015848: api change, public method ParameterUtils.getParameterFixedValue() method return Object instead of String |
Description | Due 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. |
Steps To Reproduce | |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
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:14 | gorkaion | OBNetwork customer | => No |
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 |