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 2019/05/21 09:20:00 UTC

[jira] [Updated] (DIRSERVER-1232) @ApplyLdifs does not add multiple attributes

     [ https://issues.apache.org/jira/browse/DIRSERVER-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRSERVER-1232:
-----------------------------------------
    Description: 
Steps to reproduce:
 * write a test-case that uses @ApplyLdifs
 * use this as input:
{noformat}
	@ApplyLdifs(//
	{
	// A person with a lang-x-ide atributed cn
	"dn: cn=Wang XiaoDong, ou=system\n" + 
			"objectclass: Top\n" +
			"objectclass: person\n" +
			"objectclass: organizationalPerson\n" +
			"objectclass: inetOrgPerson\n" +
			"cn: Wang XiaoDong\n" +
			"cn: XiaoDong, Wang, Florida Department of Health:123456789\n" +
			"cn;lang-cn: XiaoDong, Wang in an other language\n" +
			"cn;lang-x-ihe: Wang^XiaoDong^^^^^^A~ ^  ^^^^^^\n" +
			"sn: Wang\n" +
			"givenname: XiaoDong\n" +
			"givenname;lang-cn: XiaoDong non transcribed\n" +
			"sn;lang-cn: Wang in an other language\n" +
			"ou: People\n" +
			"uid: XiaoDong\n" +
			"title: Sample HL7 person\n" +
			"mail: Wang.XiaoDong@foo.bar.com\n" + 
			"telephonenumber: 555-555-5678\n"
	})
{noformat}
Expected result:

 * 4 cn-attribute are added to the given dn
 Actual result:
 * only cn;lang-cn: XiaoDong, Wang in an other language is visible from Apache Directory Studio (as only cn, not cn;lang-cn)

  was:
Steps to reproduce:
 * write a test-case that uses @ApplyLdifs
 * use this as input:
{{{
	@ApplyLdifs(//
	{
	// A person with a lang-x-ide atributed cn
	"dn: cn=Wang XiaoDong, ou=system\n" + // 
			"objectclass: Top\n" + //
			"objectclass: person\n" + //
			"objectclass: organizationalPerson\n" + // 
			"objectclass: inetOrgPerson\n" + // 
			"cn: Wang XiaoDong\n" + // 
			"cn: XiaoDong, Wang, Florida Department of Health:123456789\n" + // 
			"cn;lang-cn: XiaoDong, Wang in an other language\n" + // 
			"cn;lang-x-ihe: Wang^XiaoDong^^^^^^A~ ^  ^^^^^^\n" + // 
			"sn: Wang\n" + // 
			"givenname: XiaoDong\n" + // 
			"givenname;lang-cn: XiaoDong non transcribed\n" + // 
			"sn;lang-cn: Wang in an other language\n" + // 
			"ou: People\n" + // 
			"uid: XiaoDong\n" + //
			"title: Sample HL7 person\n" + // 
			"mail: Wang.XiaoDong@foo.bar.com\n" + // 
			"telephonenumber: 555-555-5678\n" //
	})
}}}
Expected result:
 * 4 cn-attribute are added to the given dn
Actual result:
 * only cn;lang-cn: XiaoDong, Wang in an other language is visible from Apache Directory Studio (as only cn, not cn;lang-cn)



> @ApplyLdifs does not add multiple attributes
> --------------------------------------------
>
>                 Key: DIRSERVER-1232
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1232
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core-integ
>    Affects Versions: 1.5.3
>         Environment: JUnit 4.4 in Eclipse 3.4 using ApacheDS 1.5.3
>            Reporter: gerke forcare
>            Priority: Major
>             Fix For: 2.1.0
>
>
> Steps to reproduce:
>  * write a test-case that uses @ApplyLdifs
>  * use this as input:
> {noformat}
> 	@ApplyLdifs(//
> 	{
> 	// A person with a lang-x-ide atributed cn
> 	"dn: cn=Wang XiaoDong, ou=system\n" + 
> 			"objectclass: Top\n" +
> 			"objectclass: person\n" +
> 			"objectclass: organizationalPerson\n" +
> 			"objectclass: inetOrgPerson\n" +
> 			"cn: Wang XiaoDong\n" +
> 			"cn: XiaoDong, Wang, Florida Department of Health:123456789\n" +
> 			"cn;lang-cn: XiaoDong, Wang in an other language\n" +
> 			"cn;lang-x-ihe: Wang^XiaoDong^^^^^^A~ ^  ^^^^^^\n" +
> 			"sn: Wang\n" +
> 			"givenname: XiaoDong\n" +
> 			"givenname;lang-cn: XiaoDong non transcribed\n" +
> 			"sn;lang-cn: Wang in an other language\n" +
> 			"ou: People\n" +
> 			"uid: XiaoDong\n" +
> 			"title: Sample HL7 person\n" +
> 			"mail: Wang.XiaoDong@foo.bar.com\n" + 
> 			"telephonenumber: 555-555-5678\n"
> 	})
> {noformat}
> Expected result:
>  * 4 cn-attribute are added to the given dn
>  Actual result:
>  * only cn;lang-cn: XiaoDong, Wang in an other language is visible from Apache Directory Studio (as only cn, not cn;lang-cn)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)