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/05/01 18:55:14 UTC
[Bug 56479] New: Hardcoded dcterms namespace prefix name in the
check for OPC compliance
https://issues.apache.org/bugzilla/show_bug.cgi?id=56479
Bug ID: 56479
Summary: Hardcoded dcterms namespace prefix name in the check
for OPC compliance
Product: POI
Version: 3.11-dev
Hardware: PC
Status: NEW
Severity: major
Priority: P2
Component: OPC
Assignee: dev@poi.apache.org
Reporter: sebastien.schneider@ifpen.fr
I've an issue when parsing generated OPC document that use a dcterms prefix
different than 'dcterms'.
For instance 'dc' is used and I get
org.apache.poi.openxml4j.exceptions.InvalidFormatException: The element
'created' must have the 'xsi:type' attribute with the value 'dcterms:W3CDTF'
because of this different prefix name.
In file PackagePropertiesUnmarshaller.checkElementForOPCCompliance() line 372
you should build the xsi:type string to check by taking into account the
namespace prefix name currently used.
--
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 56479] Hardcoded dcterms namespace prefix name in the check for
OPC compliance
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56479
Sebastien Schneider <se...@ifpen.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sebastien.schneider@ifpen.f
| |r
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 56479] Hardcoded dcterms namespace prefix name in the check for
OPC compliance
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56479
--- Comment #3 from Sebastien Schneider <se...@ifpen.fr> ---
I attached an empty sample opc archive file to reproduce this issue and to help
to code a unit test.
I've no time for now to install a dev env for POI ooxml to test a patch but I
think that the fix is quite simple to implement (3 to 4 line of code I guess).
Thank you for your help.
--
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 56479] Hardcoded dcterms namespace prefix name in the check for
OPC compliance
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56479
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Any chance of a sample file which shows the problem, and ideally too a patch
and a unit test? :)
--
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 56479] Hardcoded dcterms namespace prefix name in the check for
OPC compliance
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56479
--- Comment #2 from Sebastien Schneider <se...@ifpen.fr> ---
Created attachment 31582
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31582&action=edit
opc archive to reproduce this bug
opc archive to reproduce this bug which is located in core.xml file.
--
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 56479] Hardcoded dcterms namespace prefix name in the check for
OPC compliance
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56479
Sebastien Schneider <se...@ifpen.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--
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