[ 
https://issues.apache.org/jira/browse/DIRSTUDIO-1346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18085603#comment-18085603
 ] 

Emmanuel Lécharny edited comment on DIRSTUDIO-1346 at 6/2/26 8:13 PM:
----------------------------------------------------------------------

This is a bit more complicated than I initially thought...

If we use a '\*' or '+' attributes, we simply can't determinate before having 
read all the entries which *attributeTypes* will be present or absent, so it's 
hard to create a tabular representation of the data when you may have an 
*attributeType* present only in the last entry.

The only way to do it is either by reading all the entries and store them in 
memory or in a temporary file, and keep a track of all the present attributes, 
then create the CSV file. Or we can read the data twice, the first pass will 
get the *attributeTypes* but no value, the second pass will create the CSV file.


was (Author: elecharny):
This is a bit more complicated than I initially thought...

If we use a '*' or '+' attributes, we simply can't determinate before having 
read all the entries which *attributeTypes* will be present or absent, so it's 
hard to create a tabular representation of the data when you may have an 
*attributeType* present only in the last entry.

The only way to do it is either by reading all the entries and store them in 
memory or in a temporary file, and keep a track of all the present attributes, 
then create the CSV file. Or we can read the data twice, the first pass will 
get the *attributeTypes* but no value, the second pass will create the CSV file.

> Exporting a CSV does not work when using * or + attributes
> ----------------------------------------------------------
>
>                 Key: DIRSTUDIO-1346
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1346
>             Project: Directory Studio
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M17
>            Reporter: Emmanuel Lécharny
>            Priority: Major
>             Fix For: 2.0.0-M18
>
>
> When trying to export some data in a CSV format and using teh special 
> attributes '*' or '+', we don't get any attribute. It works well for XLS 
> export



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to