directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Zoerner (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Updated: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture
Date Fri, 05 Aug 2005 06:23:36 GMT
     [ http://issues.apache.org/jira/browse/DIREVE-163?page=all ]

Stefan Zoerner updated DIREVE-163:
----------------------------------

    Attachment: BinaryTest.java

I faced the same problem in 0.9.1 with different clients on different hard- and software platforms.

Therfore I created a testcase (attached). It opens a JNDI connection, adds a person entry
with 64k random binary data for attribute jpegPhoto, reads it out again and compares the binary
data byte by byte.

It fails with 

junit.framework.AssertionFailedError: Byte number 47 expected:<-112> but was:<63>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:282)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:162)
	at simple.BinaryTest.testToriWithFunData(BinaryTest.java(Compiled Code))

Testcase is attached and works for other directory solutions, e.g. Sun Java System Directory
Server 5.2

> Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas
of the picture
> ----------------------------------------------------------------------------------------------------
>
>          Key: DIREVE-163
>          URL: http://issues.apache.org/jira/browse/DIREVE-163
>      Project: Directory Server
>         Type: Bug
>     Versions: 0.9
>  Environment: Windows XP SP2
> JRE 1.5
> Built with Netbeans 4.0
> Mevenide.
>     Reporter: Tony Blanchard
>     Assignee: Alex Karasulu
>     Priority: Minor
>  Attachments: BinaryTest.java
>
> All the picture byte values like those (-113 , -115, -112, -127 and -99) are changed
to the "63" value when reading jpeg datas. "-39" value is changed to "0".
> This is on my jpeg sample picture but I think there is enought datas to be representative.
> I have tried to put a picture with JXplorer and my own client program. The same thing
happens...
> Seems to be a server problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message