- 
    Type:
Bug
 - 
    Resolution: Fixed
 - 
    Priority:
  P3                     
     - 
    Affects Version/s: 11, 17, 19
 - 
    Component/s: core-libs
 
- 
        b03
 - 
        Verified
 
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8299270 | 20 | Chris Hegarty | P3 | Resolved | Fixed | b30 | 
| JDK-8313289 | 17.0.10-oracle | Weibing Xiao | P3 | Resolved | Fixed | b01 | 
| JDK-8299353 | 17.0.7 | Chris Hegarty | P3 | Resolved | Fixed | b01 | 
@Override
public void onNext(List<ByteBuffer> items) {
try {
out.write(items.toArray(Utils.EMPTY_BB_ARRAY));
...
the implementation assumes out.write(ByteBuffer[]) always writes the content of all buffers - this isn't the case and the method can write a lesser number of bytes from input buffers.
See https://mail.openjdk.org/pipermail/net-dev/2022-December/019883.html
- backported by
 - 
                    
JDK-8299270 Ensure that HttpResponse.BodySubscribers.ofFile writes all bytes
-         
     - Resolved
 
 -         
 - 
                    
JDK-8299353 Ensure that HttpResponse.BodySubscribers.ofFile writes all bytes
-         
     - Resolved
 
 -         
 - 
                    
JDK-8313289 Ensure that HttpResponse.BodySubscribers.ofFile writes all bytes
-         
     - Resolved
 
 -         
 
- links to
 - 
                    
        
        Commit
        openjdk/jdk17u-dev/3ff9669b
    
 - 
                    
        
        Commit
        openjdk/jdk20/9863f59e
    
 - 
                    
        
        Commit
        openjdk/jdk/a7d6de71
    
 - 
                    
        
        Review
        openjdk/jdk17u-dev/964
    
 - 
                    
        
        Review
        openjdk/jdk20/70
    
 - 
                    
        
        Review
        openjdk/jdk/11722