Notes |
|
|
Note the import failed as one xml file which was to be imported was brkoen (not valid xml). This was shown in the error log but not shown to the user.
Two open issues:
- Improve logging of the exception to mention the file being imported when it happened
- Show error to the user in the UI (but be careful to not break installation of translation pack via an obx file) |
|
|
(0021061)
|
hgbot
|
2009-10-15 15:07
|
|
Repository: erp/devel/pi
Changeset: 1b63de618c4b127c472d74dd9a7d269fda043845
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Thu Oct 15 15:06:58 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1b63de618c4b127c472d74dd9a7d269fda043845 [^]
Issue 10979: Improve exception logging when importing a translation
Mention filename in the error when an exception happens on parsing an xml file
---
M src/org/openbravo/erpCommon/ad_forms/Translation.java
---
|
|
|
(0052640)
|
shankarb
|
2012-09-26 16:55
|
|
Test plan:
1. In the Import/Export Translation, export a language. eg., Spanish
2. Go the attachments folder where the exported translation xml files are saved.
3. Edit and Save a xml file with some added text in header.
4. In the Import/Export Translation, try to import the same language that you exported.
5. An error appears with the file name.
6. Notice that other proper files have been imported. |
|
|
(0052853)
|
hgbot
|
2012-09-28 10:24
|
|
Repository: erp/devel/pi
Changeset: 35d251a9e6597da463e0665003fc2e2f43f2d4fe
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Thu Sep 27 17:13:54 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/35d251a9e6597da463e0665003fc2e2f43f2d4fe [^]
Fixes Issue 0010979 : Display Error for unparsed XML Files.
In Import translation process, added an error message with the files that has not been parsed.
---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_forms/TranslationManager.java
---
|
|
|
(0052855)
|
hgbot
|
2012-09-28 10:53
|
|
Repository: erp/devel/pi
Changeset: fe3bcfb01f4859fb6a7e035e5d9d62f054764ce5
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Sep 28 10:52:06 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/fe3bcfb01f4859fb6a7e035e5d9d62f054764ce5 [^]
Related to issue 10979: Backs out changes until final fix is ready
---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_forms/TranslationManager.java
---
|
|
|
|
|
|
(0052927)
|
hgbot
|
2012-09-28 15:11
|
|
Repository: erp/devel/pi
Changeset: 0bdd29a50fccec52e35b64fb484b080a104ca40e
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Fri Sep 28 12:59:32 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/0bdd29a50fccec52e35b64fb484b080a104ca40e [^]
Fixes Issue 0010979 : Display Error for unparsed XML Files.
In Import translation process, throws an exception when there are unparsable files.
---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_forms/TranslationManager.java
---
|
|
|
|
Code reviewed and verified in pi@0bdd29a50fcc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|