Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049062
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 00. Application dictionaryminoralways2022-04-14 10:462022-04-26 13:08
ReporterjmelinView Statuspublic 
Assigned Tocberner 
PriorityhighResolutionfixedFixed in VersionPR22Q3
StatusclosedFix in branchFixed in SCM revisionf817c84b8251
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToAugustoMauch
Web browser
ModulesCore
Regression levelProduction - Confirmed Stable
Regression date2020-11-09
Regression introduced in releasePR21Q1
Regression introduced by commithttps://gitlab.com/openbravo/product/openbravo/-/commit/f9de9389948227a1510d21a57811818a1e9c880c [^]
Triggers an Emergency PackNo
Summary

0049062: JIRA 2879 - Backoffice - can't import a bmp file

DescriptionWhen 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 ReproduceConnect 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
TagsNo tags attached.
Attached Filespng file icon Capture.PNG [^] (11,681 bytes) 2022-04-14 10:48


? file icon Sans titre.bmp [^] (2,222 bytes) 2022-04-14 10:48

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0049075PR22Q2 closedcberner JIRA 2879 - Backoffice - can't import a bmp file 
depends on backport 0049076PR22Q1.2 closedcberner JIRA 2879 - Backoffice - can't import a bmp file 
depends on backport 0049134PR21Q4.5 closedcberner JIRA 2879 - Backoffice - can't import a bmp file 
caused by defect 0045086 closedcberner Remove Apache Tika library with already existing Java 7+ functionality 

-  Notes
(0136582)
hgbot (developer)
2022-04-19 11:26

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/560 [^]
(0136633)
hgbot (developer)
2022-04-20 14:00

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/560 [^]
(0136634)
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: f817c84b82512b66e82755471015f241e3917a7f
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 19-04-2022 11:46:48
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/f817c84b82512b66e82755471015f241e3917a7f [^]

Fixes ISSUE-49062: 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
---

- Issue History
Date Modified Username Field Change
2022-04-14 10:46 jmelin New Issue
2022-04-14 10:46 jmelin Assigned To => Triage Platform Base
2022-04-14 10:46 jmelin Triggers an Emergency Pack => No
2022-04-14 10:48 jmelin File Added: Capture.PNG
2022-04-14 10:48 jmelin File Added: Sans titre.bmp
2022-04-19 10:52 cberner Regression level => Production - Confirmed Stable
2022-04-19 10:52 cberner Regression date => 2020-11-09
2022-04-19 10:52 cberner Regression introduced by commit => https://gitlab.com/openbravo/product/openbravo/-/commit/f9de9389948227a1510d21a57811818a1e9c880c [^]
2022-04-19 11:16 cberner Assigned To Triage Platform Base => cberner
2022-04-19 11:18 cberner Project POS2 => Openbravo ERP
2022-04-19 11:19 cberner Status new => scheduled
2022-04-19 11:26 hgbot Note Added: 0136582
2022-04-20 14:00 hgbot Note Added: 0136633
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 => PR22Q3
2022-04-20 14:00 hgbot Note Added: 0136634
2022-04-20 14:55 alostale Modules => Core
2022-04-20 14:55 alostale Regression introduced in release => PR22Q1
2022-04-20 14:55 alostale Severity major => minor
2022-04-20 14:55 alostale Category Core => 00. Application dictionary
2022-04-20 14:55 alostale Regression introduced in release PR22Q1 => PR21Q1
2022-04-20 15:56 alostale Relationship added caused by 0045086
2022-04-26 13:07 cberner Status closed => new
2022-04-26 13:07 cberner Resolution fixed => open
2022-04-26 13:07 cberner Fixed in Version PR22Q3 =>
2022-04-26 13:07 cberner Status new => scheduled
2022-04-26 13:08 cberner Status scheduled => resolved
2022-04-26 13:08 cberner Fixed in Version => PR22Q3
2022-04-26 13:08 cberner Fixed in SCM revision => https://gitlab.com/openbravo/product/openbravo/-/commit/f817c84b82512b66e82755471015f241e3917a7f [^]
2022-04-26 13:08 cberner Resolution open => fixed
2022-04-26 13:08 cberner Review Assigned To => AugustoMauch
2022-04-26 13:08 cberner Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker