Discussion:
[jira] [Created] (DIRSTUDIO-1204) ImageDialog can't read binary data
Bass Joe (JIRA)
2018-11-18 15:22:00 UTC
Permalink
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)
Stefan Seelmann (JIRA)
2018-11-18 19:07:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/DIRSTUDIO-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16691004#comment-16691004 ]

Stefan Seelmann commented on DIRSTUDIO-1204:
--------------------------------------------

I guess that is releated to DIRSTUDIO-1199. It seems when using the LDAP API provider binary attributes are corrupted.
Post by Bass Joe (JIRA)
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
Attachments: pixel.jpg
{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}
{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)
Stefan Seelmann (JIRA)
2018-11-18 19:08:00 UTC
Permalink
[ 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
Post by Bass Joe (JIRA)
ImageDialog can't read binary data
----------------------------------
Key: DIRSTUDIO-1204
URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1204
Project: Directory Studio
Issue Type: Bug
Re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AABAAEDAREAAhEBAxEB77+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)
Stefan Seelmann (JIRA)
2018-11-18 19:08:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/DIRSTUDIO-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seelmann updated DIRSTUDIO-1204:
---------------------------------------
Priority: Major (was: Minor)
Post by Bass Joe (JIRA)
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: Major
Fix For: 2.0.0-M15
Attachments: pixel.jpg
{noformat}
/9j/4AAQSkZJRgABAQEBLAEsAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA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AAAO+/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)
Stefan Seelmann (JIRA)
2018-11-21 22:39:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/DIRSTUDIO-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seelmann reassigned DIRSTUDIO-1204:
------------------------------------------

Assignee: Stefan Seelmann
Post by Bass Joe (JIRA)
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
Assignee: Stefan Seelmann
Priority: Major
Fix For: 2.0.0-M15
Attachments: pixel.jpg
{noformat}
/9j/4AAQSkZJRgABAQEBLAEsAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wgARCAABAAEDAREAAhEBAxEB/8QAFAABAAAAAAAAAAAAAAAAAAAABP/EABQBAQAAAA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QEAAT8hf++/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)

Loading...