Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-449

There is no validation for identifier in "new identifier" command

    XMLWordPrintable

Details

    • Bug
    • Status: Complete
    • Low
    • Resolution: Won't Do
    • None
    • None
    • None

    Description

      Steps to Reproduce:

      1. Open the CLI.
      2. Type command "new ideinfier abcde" (or "new ideinfier 000000").
        => no errors, identifier successfully created.
      3. Try to send NYM with this identifier as Trustee:
        send NYM dest=abcde (or send NYM dest=000000)

      Actual Results:
      Identifier created without any errors, but sending NYM with this identifier is impossible:

      Error: client request invalid: InvalidClientRequest('validation error [ClientNYMOperation]: b58 decoded value length 4 should be one of [16, 32] (dest=abcde)',)
      Error: client request invalid: InvalidClientRequest("validation error [ClientNYMOperation]: should not contain the following chars ['0'] (dest=000000)",)

      Expected Results:
      Identifier in "send identifier" command should be validated same as in "send NYM" command.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ozheregelya Olga Zheregelya
            Nikita Spivachuk, Olga Zheregelya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: