Share

OpenSmpp/SMS Tools

Tracker: Bugs

5 Hostname length lower than 7 characters are not allowed - ID: 2833108
Last Update: Comment added ( abhiksarkar )

If one tries to call the constructor TCPIPConnection(String address, int
port) with a hostname shorter than 7 characters, it is considered invalid
hostname and connects to localhost.
The constraint is without any reason because a construct new
TCPIPConnection("smpp", 7890) is legal and valid and must connect to the
addres resolved for "smpp".
Fortunately there is a constructor which permits the creation of
TCPIPConnection with a connected socket instance.


Zsido Jozsef ( zsjoska ) - 2009-08-06 10:34

5

Open

None

Abhik Sarkar

None

None

Public


Comments ( 2 )




Date: 2009-11-17 09:02
Sender: abhiksarkarProject Admin

It seems that the original coder made the assumption that the address will
always be an IP address. As a result, the minimum length is 7 characters
("w.x.y.z"). This should be corrected and will be done soon (hopefully ;)).


Date: 2009-09-23 06:28
Sender: abhiksarkarProject Admin

Hi Zsido,

Thanks for raising this. I'll have a look into it and update the ticket
soon.

Abhik


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
assigned_to nobody 2009-09-23 06:28 abhiksarkar
summary Hostname length lower than 7 characters ar not allowed 2009-08-06 10:34 zsjoska