Loyal-Young opened a new issue, #11258: URL: https://github.com/apache/rocketmq/issues/11258
### Before Creating the Bug Report - [x] I inspected the current develop code and searched related issues/open pull requests. ### Summary MixAll.file2String(URL) treats InputStream.available() as the total resource length and performs only one read. Streams may report zero available bytes or return short reads, so a valid configuration can be returned empty or truncated. ### Steps to Reproduce A URLConnection stream returning available()==0 and one byte per read must still return the entire UTF-8 configuration. ### Expected Behavior Read until EOF using the existing UTF-8 reader helper and close the input with try-with-resources. ### Environment / Additional Context - Reproduced against develop commit `78b96bc5e21216cd7896efae08f90c5cde4cae53`. - Regression test: `MixAllUrlReadTest`. - The regression fails before the fix and passes afterward on JDK 8. - Proposed change is limited to the existing implementation; no protocol or new API is introduced. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
