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.
Summary: | Error saving XML with LATIN character | ||
---|---|---|---|
Product: | projects | Reporter: | ksfreitas <ksfreitas> |
Component: | Generic Infrastructure | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | anonymous-vovus, mobear, sebglon, tzezula |
Priority: | P2 | ||
Version: | 7.2.1 | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Error reproduction
Proposed fix |
Description
ksfreitas
2012-10-03 12:38:39 UTC
Could you please attach the file, or a portion of it, which I could use to raise the error ? Thanks. Created attachment 125302 [details]
Error reproduction
You have to put a latin character in body before try to save. (like ç, á, ã)
It worked before the last update. sdedic, you're able to reproduce the problem? Yes, thanks for the detailed report. This defect can actually affect not only XMLs and is in the generic infrastructure. If triggered, the user may loose data (unsaved file). Created attachment 126003 [details]
Proposed fix
The proxy encoder did not properly handle OVERFLOW condition during encodeHead
Tomasi, could you please review the fix (as one of the original authors) ? there was a defect in FEQ delegating encoder in that during flush(), the delegate encoder was flushed although it did not encode all contents of the buffer because of output buffer's overflow. Changeset: 4dbab72bb677 Author: Svata Dedic <sdedic@netbeans.org> Date: 2012-10-17 17:57 Message: Fixed behaviour on output buffer boundary/overflow Integrated into 'main-golden', will be available in build *201210180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/4dbab72bb677 User: Svata Dedic <sdedic@netbeans.org> Log: Issue #219447 - Error saving XML with LATIN character: fixed Fixed behaviour on output buffer boundary/overflow The fix seems good to me. *** Bug 220710 has been marked as a duplicate of this bug. *** *** Bug 219267 has been marked as a duplicate of this bug. *** *** Bug 226895 has been marked as a duplicate of this bug. *** |