You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2015/08/24 12:04:45 UTC
[jira] [Resolved] (DIRAPI-245) LdifUtils.convertToLdif(LdifEntry,
int) does not honor the 'length' parameter fully
[ https://issues.apache.org/jira/browse/DIRAPI-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny resolved DIRAPI-245.
--------------------------------------
Resolution: Fixed
> LdifUtils.convertToLdif(LdifEntry, int) does not honor the 'length' parameter fully
> -----------------------------------------------------------------------------------
>
> Key: DIRAPI-245
> URL: https://issues.apache.org/jira/browse/DIRAPI-245
> Project: Directory Client API
> Issue Type: Bug
> Affects Versions: 1.0.0-M31
> Reporter: Adam Steiner
> Priority: Trivial
>
> Calling LdifUtils.convertToLdif(<LdifEntry instance>, Integer.MAX_VALUE)
> returns Ldif data that is wrapped at 80 characters.
> Digging in, I discovered that at line 508 of org.apache.directory.api.ldap.model.ldif.LdifUtils, convertToLdif(Attribute) is being called instead of convertToLdif(Attribute, int).
> When I made a copy of LdifUtils, and changed that line, the generated Ldif data was no longer wrapped at 80 characters.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)