From dev-return-40220-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Fri Feb 3 16:36:17 2012 Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 403BA9330 for ; Fri, 3 Feb 2012 16:36:17 +0000 (UTC) Received: (qmail 88188 invoked by uid 500); 3 Feb 2012 16:36:16 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 87453 invoked by uid 500); 3 Feb 2012 16:36:15 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 87339 invoked by uid 99); 3 Feb 2012 16:36:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 16:36:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 16:36:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CE44C18B1F6 for ; Fri, 3 Feb 2012 16:35:53 +0000 (UTC) Date: Fri, 3 Feb 2012 16:35:53 +0000 (UTC) From: "Pierre-Arnaud Marcelot (Created) (JIRA)" To: dev@directory.apache.org Message-ID: <1284447535.7939.1328286953846.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (DIRSERVER-1692) Unable to add a JPEG image to an entry due to an 'Invalid Attribute Syntax' error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Unable to add a JPEG image to an entry due to an 'Invalid Attribute Syntax' error --------------------------------------------------------------------------------- Key: DIRSERVER-1692 URL: https://issues.apache.org/jira/browse/DIRSERVER-1692 Project: Directory ApacheDS Issue Type: Bug Components: ldap Affects Versions: 2.0.0-M4, 2.0.0-M5 Reporter: Pierre-Arnaud Marcelot Priority: Critical Fix For: 2.0.0-M6 Attachments: test-image.jpg When I try to add an image, the server rejects it. Here's the complete error trace from Studio: Error while executing LDIF - [LDAP: error code 21 - INVALID_ATTRIBUTE_SYNTAX: failed for MessageType : MODIFY_REQUES javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - INVALID_ATTRIBUTE_SYNTAX: failed for MessageType : MODIFY_REQUEST Message ID : 19 Modify Request Object : 'cn=test,dc=openengsb,dc=org' Modification[0] Operation : add Modification jpegPhoto: '0xFF 0xD8 0xFF 0xE1 0x00 0x18 0x45 0x78 0x69 0x66 0x00 0x00 0x49 0x49 0x2A 0x00 ...' org.apache.directory.shared.ldap.model.message.ModifyRequestImpl@6e3926ee: ERR_04447_CANNOT_NORMALIZE_VALUE Cannot normalize the wrapped value ERR_04473_NOT_VALID_VALUE Not a valid value '[B@1ff6c2a9' for the AttributeType 'ATTRIBUTE_TYPE ( 0.9.2342.19200300.100.1.60 NAME 'jpegPhoto' DESC RFC2798: a JPEG image SYNTAX 1.3.6.1.4.1.1466.115.121.1.28 USAGE userApplications ) ']; remaining name 'cn=test,dc=openengsb,dc=org' at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3080) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3013) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2820) at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(LdapCtx.java:1458) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(ComponentDirContext.java:255) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(PartialCompositeDirContext.java:172) at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper$2.run(JNDIConnectionWrapper.java:454) at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.runAndMonitor(JNDIConnectionWrapper.java:1272) at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.checkConnectionAndRunAndMonitor(JNDIConnectionWrapper.java:1203) at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.modifyEntry(JNDIConnectionWrapper.java:502) at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifJob.importLdifRecord(ImportLdifJob.java:507) at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifJob.importLdif(ImportLdifJob.java:267) at org.apache.directory.studio.ldapbrowser.core.jobs.ExecuteLdifRunnable.run(ExecuteLdifRunnable.java:143) at org.apache.directory.studio.ldapbrowser.core.jobs.UpdateEntryRunnable.run(UpdateEntryRunnable.java:58) at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:113) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) [LDAP: error code 21 - INVALID_ATTRIBUTE_SYNTAX: failed for MessageType : MODIFY_REQUEST Message ID : 19 Modify Request Object : 'cn=test,dc=openengsb,dc=org' Modification[0] Operation : add Modification jpegPhoto: '0xFF 0xD8 0xFF 0xE1 0x00 0x18 0x45 0x78 0x69 0x66 0x00 0x00 0x49 0x49 0x2A 0x00 ...' org.apache.directory.shared.ldap.model.message.ModifyRequestImpl@6e3926ee: ERR_04447_CANNOT_NORMALIZE_VALUE Cannot normalize the wrapped value ERR_04473_NOT_VALID_VALUE Not a valid value '[B@1ff6c2a9' for the AttributeType 'ATTRIBUTE_TYPE ( 0.9.2342.19200300.100.1.60 NAME 'jpegPhoto' DESC RFC2798: a JPEG image SYNTAX 1.3.6.1.4.1.1466.115.121.1.28 USAGE userApplications ) '] -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira