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

KeyTooLongException when creating entries whose dn is longer that 2Kb

    XMLWordPrintable

    Details

    • Support Ticket IDs:
    • Story Points:
      0

      Description

      Found using revision 11933.

      Scenario

      1. setup an instance with no backend by default
      2. create a Persistit backend
      3. add an entry with a dn longer that 2Kb
        $ ./opendj/bin/ldapmodify -a -h localhost -p 1389 -D "cn=myself" -w password
        dn: uid=9jg4AAQSkZJRgABAQAAAQABAAD2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNyc5PTgyPC4zNDLwAALCAJnB7oBAREA8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL8QAtRAAAgEDAwIEAwUFBAQAAAFIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4Tl5ufo6erx8vP09fb3Pn69oACAEBAAAAPniiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiloopKWkpaKKSloxRilxRgUu0elAUelLtHpShR6UFF7CgIPSl2rdoCDPSnCNc9BSUvpTkiUsAEBzVpbaHZkxj0JqIxorEBFI3av6bpsVzITNGBEoJZiMBR61VubeGKQBAhBH3euPxqqFUP8AdXH6K07aGG5ZT9njP8ACflABHr9asXOmW8chxbrswMN07fp3q5YaHaXgx9lXJ5B3YGP896W607Ror5YUtV8kJtaXzDgNt9wB9Vmy2lgC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RRRRRRRRRRRRRRRRRRRRRRRRS0lFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFLSUUUUUUUUUUUUUtJRS0lLRS,dc=com
        objectclass: person
        cn: toto
        sn: titi
        
        Processing ADD request for dc=com
        ADD operation successful for DN dc=com
        Processing ADD request for uid=9jg4AAQSkZJRgABAQAAAQABAAD2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNyc5PTgyPC4zNDLwAALCAJnB7oBAREA8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL8QAtRAAAgEDAwIEAwUFBAQAAAFIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4Tl5ufo6erx8vP09fb3Pn69oACAEBAAAAPniiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiloopKWkpaKKSloxRilxRgUu0elAUelLtHpShR6UFF7CgIPSl2rdoCDPSnCNc9BSUvpTkiUsAEBzVpbaHZkxj0JqIxorEBFI3av6bpsVzITNGBEoJZiMBR61VubeGKQBAhBH3euPxqqFUP8AdXH6K07aGG5ZT9njP8ACflABHr9asXOmW8chxbrswMN07fp3q5YaHaXgx9lXJ5B3YGP896W607Ror5YUtV8kJtaXzDgNt9wB9Vmy2lgCVjVHCA5bnLf8A1qS2toGcKbaNl6s2326VFPBbJOVjhTA7kUqQRhSnlRBWOcl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FFFFFFFFFFFFFFFFFFFLSUUUUUUUUUUUUUtJRS0lLRS,dc=com
        ADD operation failed
        Result Code:  80 (Other)
        Additional Information:  com.persistit.exception.KeyTooLongException: Maximum size=2047 original size=0
        

      Script in attachment to reproduce the problem.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              csovant Christophe Sovant
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: