directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seelmann (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DIRSTUDIO-1204) ImageDialog can't read binary data
Date Sun, 18 Nov 2018 19:08:00 GMT

     [ https://issues.apache.org/jira/browse/DIRSTUDIO-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stefan Seelmann updated DIRSTUDIO-1204:
---------------------------------------
    Fix Version/s: 2.0.0-M15

> ImageDialog can't read binary data
> ----------------------------------
>
>                 Key: DIRSTUDIO-1204
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1204
>             Project: Directory Studio
>          Issue Type: Bug
>            Reporter: Bass Joe
>            Priority: Minor
>             Fix For: 2.0.0-M15
>
>         Attachments: pixel.jpg
>
>
> I can correctly set inetOrgPerson's jpegPhoto attribute with Directory Studio in OpenLDAP.
When choosing the attached image pixel.jpg in the ImageDialog the correct value is saved to
OpenLDAP (checked with ldapsearch):
> {noformat}
> /9j/4AAQSkZJRgABAQEBLAEsAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wgARCAABAAEDAREAAhEBAxEB/8QAFAABAAAAAAAAAAAAAAAAAAAABP/EABQBAQAAAAAAAAAAAAAAAAAAAAf/2gAMAwEAAhADEAAAASooj//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQ/wD/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/EH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/EH//xAAUEAEAAAAAAAAAAAAAAAAAAAAA/9oACAEBAAE/EH//2Q==
> {noformat}
> But in Directory Studio the method ImageDialog#getImageInfo returns "Invalid Image" because
the byte[] it works on is based on a ldif record which contains different/corrupted data:
> {noformat}
> 77+977+977+977+9ABBKRklGAAEBAQEsASwAAO+/ve+/vQATQ3JlYXRlZCB3aXRoIEdJTVDvv73vv70AQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCAwKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUVFQwPFxgWFBgSFBUU77+977+9AEMBAwQEBQQFCQUFCRQNCw0UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFO+/ve+/vQARCAABAAEDAREAAhEBAxEB77+977+9ABQAAQAAAAAAAAAAAAAAAAAAAATvv73vv70AFAEBAAAAAAAAAAAAAAAAAAAAB++/ve+/vQAMAwEAAhADEAAAASoo77+977+977+9ABQQAQAAAAAAAAAAAAAAAAAAAADvv73vv70ACAEBAAEFAn/vv73vv70AFBEBAAAAAAAAAAAAAAAAAAAAAO+/ve+/vQAIAQMBAT8Bf++/ve+/vQAUEQEAAAAAAAAAAAAAAAAAAAAA77+977+9AAgBAgEBPwF/77+977+9ABQQAQAAAAAAAAAAAAAAAAAAAADvv73vv70ACAEBAAY/An/vv73vv70AFBABAAAAAAAAAAAAAAAAAAAAAO+/ve+/vQAIAQEAAT8hf++/ve+/vQAMAwEAAgADAAAAEO+/vQDvv73vv70AFBEBAAAAAAAAAAAAAAAAAAAAAO+/ve+/vQAIAQMBAT8Qf++/ve+/vQAUEQEAAAAAAAAAAAAAAAAAAAAA77+977+9AAgBAgEBPxB/77+977+9ABQQAQAAAAAAAAAAAAAAAAAAAADvv73vv70ACAEBAAE/EH/vv73vv70=
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message