You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Miguel Carvalho <mc...@infopulse.pt> on 2001/04/02 19:31:56 UTC
Bugs!
Hi! When using slide client i've noticied some bugs:
1- if you type just only spaces and press return the client crashes in
string tokenizer. I looked at source. In main(ProcessCommands method) when
you have:
if( command == null ||
command.length() == 0 )
{
// Print commandLine
Usage
printCommandUsage();
continue;
}
command = command.trim();
StringTokenizer st = new
StringTokenizer(command);
String todo = st.nextToken();
Stack params = new Stack();
I think the problem is when you have a string full of spaces then the
nextToken fails. You can have a test before:
....
command = command.trim();
StringTokenizer st = new
StringTokenizer(command);
if (!st.hasMoreTokens()){
printCommandUsage();
}
.....
2- other one is that if you type a command and put no parameters you
don't get to the output the messages that are supposed (like in source);
3- In slide client, when i try to use the open with all its parameters it
fails. When i connect to a site o requires autentication, if i connect like
open www.cyberteams.com:8080
everithing goes well, the site asks for login &
passwd and all goes well;
on the other hand, when i connect like open www.cyberteams.com:8080 -u
<myusername> -p <mypasswd>
the slide client says Error: Check! <mypasswd>.
What's wrong?
If anybody can help me on this and on the questions i've posted before i'll
apreciate....
Thanks
maik
Re: Bugs!
Posted by "Park, Sung-Gu" <je...@thinkfree.com>.
----- Original Message -----
From: "Miguel Carvalho" <mc...@infopulse.pt>
To: <sl...@jakarta.apache.org>
Sent: Tuesday, April 03, 2001 2:31 AM
Subject: Bugs!
> Hi! When using slide client i've noticied some bugs:
> 1- if you type just only spaces and press return the client crashes in
> string tokenizer. I looked at source. In main(ProcessCommands method) when
Hmm... Indeed. ^^;
It's fixed. Thanks!
Please, keep to report bugs.
> 2- other one is that if you type a command and put no parameters you
> don't get to the output the messages that are supposed (like in source);
The form of http URL is like "http://username:password@hostname:port/path
When you type ? by the command, you can see commands for the Slide client.
Well... I didn't realize someone thought that the usage is hard.
Sorry... Added the help message for the open command.
> 3- In slide client, when i try to use the open with all its parameters
it
> fails. When i connect to a site o requires autentication, if i connect
like
> open www.cyberteams.com:8080
> everithing goes well, the site asks for login &
> passwd and all goes well;
> on the other hand, when i connect like open
www.cyberteams.com:8080 -u
> <myusername> -p <mypasswd>
> the slide client says Error: Check! <mypasswd>.
> What's wrong?
Just input the form of http URL. :-)
Sung-Gu