Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028443Openbravo ERPA. Platformpublic2014-12-17 19:592014-12-30 23:28
caristu 
alostale 
immediatetrivialalways
closedfixed 
5
pi 
3.0PR15Q23.0PR15Q1 
dbaz
Core
No
0028443: Exception not handled after upload a non supported image
There is a exception that is not being captured after uploading a non supported image by the java imageio library[1].

If the user tries to upload one of these images, the following exception is displayed in the log:

ERROR org.openbravo.erpCommon.info.ImageInfoBLOB - Error captured:
javax.imageio.IIOException: Unsupported Image Type

but the application doesn't show any message.

[1] http://stackoverflow.com/questions/7177655/java-imageio-iioexception-unsupported-image-type [^]
1) Go to the [Product] window and try to upload the attached image (is a CMYK-encoded jpeg image)
Capture the exception and inform in the application that the image the user is trying to upload is not supported.
No tags attached.
jpg logoOBCMYK.jpg (9,919) 2014-12-17 19:59
https://issues.openbravo.com/file_download.php?file_id=7616&type=bug
jpg
Issue History
2014-12-17 19:59caristuNew Issue
2014-12-17 19:59caristuAssigned To => AugustoMauch
2014-12-17 19:59caristuFile Added: logoOBCMYK.jpg
2014-12-17 19:59caristuModules => Core
2014-12-17 19:59caristuResolution time => 1419202800
2014-12-17 19:59caristuTriggers an Emergency Pack => No
2014-12-17 19:59caristuversion => pi
2014-12-17 19:59caristuTarget Version => 3.0PR15Q2
2014-12-18 10:41alostaleAssigned ToAugustoMauch => alostale
2014-12-18 10:41alostaleReview Assigned To => dbaz
2014-12-18 10:46hgbotCheckin
2014-12-18 10:46hgbotNote Added: 0072691
2014-12-18 10:46hgbotStatusnew => resolved
2014-12-18 10:46hgbotResolutionopen => fixed
2014-12-18 10:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/61caa1dd9f99e14def0ea59f9c33f28447ebdba7 [^]
2014-12-22 12:33dbazNote Added: 0072770
2014-12-22 12:33dbazStatusresolved => closed
2014-12-22 12:33dbazFixed in Version => 3.0PR15Q1
2014-12-30 23:28hudsonbotCheckin
2014-12-30 23:28hudsonbotNote Added: 0073242

Notes
(0072691)
hgbot   
2014-12-18 10:46   
Repository: erp/devel/pi
Changeset: 61caa1dd9f99e14def0ea59f9c33f28447ebdba7
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Dec 18 10:45:23 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/61caa1dd9f99e14def0ea59f9c33f28447ebdba7 [^]

fixed bug 28443: Exception not handled after upload a non supported image

  There were unhandled exceptions when uploading images, when in this case openbravo.log
  included info but this was not displayed to user.

  Now any exception occurred during image upload is caught and displayed in UI.

---
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-image.js
M src/org/openbravo/erpCommon/info/ImageInfoBLOB.java
---
(0072770)
dbaz   
2014-12-22 12:33   
Reviewed @ changeset 25583 - bd07f4b5032c
(0073242)
hudsonbot   
2014-12-30 23:28   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6525fe229e06 [^]
Maturity status: Test