[IO] Bug in FileChannels.contentEquals?

2023-11-06 Thread Stephan Markwalder
Hi, I think I have found a bug in the new FileChannels.contentEquals(...) in Commons IO 2.15.0 which then affects RandomAccessFiles.contentEquals(...), PathUtils.fileContentEquals(...), FileUtils.contentEquals(...), and maybe more methods. But before opening an issue in ASF JIRA, I would like to p

Re: [IO] Bug in FileChannels.contentEquals?

2023-11-06 Thread Stephan Markwalder
. It's better if you don't > send a fix, at least at first. That makes it easier to verify the bug. > > On Mon, Nov 6, 2023 at 10:04 AM Stephan Markwalder > wrote: > > > > Hi, > > > > I think I have found a bug in the new FileChannels.contentEqu

[IO] Change in behavior in Commons FileUpload after upgrade to Commons IO 2.16.1

2024-04-10 Thread Stephan Markwalder
Hi, Today, I found the following questions in https://github.com/apache/commons-io/pull/609: > The behavior for a negative threshold should be the same as 0 IMO. WDYT? > What does it even mean that a threshold is negative? > Writing zero bytes writes nothing, so there is nothing to reach until y