You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Tony Blanchard (JIRA)" <di...@incubator.apache.org> on 2005/06/15 17:55:46 UTC

[jira] Created: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

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
 Assigned to: Alex Karasulu 
    Priority: Minor


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


Re: [jira] Created: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by Alex Karasulu <ao...@bellsouth.net>.
Trustin Lee wrote:

> Why don't you write comments in JIRA instead of replying to 
> notification message?

Good point ... then its there in issue my bad.

Thanks,
Alex

>
>  
> 2005/6/16, Alex Karasulu <aok123@bellsouth.net 
> <ma...@bellsouth.net>>:
>
>     Thanks Tony for filing this.  I'll try to get to it before a 0.9.2
>     release but I cannot guarantee it.  However now it's forever on my
>     radar
>     screen.
>
>     Alex
>
>  
> -- 
> what we call human nature is actually human habit
> --
> http://gleamynode.net/



Re: [jira] Created: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by Trustin Lee <tr...@gmail.com>.
Why don't you write comments in JIRA instead of replying to notification 
message?
 Trustin

 2005/6/16, Alex Karasulu <ao...@bellsouth.net>: 
> 
> Thanks Tony for filing this. I'll try to get to it before a 0.9.2
> release but I cannot guarantee it. However now it's forever on my radar
> screen.
> 
> Alex

 -- 
what we call human nature is actually human habit
--
http://gleamynode.net/

Re: [jira] Created: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by Alex Karasulu <ao...@bellsouth.net>.
Tony Blanchard (JIRA) wrote:

>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
>  
>
Thanks Tony for filing this.  I'll try to get to it before a 0.9.2 
release but I cannot guarantee it.  However now it's forever on my radar 
screen.

Alex

[jira] Updated: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/DIREVE-163?page=all ]

Alex Karasulu updated DIREVE-163:
---------------------------------

    Fix Version: 0.9.3
      Assign To:     (was: Emmanuel Lecharny)

> 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
>     Priority: Minor
>      Fix For: 0.9.3
>  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


[jira] Updated: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/DIREVE-163?page=all ]

Alex Karasulu updated DIREVE-163:
---------------------------------

    Assign To: Emmanuel Lecharny  (was: Alex Karasulu)

Assigning this to Emmanuel who is already working on it.

> 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: Emmanuel Lecharny
>     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


[jira] Commented: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by "Emmanuel Lecharny (JIRA)" <di...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/DIREVE-163?page=comments#action_12320672 ] 

Emmanuel Lecharny commented on DIREVE-163:
------------------------------------------

Attribute values are generally stored as String. This is a major problem for binary attributes, as we loose information (jpegPhoto for instance).

here is an exemple of code where this problem occurs :
org.apache.ldap.common.berlib.asn1.decoder.compare.CompareAVARule {
...


    public void finish()
    {
        // pop the ByteBuffer the super method pushed
        ByteBuffer buf = ( ByteBuffer ) getDigester().pop() ;
        // peek at the CompareRequest underneath whose name we set
        CompareRequest req = ( CompareRequest ) getDigester().peek() ;

        byte[] octets = null ;
        if ( buf.limit() == buf.capacity() && buf.hasArray() )
        {
            // use the backing store
            octets = buf.array() ;
        }
        else
        {
            // copy because we don't have accessible array or data < array
            octets = new byte[buf.remaining()] ;
            buf.get( octets ) ;
        }

        if ( req.getAttributeId() == null )
        {
            req.setAttributeId( new String( octets ) ) ;
        }
        else
        {
            req.setAssertionValue( new String( octets ) ) ;
        }
    }


The "new String(octets)" is destructing when applied to binary values.


> 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
>     Priority: Minor
>      Fix For: 0.9.3
>  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


[jira] Closed: (DIRSERVER-251) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRSERVER-251.
---------------------------------------


Closing all issues created in 2005 and before which are marked resolved

> Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture
> ----------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-251
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-251
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: pre-1.0
>         Environment: Windows XP SP2
> JRE 1.5
> Built with Netbeans 4.0
> Mevenide.
>            Reporter: Tony Blanchard
>         Assigned To: Emmanuel Lecharny
>            Priority: Minor
>             Fix For: 1.0-RC1
>
>         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.
-
You can reply to this email to add a comment to the issue online.


Hollidays

Posted by Emmanuel Lecharny <el...@gmail.com>.
Guys, 

I'm off for 10 days, so if you have any problem with the big commit that
occured yesterday, sorry, I won't be able to help ;)

Stefan, thanks a lot for the tests! I think that you will have
opportunities to do lot more tests in the next few weeks (we have some
great news comming).

The work you are doing is just very important for us. So thank you very
much for your commitment !

I'll be back ;)

-- Emmanuelator.


[jira] Commented: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by "Stefan Zoerner (JIRA)" <di...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/DIREVE-163?page=comments#action_12356691 ] 

Stefan Zoerner commented on DIREVE-163:
---------------------------------------

I have created a new test case in the testsuite to demonstrate that this problem does not occur anymore:
    http://svn.apache.org/viewcvs.cgi?rev=330524&view=rev
It creates (inetOrg)person entries with userPassword and jpegPhoto attributes, one method is exactly the one already attached here. Afterwards it reads the entries and checks whether the data has been modified by the server (as described in the issue here).

If I use the current server.xml from here
    http://svn.apache.org/viewcvs.cgi/directory/apacheds/trunk/main/server.xml
the test is successful (it is not for 0.9.3, therefore the test is ok, I think). I was also able to use Softerra LDAP Administrator and attach my photo to an inetOrgPerson entry via its UI functionality. What a beautiful me, the image is not corrupted if I read it back. That didn't work in previous versions, as well. 

I still face problems if I do not use the server.xml described above, but start the server main without configuration (i.e. the default config from the jar is used). The test case above fails. I have to figure out, what the difference between the configurations is ...

Anyway, Great work, Emmanuel  + Alex! This was my favorite error for ages ...

> 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: Emmanuel Lecharny
>     Priority: Minor
>      Fix For: 0.9.4
>  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


[jira] Resolved: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/DIREVE-163?page=all ]
     
Alex Karasulu resolved DIREVE-163:
----------------------------------

    Resolution: Fixed

I think we can close this but let's get some confirmation.

> 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: Emmanuel Lecharny
>     Priority: Minor
>      Fix For: 0.9.4
>  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


[jira] Commented: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by "Emmanuel Lecharny (JIRA)" <di...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/DIREVE-163?page=comments#action_12318695 ] 

Emmanuel Lecharny commented on DIREVE-163:
------------------------------------------

This pb is due to a new String(xxx) done on the value. 

We have to check the attribute's type to see if it's a binary attribute or a String, so we have to check the attribute agaisnt the Schema (RFC 2252 : 4.3.2. Syntax Object Identifiers)

I expect a patch to be submitted soon.

> 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: Emmanuel Lecharny
>     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


[jira] Updated: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by "Stefan Zoerner (JIRA)" <di...@incubator.apache.org>.
     [ 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


[jira] Commented: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by "Stefan Zoerner (JIRA)" <di...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/DIREVE-163?page=comments#action_12356720 ] 

Stefan Zoerner commented on DIREVE-163:
---------------------------------------

Alex had the following idea in an IRC:

Rather than doing definition of binary attributes  via configuration we can at the startup of the server scan all the schema looking for binary attributes, then we can assemble this information.

This would help people not to forget defining there attributes as binary in two places (schema + configuration).

> 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: Emmanuel Lecharny
>     Priority: Minor
>      Fix For: 0.9.4
>  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


[jira] Updated: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/DIREVE-163?page=all ]

Alex Karasulu updated DIREVE-163:
---------------------------------

    Fix Version: 0.9.4
                     (was: 0.9.3)

move it to next release

> 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: Emmanuel Lecharny
>     Priority: Minor
>      Fix For: 0.9.4
>  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


[jira] Assigned: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/DIREVE-163?page=all ]

Alex Karasulu reassigned DIREVE-163:
------------------------------------

    Assign To: Emmanuel Lecharny

Figured I can assign this to you since you're working on it already.

> 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: Emmanuel Lecharny
>     Priority: Minor
>      Fix For: 0.9.3
>  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


[jira] Commented: (DIREVE-163) Putting a jpeg picture in the inetOrgPerson jpegPhoto attribute alter the bytes datas of the picture

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/DIREVE-163?page=comments#action_12356844 ] 

Alex Karasulu commented on DIREVE-163:
--------------------------------------

I finished up this enhancement on commit 330978.  Now the server uses the schema to set the value for this binary attribute.  It will also merge attributes if users provide this in the server.xml to force the treatment of non-binary attributes as binary.


> 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: Emmanuel Lecharny
>     Priority: Minor
>      Fix For: 0.9.4
>  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