Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0013042 | Openbravo ERP | A. Platform | public | 2010-04-19 17:05 | 2010-05-28 00:00 | |||||||
| Reporter | shuehner | |||||||||||
| Assigned To | gorkaion | |||||||||||
| Priority | immediate | Severity | major | Reproducibility | have not tried | |||||||
| Status | closed | Resolution | fixed | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | pi | |||||||||||
| Target Version | Fixed in Version | 2.50MP15 | ||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | ||||||||||||
| OBNetwork customer | No | |||||||||||
| Web browser | ||||||||||||
| Modules | Core | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0013042: Utility.getPropertyValue raises expected exception as IllegalStateException (sublcass of RuntimeException) | |||||||||||
| Description | The new Utility.getPropertyValue function can be used to read a value for the new property configuration project. It calls the underlying pl-function AD_GET_PROPERTY_VALUE. This pl-function raises an exception in case of conflicting property values. However the java-function does not explicitly handle/throw any exception but passes the sql-exception wrapped in a IllegalStateException (sublcass of RuntimeException). Those do not need to thrown explicitely. This means users of the utility-function do not even know that property-value conflicts to exists and do not handle them. In that case the error will be raised and passed through the callers in an unpredictable way. | |||||||||||
| Steps To Reproduce | Get a data-conflict in for a property: - add two 'Property configuration' entries for the same property, without marking any of them as selected. Call the Utility.getPropertyValue function and check how the exception is raised. | |||||||||||
| Proposed Solution | Check if the exception should not be handled in a different way. If yes, change the method signature in MP15 to not force an API-change for it later. | |||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | ||||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2010-04-19 17:05 | shuehner | New Issue | ||||||||||
| 2010-04-19 17:05 | shuehner | Assigned To | => alostale | |||||||||
| 2010-04-19 17:05 | shuehner | OBNetwork customer | => No | |||||||||
| 2010-04-19 17:50 | alostale | Assigned To | alostale => gorkaion | |||||||||
| 2010-04-19 18:28 | shuehner | Priority | urgent => immediate | |||||||||
| 2010-04-19 18:28 | shuehner | Status | new => scheduled | |||||||||
| 2010-04-19 18:28 | shuehner | Fixed in Version | => 2.50MP15 | |||||||||
| 2010-04-19 19:07 | hgbot | Checkin | ||||||||||
| 2010-04-19 19:07 | hgbot | Note Added: 0026350 | ||||||||||
| 2010-04-19 19:07 | hgbot | Status | scheduled => resolved | |||||||||
| 2010-04-19 19:07 | hgbot | Resolution | open => fixed | |||||||||
| 2010-04-19 19:07 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/05c4b6abd4d38e4dc4e853626933e7ac25721579 [^] | |||||||||
| 2010-04-20 10:23 | shuehner | Relationship added | related to 0013048 | |||||||||
| 2010-04-21 10:43 | hudsonbot | Checkin | ||||||||||
| 2010-04-21 10:43 | hudsonbot | Note Added: 0026525 | ||||||||||
| 2010-05-27 11:18 | gorkaion | Status | resolved => closed | |||||||||
| 2010-05-28 00:00 | anonymous | sf_bug_id | 0 => 3008200 | |||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||