Bass Joe (JIRA)
2018-11-18 15:22:00 UTC
Bass Joe created DIRSTUDIO-1204:
-----------------------------------
Summary: 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
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)
-----------------------------------
Summary: 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
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)