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 - Possible dataloss in (B/C)lobFieldTableCellEditor - streams are not closed
Summary: Possible dataloss in (B/C)lobFieldTableCellEditor - streams are not closed
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 7.2
Hardware: All All
: P1 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: NETFIX
Depends on:
Blocks:
 
Reported: 2012-05-02 09:21 UTC by matthias42
Modified: 2012-05-04 09:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed fix (close streams after transfer) (2.46 KB, patch)
2012-05-02 09:21 UTC, matthias42
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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