[Bug 64874] New: Corrupted xlsx file is generated after removing xalan.jar in poi 4.1.2

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 64874] New: Corrupted xlsx file is generated after removing xalan.jar in poi 4.1.2

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64874

            Bug ID: 64874
           Summary: Corrupted xlsx file is generated after removing
                    xalan.jar in poi 4.1.2
           Product: POI
           Version: 4.1.2-FINAL
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: XSSF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

We are using poi for generating Excel file reports in UNIX platform.We are
facing an issue while removing xalan.jar  .We couldn’t find any dependency
mentioned while checking the apache poi runtime dependency page.We are using
apache poi 4.1.2.

Do Apache POI have any dependency with xalan jar?
After removing the xalan .jar ,even if our xlsx is generated with same size
,but while opening we are getting the following error.

"Excel cannot open the file 'XRFWIN_410613396.xlsx' because the file format or
file extension is not valid. Verify that the file has not been corrupted and
that the file extension matches the format of the file."

We have extracted and compared the Excel file generated with and without xalan.

For the error scenario the xml generated is (without xalan)

<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
<Relationships
xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship
="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"/>
<Relationship
="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"/>
<Relationship
="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"/></Relationships>


Whereas in the success case it is generated as follows,(with xalan)

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships
xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Id="rId1" Target="xl/workbook.xml"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"/>
<Relationship Id="rId2" Target="docProps/core.xml"
Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"/>
<Relationship Id="rId3" Target="docProps/app.xml"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"/></Relationships>


The error scenario does not include “id”, “target” and “Type”.

Could you please help us on this.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64874] Corrupted xlsx file is generated after removing xalan.jar in poi 4.1.2

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64874

Nick Burch <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Nick Burch <[hidden email]> ---
It seems like you have a broken xml parser on your system, which is being used
when xalan is removed. Generally we rely on the JVM to give us a working xml
parser when we ask it for one

Can you check what xml parser library your system is falling back to?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]