Bug#605941: libxmlgraphics-commons-java: ignores rdf:resource in XMP
brian m. carlson
sandals at crustytoothpaste.net
Sat Dec 4 21:10:12 UTC 2010
Package: libxmlgraphics-commons-java
Version: 1.4.dfsg-1
Severity: normal
Tags: patch
When converting RDF into XMP, libxmlgraphics-commons-java ignores
rdf:resource attributes and instead leaves the properties completely
empty. This is problematic because certain common uses of RDF and XMP
(e.g. cc:license attributes) are best used with rdf:resource. Attached
is a patch which parses and emits rdf:resource attributes normally.
This patch is the same as the patch for 605940. The only part of the
patch which fixes 605490 is that for line 188 et seq of XMPHandler.java;
the rest are for this bug.
An example of metadata that would normally be handled poorly:
<rdf:RDF>
<rdf:Description rdf:about="">
<cc:license>
<rdf:Alt>
<rdf:li
rdf:resource="http://creativecommons.org/licenses/GPL/2.0/"/>
<rdf:li
rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/"/>
</rdf:Alt>
</cc:license>
</rdf:Description>
</rdf:RDF>
Without the patch, this would end up as:
<rdf:RDF>
<rdf:Description rdf:about="">
<cc:license>
<rdf:Alt/>
</cc:license>
</rdf:Description>
</rdf:RDF>
which is not particularly useful.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libxmlgraphics-commons-java depends on:
ii default-jre-headless [java2- 1:1.6-40 Standard Java or Java compatible R
ii gcj-4.4-jre-headless [java2- 4.4.5-9 Java runtime environment using GIJ
ii gcj-jre-headless [java2-runt 4:4.4.5-1 Java runtime environment using GIJ
ii openjdk-6-jre-headless [java 6b20~pre1-2 OpenJDK Java runtime, using Hotspo
libxmlgraphics-commons-java recommends no packages.
libxmlgraphics-commons-java suggests no packages.
-- no debconf information
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmlgraphics-commons.patch
Type: text/x-diff
Size: 6226 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20101204/e12d66ef/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20101204/e12d66ef/attachment-0001.pgp>
More information about the pkg-java-maintainers
mailing list