Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0013356 | Openbravo ERP | A. Platform | public | 2010-05-18 09:52 | 2010-05-20 11:15 | |||||||
Reporter | networkb | |||||||||||
Assigned To | adrianromero | |||||||||||
Priority | immediate | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | 2.50MP17 | |||||||||||
Target Version | 2.50MP18 | Fixed in Version | 2.50MP18 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0013356: Error when updating from 2.50mp14 to 2.50mp17. | |||||||||||
Description | Error when updating from 2.50mp14 to 2.50mp17 if you have defined a new documenttype for the good shipments or receipts ( docbasetype 'MMR' or'MMS') using a name with lengh bigger than 44. This is because the CreateDoctypeTemplate modulescripts tries to insert on the table c_poc_doctype_template a new entrie but using as name the name of the document + " Report Template" so this new string excedes the maximum lenght of the column name on the c_poc_doctype_template table. | |||||||||||
Steps To Reproduce | -On 2.50mp14 release define a new document with docbasetype 'MMR' or'MMS' using a name with lengh bigger than 44. -Upate the application to 2.50mp17 -You get the following error: [java] 222633 INFO - Executing moduleScript: org.openbravo.modulescript.CreateDoctypeTemplate [java] 222959 ERROR - SQL error in query: INSERT INTO c_poc_doctype_template( c_poc_doctype_template_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_doctype_id, name, templatelocation, reportfilename, templatefilename) VALUES (?, ?, '0', 'Y', now(), '0', now(), '0', ?, ?, ?, ?, ?)Exception:org.postgresql.util.PSQLException: ERROR: value too long for type character varying(60) [java] 222962 ERROR - Error executing moduleScript org.openbravo.modulescript.CreateDoctypeTemplate: @CODE=0@ERROR: value too long for type character varying(60) [java] 222964 ERROR - Error executing moduleScript: org.openbravo.modulescript.CreateDoctypeTemplate [java] Execution of moduleScript org.openbravo.modulescript.CreateDoctypeTemplatefailed. [java] at org.openbravo.modulescript.ModuleScriptHandler.execute(ModuleScriptHandler.java:68) [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.java:164) [java] at org.openbravo.ddlutils.task.BaseDatabaseTask.execute(BaseDatabaseTask.java:87) [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:34) [java] Exception in thread "main" Execution of moduleScript org.openbravo.modulescript.CreateDoctypeTemplatefailed. [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.java:202) [java] at org.openbravo.ddlutils.task.BaseDatabaseTask.execute(BaseDatabaseTask.java:87) [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:34) [java] Caused by: Execution of moduleScript org.openbravo.modulescript.CreateDoctypeTemplatefailed. [java] at org.openbravo.modulescript.ModuleScriptHandler.execute(ModuleScriptHandler.java:68) [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.java:164) [java] ... 2 more [java] --- Nested Exception --- [java] Execution of moduleScript org.openbravo.modulescript.CreateDoctypeTemplatefailed. [java] at org.openbravo.modulescript.ModuleScriptHandler.execute(ModuleScriptHandler.java:68) [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.java:164) [java] at org.openbravo.ddlutils.task.BaseDatabaseTask.execute(BaseDatabaseTask.java:87) [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:34) | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | Regression | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2010-05-18 09:52 | networkb | New Issue | ||||||||||
2010-05-18 09:52 | networkb | Assigned To | => alostale | |||||||||
2010-05-18 09:53 | networkb | Target Version | => 2.50MP18 | |||||||||
2010-05-18 10:56 | alostale | Status | new => scheduled | |||||||||
2010-05-18 10:56 | alostale | Assigned To | alostale => adrianromero | |||||||||
2010-05-18 10:56 | alostale | fix_in_branch | => pi | |||||||||
2010-05-18 11:03 | psarobe | Tag Attached: Regression | ||||||||||
2010-05-18 11:04 | psarobe | version | 2.50MP14 => 2.50MP17 | |||||||||
2010-05-18 11:04 | psarobe | fix_in_branch | pi => | |||||||||
2010-05-18 12:25 | adrianromero | Relationship added | related to 0011996 | |||||||||
2010-05-18 13:08 | hgbot | Checkin | ||||||||||
2010-05-18 13:08 | hgbot | Note Added: 0027416 | ||||||||||
2010-05-18 13:08 | hgbot | Status | scheduled => resolved | |||||||||
2010-05-18 13:08 | hgbot | Resolution | open => fixed | |||||||||
2010-05-18 13:08 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/7203ab098ac5957a682e284557c2996530ae8c70 [^] | |||||||||
2010-05-18 13:10 | harikrishnan | Note Added: 0027417 | ||||||||||
2010-05-18 14:56 | psarobe | Note Added: 0027431 | ||||||||||
2010-05-18 14:56 | psarobe | Status | resolved => closed | |||||||||
2010-05-18 14:56 | psarobe | Fixed in Version | => 2.50MP18 | |||||||||
2010-05-19 00:01 | anonymous | sf_bug_id | 0 => 3003691 | |||||||||
2010-05-20 11:15 | hudsonbot | Checkin | ||||||||||
2010-05-20 11:15 | hudsonbot | Note Added: 0027592 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|