Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0031168 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] 05. Production management | major | always | 2015-10-09 12:27 | 2015-10-20 12:04 | |||
Reporter | ngarcia | View Status | public | |||||
Assigned To | Triage Omni OMS | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 8e8cc00704ab | ||||
Projection | none | ETA | none | Target Version | 3.0PR15Q3.2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | dmiguelez | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | Production - Confirmed Stable | |||||||
Regression date | 2014-04-24 | |||||||
Regression introduced in release | 3.0PR14Q3 | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/b856094303a9c6daff6db1d67e29563d273d512a [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0031168: Copy Version process in Process Plan window is not working in Oracle | |||||||
Description | Copy Version process in Process Plan window is not working in Oracle | |||||||
Steps To Reproduce | As group admin role: Create a Process Plan, Version, Operation... Click on the Copy Version and select the already created version Check no new version is created and the logs shows: ERROR org.openbravo.base.exception.OBException - java.sql.SQLSyntaxErrorException: ORA-00904: "AD_SEQUENCE_DOC": invalid identifier java.lang.IllegalStateException: java.sql.SQLSyntaxErrorException: ORA-00904: "AD_SEQUENCE_DOC": invalid identifier at org.openbravo.service.db.CallStoredProcedure.call(CallStoredProcedure.java:142) at org.openbravo.common.actionhandler.CopyProcessPlanVersion.callAdSequenceDoc(CopyProcessPlanVersion.java:188) | |||||||
Tags | Approved | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0081120) hgbot (developer) 2015-10-20 12:04 |
Repository: erp/backports/3.0PR15Q3.2 Changeset: 8e8cc00704aba39fb7ee35472430d4c8c3d5b42b Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com> Date: Mon Oct 19 12:38:32 2015 +0200 URL: http://code.openbravo.com/erp/backports/3.0PR15Q3.2/rev/8e8cc00704aba39fb7ee35472430d4c8c3d5b42b [^] Fixed bug 31168: Copy Version process in Process Plan window is not working in Oracle Ad_Sequence_Doc is a stored procedure that returns the next sequence number using an "out" parameter. The CallStoredProcedure.call() used to call that procedure doesn't currently support parameters of type "out", creating an exception in Oracle only (and not in PostgreSQL because the procedure is declared as a function returning the value). Instead of calling the procedure using CallStoredProcedure.call(), we use Utility.getDocumentNo() method instead, which is a more standard way to get the next sequence no. from Java, and supports Oracle procedures with "out" parameters. Besides the class has been modified to properly show an error message in the UI in case an exception is raised, which is something not working before neither. --- M src/org/openbravo/common/actionhandler/CopyProcessPlanVersion.java --- |
(0081121) dmiguelez (developer) 2015-10-20 12:04 |
Code Review + Testing Ok |
Issue History | |||
Date Modified | Username | Field | Change |
2015-10-19 12:18 | vmromanos | Type | defect => backport |
2015-10-19 12:18 | vmromanos | Target Version | => 3.0PR15Q3.2 |
2015-10-19 12:19 | vmromanos | Tag Attached: Approved | |
2015-10-20 12:04 | hgbot | Checkin | |
2015-10-20 12:04 | hgbot | Note Added: 0081120 | |
2015-10-20 12:04 | hgbot | Status | scheduled => resolved |
2015-10-20 12:04 | hgbot | Resolution | open => fixed |
2015-10-20 12:04 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR15Q3.2/rev/8e8cc00704aba39fb7ee35472430d4c8c3d5b42b [^] |
2015-10-20 12:04 | dmiguelez | Review Assigned To | => dmiguelez |
2015-10-20 12:04 | dmiguelez | Note Added: 0081121 | |
2015-10-20 12:04 | dmiguelez | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |