Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0049075 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] [POS2] Core | major | always | 2022-04-14 10:46 | 2022-04-20 14:00 | |||
Reporter | jmelin | View Status | public | |||||
Assigned To | cberner | |||||||
Priority | high | Resolution | fixed | Fixed in Version | PR22Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | PR22Q2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | Production - Confirmed Stable | |||||||
Regression date | 2020-11-09 | |||||||
Regression introduced in release | ||||||||
Regression introduced by commit | https://gitlab.com/openbravo/product/openbravo/-/commit/f9de9389948227a1510d21a57811818a1e9c880c [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0049075: JIRA 2879 - Backoffice - can't import a bmp file | |||||||
Description | When trying to import a bmp file using an image import button Then an error is triggered that said only jpg, png or bmp can be imported So bmp can't be imported despite being an authorized type | |||||||
Steps To Reproduce | Connect to back office Open "Products" window and select any product Try to import a bmp as product image => Error is triggered and image is not imported | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0136584) hgbot (developer) 2022-04-19 11:30 |
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/562 [^] |
(0136637) hgbot (developer) 2022-04-20 14:00 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/openbravo [^] Changeset: 280b2f81703961e4b79d78b0641d260f71c86d14 Author: Cristian Berner <cristian.berner@openbravo.com> Date: 19-04-2022 11:47:36 URL: https://gitlab.com/openbravo/product/openbravo/-/commit/280b2f81703961e4b79d78b0641d260f71c86d14 [^] Fixes ISSUE-49075: can't import a bmp file After switching from using tika library to using the jdk URLConnection guessContentTypeFromStream implementation to determine the mimetype of an uploaded file, this broke. The URLConnection implementation is not able to guess if a file is a bmp image or not, it will detect it as a binary file. To fix this, if it is not detected using this API, ImageIO API is used to try and read the file, if that's successful, then the file is a bmp image file. Regression introduced by commit 2d1e219013bf482f68d4c6809f367dcad8f28e7d --- M src/org/openbravo/erpCommon/utility/MimeTypeUtil.java --- |
(0136638) hgbot (developer) 2022-04-20 14:00 |
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/562 [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2022-04-19 11:19 | cberner | Type | defect => backport |
2022-04-19 11:19 | cberner | Target Version | => PR22Q2 |
2022-04-19 11:30 | hgbot | Note Added: 0136584 | |
2022-04-20 14:00 | hgbot | Resolution | open => fixed |
2022-04-20 14:00 | hgbot | Status | scheduled => closed |
2022-04-20 14:00 | hgbot | Fixed in Version | => PR22Q2 |
2022-04-20 14:00 | hgbot | Note Added: 0136637 | |
2022-04-20 14:00 | hgbot | Note Added: 0136638 |
Copyright © 2000 - 2009 MantisBT Group |