Package: luma
Version: 2.3-1.1
Severity: normal
Tags: patch

--- Please enter the report below this line. ---

It is impossible to set any port from 32768 to 65535 in the server
settings dialog of luma. Since we do no use unsigned int in python,
there is no need for such a limit. We should also prevent the user from
using the reservered port 0...
I included a simple patch to fix this issue.
It is already tested and working fine!

The bug exists also in the cvs of the upstream package.

Best regards
Per

http://debian.zaubberer.net/


--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.23.12-slh-smp-3

Debian Release: lenny/sid
  600 unstable        sidux.com
  500 unstable        ftp.de.debian.org
  700 unstable        debian.zaubberer.net

--- Package information. ---
Depends             (Version) | Installed
=============================-+-===========
python               (>= 2.3) | 2.4.4-6
python-ldap          (>> 1.9) | 2.3.1-1
python-qt3          (>= 3.11) | 3.17.4-1
python-support     (>= 0.7.1) | 0.7.6

--- lib/luma/base/gui/ImprovedServerDialogDesign.py			2006-03-14 17:16:25.000000000 +0100
+++ lib/luma/base/gui/ImprovedServerDialogDesign_patched.py	2008-01-10 00:00:00.000000000 +0100
@@ -1786,7 +1786,8 @@
         WStackPageLayout_2.addWidget(self.textLabel3,2,0)
 
         self.portBox = QSpinBox(self.WStackPage_2,"portBox")
-        self.portBox.setMaxValue(32767)
+        self.portBox.setMinValue(1)
+        self.portBox.setMaxValue(65535)
         self.portBox.setValue(389)
 
         WStackPageLayout_2.addMultiCellWidget(self.portBox,2,2,1,2)

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to