Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5061

add-user utility reports "No java.io.Console available to interact with user." when used silently with su and piped to a file.

    XMLWordPrintable

    Details

      Description

      ./add-user.sh dustin dustin1 does not work anymore. In previous versions it worked. It has to do with the "theConsole" object being null.

      In the same breadth, the --silent=true option in add-user.sh does not work anymore. Again has to do with the need for "theConsole" object being null.

      The --silent=true option was added because in some environments, System.console() returns null[for example when the Izpack installer calls that script] and the add-user.sh script breaks because of its dependence on System.console() object to print stuff.

      [the "theConsole" object calls the System.console() object]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rhn-support-dlofthouse Darran Lofthouse
              Reporter:
              samdoyle_jira Samuel Doyle (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: