You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2016/06/08 12:36:24 UTC

[Bug 59674] New: Workbook.write() corrupts non edited BIFF8 file

https://bz.apache.org/bugzilla/show_bug.cgi?id=59674

            Bug ID: 59674
           Summary: Workbook.write() corrupts non edited BIFF8 file
           Product: POI
           Version: 3.13-FINAL
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: HSSF
          Assignee: dev@poi.apache.org
          Reporter: frau42.gabriele@gmail.com

Using JDK 1.8.0_92

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;

public class Main {

    public static void main(String[] args) throws IOException,
InvalidFormatException {
        try (FileInputStream is = new FileInputStream(args[0]);
                Workbook wb = WorkbookFactory.create(is);
                FileOutputStream os = new
FileOutputStream(File.createTempFile("test", "excel"))) {
            wb.write(os);
        }
    }
}

Not working XLS https://drive.google.com/open?id=0B3S4vhAbS0W2NHYwZUtwMXI4bkk
Working XLSX https://drive.google.com/open?id=0B3S4vhAbS0W2c19jZGptMjRFaXc

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 59674] Workbook.write() corrupts non edited BIFF8 file

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59674

--- Comment #1 from Gabriele <fr...@gmail.com> ---
Can someone have a look at it?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 59674] Workbook.write() corrupts non edited BIFF8 file

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59674

Andreas Beeker <ki...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|NEW                         |RESOLVED

--- Comment #2 from Andreas Beeker <ki...@apache.org> ---
I had a look at it, i.e. used your code and the non working XLS, and it works
for me with the current trunk using Libre Office (Ubuntu) and Excel 2016
(Windows).

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 59674] Workbook.write() corrupts non edited BIFF8 file

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59674

Gabriele <fr...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|3.13-FINAL                  |3.14-FINAL
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org