https://issues.apache.org/bugzilla/show_bug.cgi?id=50083

           Summary: Workbook.setSheetOrder does not fixup record list
           Product: POI
           Version: 3.6
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Workbook.setSheetOrder correcly changes the ordering in the internal
boundsheets list _but does not_ reorder the corresponding BoundSheetRecord
instances in the records list.

If subsequently a sheet is removed, the wrong BoundSheetRecord instance will
get removed from the record list, leading to serialization errors when the
workbook is written because the calculated size of the workbook data is based
on the records list, whist the sheet records are serialized using the
boundsheets list.

This problem is also present in 3.7beta3.  It it probably the root cause of bug
48294.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to