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

[send ATTRIB] Validation error is unclear in case "endpoint" has not JSON value

    XMLWordPrintable

Details

    • Bug
    • Status: Complete
    • Low
    • Resolution: Invalid
    • None
    • None
    • None

    Description

      BUILD

      sovrin-node 0.3.140
      sovrin-client 0.3.143

      STEPS TO REPRODUCE
      1. Check help for send ATTRIB command:
        sovrin@test> help send ATTRIB
        
        send ATTRIB
        -----------
             title: Adds attributes to existing identifier
        
             usage: send ATTRIB dest=<target identifier> [raw={<json-data>}] [hash=<hashed-data>] [enc: <encrypted-data>]
        
             example(s):
                send ATTRIB dest=33A18XMqWqTzDpLHXLR5nT raw={"endpoint": "127.0.0.1:5555"}
        
      1. Send example command provided in help with valid dest:
        sovrin@test> send ATTRIB dest=gEAGFA6DCD15caBG raw={"endpoint":"127.0.0.1:5555"}
        Adding attributes {"endpoint":"127.0.0.1:5555"} for gEAGFA6DCD15caBG
        Error: client request invalid: InvalidClientRequest() [caused by 'str' object has no attribute 'get']
        
      ACTUAL RESULT

      Error could be unclear.

      EXPECTED RESULT

      Error should tell that "endpoint" parameter could have only JSON value.

      Attachments

        Activity

          People

            alexander.shekhovcov Alexander Shekhovcov
            aleksey-roldugin Aleksey Roldugin
            Aleksey Roldugin, Olga Zheregelya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: