[Props] = and , together : LdapScheme

10 views
Skip to first unread message

Epo Jemba

unread,
Jan 30, 2015, 5:06:17 AM1/30/15
to jod...@googlegroups.com
Hi Propsers !

I need to fill a DN in a props file :
account-dn = cn=accountname,ou=users,o=organization

but when I get the property, I only get the value cn=accountname.
I tried to escape the commas but it does not work.
Is there a way to achieve this ?

Thank You

jodder

unread,
Jan 30, 2015, 7:49:05 AM1/30/15
to jod...@googlegroups.com
Hey Epo, welcome back :)

That is strange. When I run a testcase like this, it works:

@Test
public void testAdditionalEquals() {
String data =
"account-dn = cn=accountname,ou=users,o=organization\n";

Props props = new Props();
props.load(data);

assertEquals("cn=accountname,ou=users,o=organization", props.getValue("account-dn"));
}


I mean, only the first 'equals' is the separator and commas shouldn't do anything. Are you working with the latest version? Can you send me the minimal props file that fails for you?
Reply all
Reply to author
Forward
0 new messages