Issue Details (XML | Word | Printable)

Key: DIRSERVER-251
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Emmanuel Lecharny
Reporter: Tony Blanchard
Votes: 2
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Created: 16/Jun/05 12:47 AM   Updated: 21/Apr/07 11:09 AM
Return to search
Component/s: None
Affects Version/s: pre-1.0
Fix Version/s: 1.0-RC1

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Licensed for inclusion in ASF works BinaryTest.java 2005-08-05 03:18 PM Stefan Zoerner 3 kB
Environment:
Windows XP SP2
JRE 1.5
Built with Netbeans 4.0
Mevenide.

Resolution Date: 03/Nov/05 12:09 PM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #330524 Thu Nov 03 10:30:52 UTC 2005 szoerner Add test case for adding entries with binary data.
This is to demonstrate that DIREVE-163 does not occur any more.
Files Changed
MODIFY /directory/testsuite/trunk/ldaptests/src/main/java/org/apache/ldap/testsuite/ldaptests/jndi/util/AttributesFactory.java
MODIFY /directory/testsuite/trunk/ldaptests/src/main/java/org/apache/ldap/testsuite/ldaptests/jndi/ops/add/AllTests.java
ADD /directory/testsuite/trunk/ldaptests/src/main/java/org/apache/ldap/testsuite/ldaptests/jndi/ops/add/BinaryDataAddTest.java

Repository Revision Date User Message
ASF #330978 Sat Nov 05 07:20:26 UTC 2005 akarasulu changes ...

 o touched up DIREVE-163
 o server now sets the JNDI parameter java.naming.ldap.attributes.binary by
   using the schema of the server - the human readable property of the
   attributeTypes in the system are used to determine if the attribute is
   binary
 o the server takes the union of the schema information along with the values
   provided in this parameter
 o the server replaces or adds this property key as a Set object
 o the ldap-common MessageDecoder code can detect if a Set is used and
   will use that to feed the providers a set
Files Changed
MODIFY /directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/schema/bootstrap/SystemSyntaxProducer.java
MODIFY /directory/apacheds/trunk/server-unit
MODIFY /directory/shared/ldap/trunk/apache2-provider/src/main/java/org/apache/asn1new/ldap/TwixProvider.java
MODIFY /directory/shared/ldap/trunk/apache-provider/src/main/java/org/apache/ldap/common/berlib/asn1/SnickersDecoder.java
MODIFY /directory/apacheds/trunk/server-main/server.xml
MODIFY /directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/MessageDecoder.java
MODIFY /directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/schema/SchemaService.java
MODIFY /directory/shared/ldap/trunk/apache-provider/src/main/java/org/apache/ldap/common/berlib/asn1/SnickersProvider.java
MODIFY /directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/schema/SchemaUtils.java
MODIFY /directory/shared/ldap/trunk/apache2-provider/src/main/java/org/apache/asn1new/ldap/TwixDecoder.java
MODIFY /directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/DefaultDirectoryService.java
MODIFY /directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/spi/Provider.java