Uploaded image for project: 'Corda'
  1. CORDA-2506

Invalid node command line options not always gracefully handled

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects versions: Corda 4, Corda Enterprise 4
    • Fix versions: Corda 4.1
    • Components: None
    • Labels:
      None
    • Affected OS:
      Linux
    • Severity:
      Medium
    • Target Version/s:
    • Feature Team:
      Operational Experience
    • Sprint:

      Description

      This has been reported off the back of: R3T-1365

      # Test 2: Valid option with invalid parameter
      # (directory should not exist)
      
      java -jar corda.jar --base-directory c:\foo
      MacBook-NonDev-06:PartyA lamarthomas$ ./nodeStart.R3T1365.TestCase2.sh
      CAPSULE EXCEPTION: Exception while getting attribute App-Class-Path while processing attribute Capsule-Agent: false (for stack trace, run with -Dcapsule.log=verbose)
      MacBook-NonDev-06:PartyA lamarthomas$
      
      NOTE:  No log file generated on this error
      

      Another minor one:

      # Test 5: No node.conf file available when requesting corda version
      # Version is revealed but only after a stack trace dump
      
      rm node.conf
      
      java -jar corda.jar -version
      MacBook-NonDev-06:PartyA lamarthomas$ ./nodeStart.R3T1365.TestCase5.sh
      Unknown option: -ersion
      

        Attachments

        1. 2506_Step2.png
          41 kB
        2. 2506_Step2 - no equals.png
          54 kB
        3. 2506_Step2 - unix path.png
          55 kB
        4. 2506_Step5.png
          32 kB
        5. 2506_Step5 - incorrect option.png
          61 kB

          Issue links

            Activity

              People

              • Assignee:
                jonathan.locke Jonathan Locke
                Reporter:
                Viktor.Kolomeyko Viktor Kolomeyko
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: