jmix-framework / jmix

Jmix framework
https://www.jmix.io
Apache License 2.0
561 stars 121 forks source link

Ability to extend supported extension - file parser mapping #3690

Open fractal3000 opened 2 weeks ago

fractal3000 commented 2 weeks ago

It is a more profound fix of the problem https://github.com/jmix-framework/jmix/issues/3660

Steps To Reproduce

Create project with search add-on. Create entity with field of "FileReference" type. Create search index definition with pointing of the attribute. Start project Login to UI Add enitities data with adding files of some not-document format(e.g. sql) See the console log

Current Behavior Long stack trace is appeared.

Expected Behavior There is human readable message obout using not supporting file format.

Steps To Reproduce

Create project with search add-on. Create entity with field of "FileReference" type. Create search index definition with pointing of the attribute. Start project Login to UI Add enitities data with adding files without any extension See the console log

Current Behavior Long stack trace is appeared.

Expected Behavior There is human readable message obout using not supporting file format.

The problem with uppercase extensions also should be solved https://github.com/jmix-framework/jmix/issues/3696

A programmer should be able to add more supported file extensions without modifing any service beans logic.