Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0024514 | Openbravo ERP | 00. Application dictionary | public | 2013-08-08 12:46 | 2013-08-16 20:32 | |||||||
Reporter | gorkaion | |||||||||||
Assigned To | alostale | |||||||||||
Priority | immediate | Severity | critical | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 20 | OS Version | Gentoo | ||||||||
Product Version | pi | |||||||||||
Target Version | 3.0MP27 | Fixed in Version | 3.0MP27 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | shankarb | |||||||||||
OBNetwork customer | No | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | Production - Confirmed Stable | |||||||||||
Regression date | 2013-05-13 | |||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/885e989c6784 [^] | |||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0024514: Delete Client fails when the AD has Datasource based tables | |||||||||||
Description | The Delete client process fails when there is a table defined in the AD dictionary that it is Datasource based. In Oracle the process finishes OK but leaves an exception in the logs. In postgresql the DeleteClient test throws an error in Jenkins [1] 7060408 [http-8080-10] ERROR org.openbravo.service.system.SystemService - exception when deleting the client: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396) at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837) at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445) at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191) at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207) at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1010) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1315) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3576) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3657) at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350) at org.openbravo.service.system.SystemService.deleteClient(SystemService.java:334) [1] http://builds.openbravo.com/view/try/job/try-full-pgsql/1790/console [^] | |||||||||||
Steps To Reproduce | 1 Create a table in the AD that it is Datasource based. 2 Create a column in this table with: -DB Column Name: AD_Client_ID -Name: Client -Reference: TableDir 3 Restart Tomcat 4 Create a new client. 5 Delete created client. See logs | |||||||||||
Proposed Solution | The exception is thrown in line 334 of SystemService. In line 323 starts a loop for all entities. In that loop views are ignored but not Datasource based entities. If clause should be modified to include (!entity.isDataSourceBased()). I haven't checked if there are more loops in the process that loops through all the entities. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2013-08-08 12:46 | gorkaion | New Issue | ||||||||||
2013-08-08 12:46 | gorkaion | Assigned To | => alostale | |||||||||
2013-08-08 12:46 | gorkaion | Modules | => Core | |||||||||
2013-08-08 12:46 | gorkaion | OBNetwork customer | => No | |||||||||
2013-08-08 12:46 | gorkaion | Triggers an Emergency Pack | => No | |||||||||
2013-08-08 12:52 | gorkaion | Regression level | => Production - Confirmed Stable | |||||||||
2013-08-08 12:52 | gorkaion | Regression date | => 2013-05-13 | |||||||||
2013-08-08 12:52 | gorkaion | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/885e989c6784 [^] | |||||||||
2013-08-08 14:41 | alostale | Relationship added | related to 0024505 | |||||||||
2013-08-08 14:43 | alostale | Review Assigned To | => shankarb | |||||||||
2013-08-08 14:43 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=4948#r4948 | |||||||||
2013-08-08 14:45 | hgbot | Checkin | ||||||||||
2013-08-08 14:45 | hgbot | Note Added: 0060545 | ||||||||||
2013-08-08 14:45 | hgbot | Status | new => resolved | |||||||||
2013-08-08 14:45 | hgbot | Resolution | open => fixed | |||||||||
2013-08-08 14:45 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d1cfd2567d699ce7ed10198af48f0dd4b137a23d [^] | |||||||||
2013-08-12 06:18 | shankarb | Note Added: 0060558 | ||||||||||
2013-08-12 06:18 | shankarb | Status | resolved => closed | |||||||||
2013-08-12 06:18 | shankarb | Fixed in Version | => 3.0MP27 | |||||||||
2013-08-16 20:32 | hudsonbot | Checkin | ||||||||||
2013-08-16 20:32 | hudsonbot | Note Added: 0060638 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|