You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Seelmann (JIRA)" <ji...@apache.org> on 2013/11/24 21:26:35 UTC

[jira] [Commented] (DIRSTUDIO-959) Exporting schemas as OpenLDAP files does not use proper escaping

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

Stefan Seelmann commented on DIRSTUDIO-959:
-------------------------------------------

OpenLDAP schema is written in org.apache.directory.studio.schemaeditor.model.io.OpenLdapSchemaFileExporter, the required escaping is missing. There are two other classes in API project (org.apache.directory.api.ldap.model.schema.DescriptionUtils and org.apache.directory.api.ldap.model.schema.SchemaUtils) that create string representations of schema objects. We should try refactor the code so that we only have one correct schema renderer.

> Exporting schemas as OpenLDAP files does not use proper escaping
> ----------------------------------------------------------------
>
>                 Key: DIRSTUDIO-959
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-959
>             Project: Directory Studio
>          Issue Type: Bug
>          Components: studio-schemaeditor
>    Affects Versions: 2.0.0-M8 (2.0.0.v20130628)
>            Reporter: Piotr Kubowicz
>            Priority: Minor
>
> To reproduce:
> 1. Create an ApacheDS schema file containing an attribute type with the following attribute:
> m-description: Object's attribute
> 2. Import the schema, export it as OpenLDAP schema
> The exported file will include
> DESC 'Object's attribute'
> so it will have invalid syntax.
> I have not checked other characters that will need to be escaped when exported to OpenLDAP schema.



--
This message was sent by Atlassian JIRA
(v6.1#6144)