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

          Priority: P2
            Bug ID: 53561
          Assignee: [email protected]
           Summary: Unexpected adding of drawings into a workbook
          Severity: critical
    Classification: Unclassified
          Reporter: [email protected]
          Hardware: PC
            Status: NEW
           Version: 3.8
         Component: HSSF
           Product: POI

Created attachment 29073
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29073&action=edit
Unit test, input and output workbooks

When I try to add an auto filter to a workbook with POI the workbook contains
the new drawings.

To reproduce this bug see an attachment.

Note that the attached workbook contains some list data validations. Without
them the bug would not be reproduced.

Also I started investigating of this issue after I had got the following
exception (i can't have reproduced this exception with unit testing yet but it
is the real issue):
java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
    at java.util.ArrayList.RangeCheck(ArrayList.java:547)
    at java.util.ArrayList.get(ArrayList.java:322)
    at
org.apache.poi.hssf.model.DrawingManager2.getDrawingGroup(DrawingManager2.java:125)
    at
org.apache.poi.hssf.model.DrawingManager2.allocateShapeId(DrawingManager2.java:71)
    at
org.apache.poi.hssf.record.EscherAggregate.convertPatriarch(EscherAggregate.java:988)
    at
org.apache.poi.hssf.record.EscherAggregate.convertUserModelToRecords(EscherAggregate.java:821)
    at
org.apache.poi.hssf.record.EscherAggregate.getRecordSize(EscherAggregate.java:508)
    at
org.apache.poi.hssf.model.InternalSheet.preSerialize(InternalSheet.java:1567)
    at
org.apache.poi.hssf.usermodel.HSSFWorkbook.getBytes(HSSFWorkbook.java:1285)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.write(HSSFWorkbook.java:1205)

-- 
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