[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#45258: kpf does not tell the user that it changes the port number when port < 1024
From:       jju () dif ! dk
Date:       2002-07-15 20:40:38
[Download RAW message or body]

Package: kpf
Version: KDE 3.0.6 CVS/CVSup/Snapshot
Severity: normal
Installed from:    Compiled sources
Compiler:          gcc/g++ 2.95.3
OS:                Linux
OS/Compiler notes: Not Specified

If you create a "New Server" with kpf to share some directory and tell it to use a \
port number less than 1024 it will silently change the port number to 1024 without \
informing the user (the same problem exists with values > 65535). 

This is not good since the user may not know that you cannot bind to ports less than \
1024 as a normal user and as a result the user will get confused as to why kpf is not \
running.

I think many users will try to make kpf use port 80 to have it act as their primary \
HTTP server, so unless there is some sort of warning my guess is that a lot of users \
will be confused.

A good way to handle this would, in my oppinion, be to have kpf behave like this:

Read in the port-number the user entered.
if the port-number is less than1024 then display a message saying that the port \
number has to be >= 1024 and <= 65535. then change the number in the input box to \
1024 and let the user reenter a port-number. 

The user should never be able to click the "Ok" button as long as the port number is \
out of range and be let to believe that the value was accepted.

Another option would be to simply disable the "Ok" button everytime the value in the \
input field is out of range and only reactivate it when the value gets back in range.


/Jesper Juhl - jju@dif.dk


(Submitted via bugs.kde.org)


(Complete bug history is available at http://bugs.kde.org/db/45/45258.html)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic