Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-56978

vLDAP throws LdapInvalidDnException when listing sites

    Details

      Description

      Follow the steps in LPS-53120, then LdapInvalidDnException throws:

      06:27:25,101 ERROR [NioProcessor-2][Directory:161] Invalid name <?xml version='1.0' encoding\='UTF-8'?\>\<root available-locales\=\"en_US\" default-locale\=\"en_US\"\>\<Name language-id\=\"en_US\"\>Guest\</Name\>\</root\>,ou=Communities,ou=liferay.com,o=Liferay
      06:27:25,105 ERROR [NioProcessor-2][SearchLdapHandler:80] org.apache.directory.shared.ldap.model.exception.LdapInvalidDnException: ERR_04195 Unexpected character '<' at position 0. Excpected start of attributeType.
      org.apache.directory.shared.ldap.model.exception.LdapInvalidDnException: ERR_04195 Unexpected character '<' at position 0. Excpected start of attributeType.
      	at org.apache.directory.shared.ldap.model.name.FastDnParser.matchAttributeType(FastDnParser.java:285)
      	at org.apache.directory.shared.ldap.model.name.FastDnParser.parseRdnInternal(FastDnParser.java:148)
      	at org.apache.directory.shared.ldap.model.name.FastDnParser.parseDn(FastDnParser.java:90)
      	at org.apache.directory.shared.ldap.model.name.Dn.parseInternal(Dn.java:1336)
      	at org.apache.directory.shared.ldap.model.name.Dn.<init>(Dn.java:281)
      	at org.apache.directory.shared.ldap.model.name.Dn.<init>(Dn.java:207)
      	at com.liferay.vldap.server.directory.ldap.Directory.getDn(Directory.java:158)
      	at com.liferay.vldap.server.directory.ldap.Directory.toEntry(Directory.java:74)
      	at com.liferay.vldap.server.handler.SearchLdapHandler.addObjectEntry(SearchLdapHandler.java:155)
      	at com.liferay.vldap.server.handler.SearchLdapHandler.addObjectEntries(SearchLdapHandler.java:139)
      	at com.liferay.vldap.server.handler.SearchLdapHandler.messageReceived(SearchLdapHandler.java:67)
      	at com.liferay.vldap.server.DispatchIoHandler.messageReceived(DispatchIoHandler.java:74)
      	at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716)
      	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
      	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
      	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
      	at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:427)
      	at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:245)
      	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
      	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
      	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
      	at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)
      	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
      	at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)
      	at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:715)
      	at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668)
      	at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657)
      	at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:68)
      	at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1141)
      	at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:724)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shitian.zhang Shitian "Shelton" Zhang (Inactive)
                Reporter:
                shitian.zhang Shitian "Shelton" Zhang (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 13 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 M7