james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Dillon" <j...@jeffdillon.com>
Subject Re: current version of James?
Date Wed, 09 Jan 2002 21:15:16 GMT
Yup, that's the problem. I played with it a little while and was just about
to mail a very similar patch out to the list. :-) When I printed the two
Strings to System.out intead of through the PrintWriter I saw a leading
space.

Your patch is fixes the login problem. Using the trim() works correctly.

Now, I still have the problem that the builtin Windows 2k telnet client and
other windows third party telnet clients not echoing my input back to me.


Jeff Dillon
http://www.jeffdillon.com


----- Original Message -----
From: "Danny Angus" <danny@thought.co.uk>
To: "James Developers List" <james-dev@jakarta.apache.org>
Sent: Wednesday, January 09, 2002 2:47 PM
Subject: RE: current version of James?


> Its probably our old friend windows line endings v unix ones ..
> there was an issue with v1 in this respect but I understood it had been
> sorted, I know win2k telnet & telnet from linux and most emulators are OK
> and that NT telnet wasn't I'm not sure about anything else.
> I expect we may simply need to trim the input, could you try applying this
> patch to your file and run your test again?
>
> cvs -z9 diff -u RemoteManagerHandler.java
> Index: RemoteManagerHandler.java
> ===================================================================
> RCS file:
>
/home/cvs/jakarta-james/src/java/org/apache/james/remotemanager/RemoteManage
> rHandler.java,v
> retrieving revision 1.6
> diff -u -r1.6 RemoteManagerHandler.java
> --- RemoteManagerHandler.java 30 Nov 2001 11:20:16 -0000 1.6
> +++ RemoteManagerHandler.java 9 Jan 2002 20:38:00 -0000
> @@ -130,9 +130,9 @@
>                      getLogger().info( message );
>                  }
>                  out.println("Login id:");
> -                login = in.readLine();
> +                login = in.readLine().trim();
>                  out.println("Password:");
> -                password = in.readLine();
> +                password = in.readLine().trim();
>              } while (!password.equals(admaccount.get(login)) ||
> password.length() == 0);
>
>              scheduler.resetTrigger(this.toString());
>
> d.
>
>
> --
> To unsubscribe, e-mail:
<mailto:james-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:james-dev-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message