You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.
Method WebDownloader#download(DownloadDataProvider, String, DownloadFormat) has incorrect behaviour: HTML document downloads but extenstion 'html' is specified in default value of UiProperties#viewFileExtensions property and that's why HTML document should be shown in new tab.
After insvestigation of problem: current default value of 'viewFileExtensions' property in UiProperties is converting
to the list with one string "htm,html,jpg,png,jpeg,pdf" specified in @DefaultValue annotation.
But for method WebDownloader#download it seems incorrectly: for 'showNewWindow' flag it is checked whether file format contains in list returned by UiProperties#getViewFileExtensions.
QA
Check that documents with extension from the uiProperties#getViewFileExtensions property open in a new browser tab and are not downloaded to the computer.
The default value of uiProperties#getViewFileExtensions() property is htm, html, jpg, png, jpeg, pdf.
Try to change the uiProperties#getViewFileExtensions() property value:
GlebDurygin
changed the title
Downloader does not show HTML document in new tab
Change the format of default values for collection properties
Mar 4, 2021
GlebDurygin
pushed a commit
to jmix-projects/jmix-reports
that referenced
this issue
Mar 4, 2021
Method WebDownloader#download(DownloadDataProvider, String, DownloadFormat) has incorrect behaviour: HTML document downloads but extenstion 'html' is specified in default value of UiProperties#viewFileExtensions property and that's why HTML document should be shown in new tab.
After insvestigation of problem: current default value of 'viewFileExtensions' property in UiProperties is converting
to the list with one string "htm,html,jpg,png,jpeg,pdf" specified in @DefaultValue annotation.
But for method WebDownloader#download it seems incorrectly: for 'showNewWindow' flag it is checked whether file format contains in list returned by UiProperties#getViewFileExtensions.
QA
Check that documents with extension from the
uiProperties#getViewFileExtensions
property open in a new browser tab and are not downloaded to the computer.The default value of
uiProperties#getViewFileExtensions()
property is htm, html, jpg, png, jpeg, pdf.Try to change the
uiProperties#getViewFileExtensions()
property value:application.properties
fileapplication.yml
fileTest case
Actual behavior
The
test.html
file is downloaded to the computerExpected behavior
The
test.html
file will open in a new browser tabThe text was updated successfully, but these errors were encountered: