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 2014/07/16 16:48:23 UTC
[Bug 56730] New: [Patch] NPE occurs when exporting a xslx as an XML
if attached schema contains ref elements
https://issues.apache.org/bugzilla/show_bug.cgi?id=56730
Bug ID: 56730
Summary: [Patch] NPE occurs when exporting a xslx as an XML if
attached schema contains ref elements
Product: POI
Version: 3.11-dev
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: dev@poi.apache.org
Reporter: hae@zuehlke.com
A NPE occurs when exporting a xslx as an XML document if the attached schema
contains ref elements.
Here is an example of a xml schema which POI can't handle beacause of the
xs:element ref attribute
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="Entry" type="Type_Entry"/>
<xs:complexType name="Type_Entry">
<xs:sequence>
<xs:element ref="REFELEMENT" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="REFELEMENT" type="xs:double"/>
</xs:schema>
I'm going to provide a patch for this issue.
--
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 56730] [Patch] NPE occurs when exporting a xslx as an XML if
attached schema contains ref elements
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56730
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |PatchAvailable
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
[Bug 56730] [Patch] NPE occurs when exporting a xslx as an XML if
attached schema contains ref elements
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56730
Marc <ha...@zuehlke.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #31819|0 |1
is obsolete| |
--- Comment #2 from Marc <ha...@zuehlke.com> ---
Created attachment 31820
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31820&action=edit
This is the right attachment
--
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 56730] [Patch] NPE occurs when exporting a xslx as an XML if
attached schema contains ref elements
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56730
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Dominik Stadler <do...@gmx.at> ---
Thanks for the patch, this is fixed for 3.11 via r1621209.
--
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 56730] [Patch] NPE occurs when exporting a xslx as an XML if
attached schema contains ref elements
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56730
--- Comment #1 from Marc <ha...@zuehlke.com> ---
Created attachment 31819
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31819&action=edit
Fixes NPE when exporting xml schema containing elements with ref attributes
--
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