Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-3471

ldifsearch command fails to consume @objectclass notation in attribute list

    XMLWordPrintable

    Details

      Description

      Found with OpenDJ 4.0.0 rev (09f4651f340)

      We set up a server with some data.
      We compare ldapsearch and ldifsearch with the use of special attributes:

      ./opendj/bin/ldapsearch -h localhost -p 1401 -D "cn=myself" -w password  -b "ou=ldapsearch,o=clu tests,dc=example,dc=com"  "uid=user.1*" @person 	
      
      15:06:58.356 	INFO 	SUCCESS:
      -- rc --
      returned 0, expected 0 	
      
      ./opendj/bin/ldifsearch -b "ou=ldapsearch,o=clu tests,dc=example,dc=com" -o /tmp/ocname1_ldifsearch.out  /tmp/data/clu_start.ldif uid=user.1* @person 	
      15:06:58.973 	WARN 	ERROR:
      -- rc --
      returned 1, expected 0
      -- stdout --
      
      -- stderr --
      Exception in thread "main" org.forgerock.i18n.LocalizedIllegalArgumentException: The attribute description "@person" could not be parsed because it contains an invalid character "@" at position 0
      	at org.forgerock.opendj.ldap.AttributeDescription.illegalCharacter(AttributeDescription.java:1060)
      	at org.forgerock.opendj.ldap.AttributeDescription.valueOf0(AttributeDescription.java:897)
      	at org.forgerock.opendj.ldap.AttributeDescription.valueOf(AttributeDescription.java:809)
      	at org.forgerock.opendj.ldif.LDIF$6.filterEntry(LDIF.java:775)
      	at org.forgerock.opendj.ldif.LDIF$6.hasNext(LDIF.java:712)
      	at org.forgerock.opendj.ldif.LDIF.copyTo(LDIF.java:138)
      	at com.forgerock.opendj.ldap.tools.LDIFSearch.run(LDIFSearch.java:193)
      	at com.forgerock.opendj.ldap.tools.Utils.runTool(Utils.java:466)
      	at com.forgerock.opendj.ldap.tools.Utils.runToolAndExit(Utils.java:460)
      	at com.forgerock.opendj.ldap.tools.LDIFSearch.main(LDIFSearch.java:69)
      

      script attached to reproduce

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gaetan Gaetan Boismal [X] (Inactive)
              Reporter:
              cforel carole forel
              QA Assignee:
              Ondrej Fuchsik Ondrej Fuchsik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: