Когда я пытался загрузить файл ldif с использованием Spring LDAP и UnboundID SDK с несколькими настраиваемыми полями, я получаю сообщение об ошибке ниже.
Возможно ли подавить проверку схемы ?? Или как добавить пользовательскую схему для этих объектов?
Caused by: org.springframework.ldap.UncategorizedLdapException: Failed to populate LDIF; nested exception is org.springframework.ldap.ldif.InvalidAttributeFormatException: Not a valid attribute: [address1_EB: A block]
at org.springframework.ldap.test.unboundid.LdapTestUtils.loadLdif(LdapTestUtils.java:214)
at org.springframework.ldap.test.unboundid.LdapTestUtils.loadLdif(LdapTestUtils.java:188)
at org.springframework.ldap.test.unboundid.LdapTestUtils.loadLdif(LdapTestUtils.java:170)
at org.springframework.ldap.test.unboundid.TestContextSourceFactoryBean.createInstance(TestContextSourceFactoryBean.java:135)
at org.springframework.ldap.test.unboundid.TestContextSourceFactoryBean.createInstance(TestContextSourceFactoryBean.java:32)
at org.springframework.beans.factory.config.AbstractFactoryBean.afterPropertiesSet(AbstractFactoryBean.java:142)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1792)
... 39 more
Caused by: org.springframework.ldap.ldif.InvalidAttributeFormatException: Not a valid attribute: [address1_EB: A block]
at org.springframework.ldap.ldif.support.DefaultAttributeValidationPolicy.parse(DefaultAttributeValidationPolicy.java:318)
at org.springframework.ldap.ldif.parser.LdifParser.addAttributeToRecord(LdifParser.java:330)
at org.springframework.ldap.ldif.parser.LdifParser.getRecord(LdifParser.java:274)
at org.springframework.ldap.test.unboundid.LdapTestUtils.loadLdif(LdapTestUtils.java:200)
... 46 more