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

status command should display errors on stderr not on stdout

    Details

    • Type: Bug
    • Status: Done
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 6.0.0, 3.0.0
    • Fix Version/s: Not applicable
    • Component/s: tools
    • Labels:

      Description

      Found on dev branch (revision 11330).

      The status command returns errors on stdout and not on stderr.

      Scenario:
      ************
      1. unzip the server (don't configure it)
      2. run the status command

      $ ./opendj/bin/status
      The version of the installed OpenDJ could not be determined because the
      version file '/tmp/opendj/config/buildinfo' could not be found. Restore it from 
      backup before continuing
      
      $ ./opendj/bin/status 2>/dev/null
      The version of the installed OpenDJ could not be determined because the
      version file '/tmp/opendj/config/buildinfo' could not be found. Restore it from 
      backup before continuing
      

      => the error message is expected but on stdout

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                matthew Matthew Swift
                Reporter:
                csovant Christophe Sovant
                Dev Assignee:
                Matthew Swift
                QA Assignee:
                Christophe Sovant
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: