JPEG EXIF headers causing problems

Árni Arent <[email protected]>
Newsgroups gmane.comp.jakarta.slide.user
Message-ID <[email protected]>
Hi,

I'm using the webdav-client-lib from Slide in my own custom project.

I'm trying to get a directory listing of a folder containing jpeg 
images. In some of these jpeg there are exif headers that might contain 
some weird characters. When the slide-webdav client retrieves the xml 
file containing the directory listing it also contains these exif 
headers, and when it tries to parse the xml file I get this error:

I'm  using version 2.0. (I've tried with version 2.1, but it's still not 
working there... although I don't get the following error message in 2.1).

[Fatal Error] :76:79: An invalid XML character (Unicode: 0x0) was found 
in the CDATA section.
2006-12-22 11:14:17,323 ERROR is.siminn.tv.album.ImageAction - Failed to 
prepare mosaic
java.lang.NullPointerException
    at 
org.apache.webdav.lib.methods.XMLResponseMethodBase.initResponseHashtable(XMLResponseMethodBase.java:333)
    at 
org.apache.webdav.lib.methods.XMLResponseMethodBase.getResponseHashtable(XMLResponseMethodBase.java:306)
    at 
org.apache.webdav.lib.methods.XMLResponseMethodBase.getResponses(XMLResponseMethodBase.java:141)
    at 
org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3191)
    at 
org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3145)
    at 
org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:879)
    at 
org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.java:824)
    at 
org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1746)
    at 
org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1769)
    at 
org.apache.webdav.lib.WebdavResource.getChildResources(WebdavResource.java:1921)
    at 
org.apache.webdav.lib.WebdavResource.listWebdavResources(WebdavResource.java:1938)
    ...

Appearently this 0x00 Unicode character is causing the xml parsing to fail.

1. Are there any fixes to this?
2. Also, I don't know why the jpeg exif headers are being transmitted, 
is there any way to disable it in the client-lib?

The buggy jpeg image is located here: http://private.is/arni/test1.jpg



-- 
Kveðjur

Árni Arent
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.