Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012708Openbravo ERP02. Master data managementpublic2010-03-17 13:272010-04-19 21:13
maite 
adrianromero 
highminoralways
closedfixed 
5
2.40MP12 
 
Core
No
0012708: If you fill a field with the maximum length permited and one of the character is special it fails when saving
If you fill a field with the maximum length permited and one of the character is special it fails when saving

ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at "TAD_240_FULL.C_BPARTNER_LOCATION_TRG", line 70 ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-04088: error during execution of trigger 'TAD_240_FULL.C_BPARTNER_LOCATION_TRG'
1. Master Data Management || Business Partner || Business Partner >> Location/Address: create new record
2. Press Location selector and set 1st line= áaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (60length with special character)
SAVE
3. Try to deactivate the record and you will get the error

If you create a new record with 1st line= aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (60length with NO special character) you can deactivate record without problems
No tags attached.
depends on backport 0012906 closed adrianromero If you fill a field with the maximum length permited and one of the character is special it fails when saving 
Issue History
2010-03-17 13:27maiteNew Issue
2010-03-17 13:27maiteAssigned To => adrianromero
2010-03-17 13:29maiteNote Added: 0025571
2010-04-07 18:15adrianromeroIssue cloned0012906
2010-04-07 18:15adrianromeroRelationship addeddepends on 0012906
2010-04-07 18:15adrianromeroStatusnew => scheduled
2010-04-07 18:15adrianromerofix_in_branch => pi
2010-04-07 18:17adrianromeroNote Added: 0025956
2010-04-12 18:50hgbotCheckin
2010-04-12 18:50hgbotNote Added: 0026081
2010-04-12 18:50hgbotStatusscheduled => resolved
2010-04-12 18:50hgbotResolutionopen => fixed
2010-04-12 18:50hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/6bd4524448a7c3aa2068726e7535abdce8d43315 [^]
2010-04-12 19:00adrianromeroNote Added: 0026083
2010-04-15 12:03plujanNote Added: 0026245
2010-04-15 12:03plujanStatusresolved => closed
2010-04-16 00:00anonymoussf_bug_id0 => 2987968
2010-04-19 21:13hudsonbotCheckin
2010-04-19 21:13hudsonbotNote Added: 0026457

Notes
(0025571)
maite   
2010-03-17 13:29   
sla date=02/06/2010
(0025956)
adrianromero   
2010-04-07 18:17   
The proposal to fix this issue is to change the type of the variable v_Name of the trigger "c_bpartner_location_trg" to NVARCHAR instead of VARCHAR2 because this variable is used to manipulate the data of the field NAME that is of type NVARCHAR.
(0026081)
hgbot   
2010-04-12 18:50   
Repository: erp/devel/pi
Changeset: 6bd4524448a7c3aa2068726e7535abdce8d43315
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Mon Apr 12 19:02:43 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/6bd4524448a7c3aa2068726e7535abdce8d43315 [^]

Fixes issue 0012708: If you fill a field with the maximum length permited and one of the character is special it fails when saving

---
M src-db/database/model/triggers/C_BPARTNER_LOCATION_TRG.xml
---
(0026083)
adrianromero   
2010-04-12 19:00   
To test the issue just follow the reproduction steps and check that after creating a new location with 60 characters in the name even if it has special characters of not it is possible to deactivate.

The change set only changes the type of the v_name variable to NVARCHAR2 this what the data type of the v_name varialble is equal to the data type of the column is this variable used for.

This change only affects when the Partner Location is modified, there is no other areas affected.
(0026245)
plujan   
2010-04-15 12:03   
Tested in PI
(0026457)
hudsonbot   
2010-04-19 21:13   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/6bd4524448a7 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/91d98bda46c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17088.obx [^]