Derby
  1. Derby
  2. DERBY-1740

Change error message to indicate encryptionkey length to be atleast 16 characters instead of 8 characters

    Details

    • Urgency:
      Normal
    • Issue & fix info:
      Repro attached

      Description

      While attempting to create a encrypted database with even key length of 14 characters, it fails with the error message indicating the key length should be atleast 8 characters.


      -- Attempt to encrypt using key of lenght 14

      ij> connect 'jdbc:derby:adb;create=true;dataEncryption=true;encryptionAlgorithm=DES/CBC/NoPadding;encryptionKey=11223344556677';
      ERROR XJ041: Failed to create database 'adb', see the next exception for details.
      ERROR XBM01: Startup failed due to an exception. See next exception for details.

      ERROR XBCX2: Initializing cipher with a boot password that is too short. The password must be at least 8 characters long.

      --Requires 16 characters for the encryptionKey

      ij> connect 'jdbc:derby:adb;create=true;dataEncryption=true;encryptionAlgorithm=DES/CBC/NoPadding;encryptionKey=1122334455667788';
      ij>

      1. derby-1740-1a.diff
        3 kB
        Kristian Waagan

        Activity

        Rajesh Kartha created issue -
        Rajesh Kartha made changes -
        Field Original Value New Value
        Affects Version/s 10.0.2.0 [ 10920 ]
        Fix Version/s 10.2.1.0 [ 11187 ]
        Kristian Waagan made changes -
        Attachment derby-1740-1a.diff [ 12339498 ]
        Andreas Korneliussen made changes -
        Urgency Urgent
        Rick Hillegas made changes -
        Fix Version/s 10.2.2.0 [ 12312027 ]
        Fix Version/s 10.2.1.0 [ 11187 ]
        Rick Hillegas made changes -
        Fix Version/s 10.2.2.0 [ 12312027 ]
        Fix Version/s 10.2.3.0 [ 12312215 ]
        Andrew McIntyre made changes -
        Fix Version/s 10.2.3.0 [ 12312215 ]
        Mike Matrigali made changes -
        Component/s Store [ 11412 ]
        Knut Anders Hatlen made changes -
        Urgency Normal
        Issue & fix info [Repro attached]
        Kathey Marsden made changes -
        Labels derby_triage10_5_2
        Mike Matrigali made changes -
        Labels derby_triage10_5_2 derby_triage10_5_2 derby_triage10_9
        Gavin made changes -
        Workflow jira [ 12382140 ] Default workflow, editable Closed status [ 12799004 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Rajesh Kartha
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development