ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50400] New: SecureHandler does not write to std err but to std out
Date Thu, 02 Dec 2010 10:43:56 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50400

           Summary: SecureHandler does not write to std err but to std out
           Product: Ant
           Version: 1.8.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: 1983-01-06@gmx.net


The secure input handles ouput looks like this:
Please enter the Tomcat Manager App admin password:

customize:
     [echo] Starting Tomcat customization...

The [input] is missing.
The default input handler does has the input tag as prefix. The difference is
that def input handler prompts on System.err. The Console docs do not reveal
where the console is attached to.
Anyway, this problem can be fixed.
In that line
http://svn.apache.org/viewvc/ant/core/tags/ANT_181/src/main/org/apache/tools/ant/input/SecureInputHandler.java?view=markup#l48
you see the readPassword with args is called. If you replace the line with:

System.err.print(prompt);
and now invoke reflectively the readPassword method without any parameters,
this should work as the other input handler.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message