[
https://issues.apache.org/jira/browse/IO-736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17359641#comment-17359641
]
Yan Duan commented on IO-736:
-----------------------------
[~ggregory] it turned out that it was our unit test that didn't mock the
IOUtils.length(boms) function during BOM object creation, which is used in
commons-io 2.7 instead of the old way (boms.length). Hence this bug is a false
alarm. thanks
> commons-io version 2.7+: IOUtils.length(boms) returns 0 even if boms is not
> empty
> ---------------------------------------------------------------------------------
>
> Key: IO-736
> URL: https://issues.apache.org/jira/browse/IO-736
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.7
> Reporter: Yan Duan
> Priority: Major
> Attachments: image-2021-06-02-16-47-57-567.png
>
>
> in"BOMInputStream" class, IOUtils.length(boms) would return 0 and breaks the
> method while "boms" has five elements:
> !image-2021-06-02-16-47-57-567.png|width=450,height=300!
> please investigate and provide a fix, thanks!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)