[jira] Updated: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto att
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > [jira] Updated: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto att




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Updated: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto att  
Stefan Zoerner (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-05-05 07:45 AM

[ http://issues.apache.org/jira/brows...VE-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) a
re 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/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:08 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register