This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 211942

Summary: Possible dataloss in (B/C)lobFieldTableCellEditor - streams are not closed
Product: db Reporter: matthias42
Component: Show DataAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED FIXED    
Severity: normal Keywords: NETFIX
Priority: P1    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Proposed fix (close streams after transfer)

Description matthias42 2012-05-02 09:21:20 UTC
Created attachment 118951 [details]
Proposed fix (close streams after transfer)

I tested the BLOB/CLOB changes of bug #206233 on jdk 7 and saw dataloss when saving a shot (4 bytes) clob column. The problem is, that the streams used to do the transfer between the LOB and the file are not correctly closed.

Adding the necessary close calls (see attached patch) fixes this issue.

Because of the potential dataloss I set the priority to P1.
Comment 1 Jiri Rechtacek 2012-05-02 13:52:37 UTC
Thanks, was applied in core-main/rev/801ad00b0ce1
Comment 2 Quality Engineering 2012-05-04 09:53:25 UTC
Integrated into 'main-golden', will be available in build *201205040400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/801ad00b0ce1
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #211942: Possible dataloss in (B/C)lobFieldTableCellEditor - streams are not closed