isFaultyImage returns false positive response when file.filepath
is empty
#20309
Labels
issue: bug
Issue reporting a bug
severity: low
If the issue only affects a very niche base of users and an easily implemented workaround can solve
source: core:upload
Source is core/upload package
status: pending reproduction
Waiting for free time to reproduce the issue, or more information
Bug report
Required System information
Describe the bug
I believe there is a bug in the
isFaultyImage
function implementation on this line. Now, when thestats
function returns correct result it will be passed to theresolve
callback and will make the result ofisFaultyImage
positive, which is not the correct result.The correct implementation should be something like this:
pipeline.stats().then(() => resolve(false)).catch(() => resolve(true));
The text was updated successfully, but these errors were encountered: