Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009204Openbravo ERPA. Platformpublic2009-05-27 13:202009-06-09 00:00
gorka_gil 
gorka_gil 
urgentmajorhave not tried
closedfixed 
5
pi 
pi2.50MP2 
Core
No
0009204: Module registration errors are not translate
Error messages when something fail in the module registration are text plain, it should be in the openbravo message format that are stored in database and allow translation.
Currently there is no way of reproduce the problem because the exceptions of registration process are not well formed/parsed.

But is possible to see the message by a webservice debugger like soapUI, is necessary to call to registration service with incorrect data, like and invalid user/pass.
change the error message form:
   "User/pass incorrect"
to:
   "@CR_REG_INVALID_USER_PASS@"
   and add the message in database
No tags attached.
Issue History
2009-05-27 13:20gorka_gilNew Issue
2009-05-27 13:20gorka_gilAssigned To => alostale
2009-05-29 12:56psarobeStatusnew => scheduled
2009-05-29 12:56psarobefix_in_branch => pi
2009-06-01 09:24rafarodaversion => pi
2009-06-01 09:24rafarodafix_in_branchpi =>
2009-06-01 15:04gorka_gilNote Added: 0016813
2009-06-02 11:17gorka_gilAssigned Toalostale => gorka_gil
2009-06-02 11:25hgbotCheckin
2009-06-02 11:25hgbotNote Added: 0016848
2009-06-02 11:25hgbotStatusscheduled => resolved
2009-06-02 11:25hgbotResolutionopen => fixed
2009-06-02 11:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/497df2a505ef4c811359fc4be0deea4b698be6e9 [^]
2009-06-03 15:42hgbotCheckin
2009-06-03 15:42hgbotNote Added: 0016921
2009-06-03 15:42hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/497df2a505ef4c811359fc4be0deea4b698be6e9 [^] => http://code.openbravo.com/erp/devel/pi/rev/f733983eabf8ef84e4e1195f8b3aae069a476826 [^]
2009-06-08 12:50psarobeStatusresolved => closed
2009-06-08 12:50psarobeFixed in Version => 2.50MP2
2009-06-09 00:00anonymoussf_bug_id0 => 2803193

Notes
(0016813)
gorka_gil   
2009-06-01 15:04   
To fix the bug in openbravo side, is needed to add/update this messages in database:

@CR_RegisterNoUUID@ ModuleID is mandatory
@20531@ Not valid DB Prefix. DB Prefix must contain only upper alpha numeric characters and it must start with an alphabetic character.
@CR_DBPrefixInUse@ The given DB prefix is already in use. Try with different DB prefix
@CR_RegisterNoPackage@ The Java Package is mandatory.
@CR_JavaPacakgeInvalid@ A valid package name should be a string upto 255 ASCII characters following Java package name convention.
@CR_RegisterNoName@ Module Name is mandatory
@CR_RegisterInvalidName@ A valid module name should be a string upto 60 characters in natural English
@CR_RegisterNoDesc@ Description of module is mandatory.
@CR_RegisterInvalidDesc@ A valid module description should be a string upto 255 characters in natural English
@CR_RegisterNoType@ Type of module is mandatory.
@CR_RegisterInvalidType@ A valid module type should be one character. 'M' for module 'P' for packages and 'T' for industry templates.
@CR_PackageInUse@ The given Java Package is already in use. Try with different Java Package.
@CR_ModuleIDInUse@ Module Id already Registered.
@CR_RegUnknownError@ Unknown error occured while registering module. Contact forge admin.
@CR_RegInvalidUserPass@ Invalid username/password
@CR_RegInvalidForgeUser@ You are not yet synced with forge. Please login to forge then try registering.

A know issue is that for previous versions of openbravo (2.50 and 2.50mp1) the error messages are not updated or not exists.
For example the error for the invalid user in this versions will be "@CR_RegInvalidUserPass@"
(0016848)
hgbot   
2009-06-02 11:25   
Repository: erp/devel/pi
Changeset: 497df2a505ef4c811359fc4be0deea4b698be6e9
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Tue Jun 02 11:23:00 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/497df2a505ef4c811359fc4be0deea4b698be6e9 [^]

Fixed bug 9204 Added Central Repository Registration error messages.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0016921)
hgbot   
2009-06-03 15:42   
Repository: erp/devel/pi
Changeset: f733983eabf8ef84e4e1195f8b3aae069a476826
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Wed Jun 03 15:42:57 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f733983eabf8ef84e4e1195f8b3aae069a476826 [^]

Fixed bug 9204 Now Register errors are readed from database.

---
M src/org/openbravo/erpCommon/ad_process/RegisterModule.java
---