This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Java VM debugging port value is not checked in properties editor | ||
---|---|---|---|
Product: | serverplugins | Reporter: | RogerioGomes |
Component: | GlassFish | Assignee: | TomasKraus |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mentlicher, vkraemer |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | GlassFish properties with too high port number. |
Description
RogerioGomes
2010-01-04 17:54:38 UTC
This is not a bug, you've just entered bad port number - too high. *** This bug has been marked as a duplicate of bug 135872 *** I'm reopening this, since I got a screenshot from Rogério Gomes with GlassFish properties, where GlassFish really has "1179766341" as the address. How GlassFish manage to listen on such port when java.net.InetSocketAddress is not able to accept it? Also shouldn't "Address to use" be renamed to "Port to use"? Created attachment 93119 [details]
GlassFish properties with too high port number.
The 'Address to use' property in the GlassFish properties dialog is currently accepting any value provided by the user without validation. The GlassFish plugin should be updated so that it validates the user defined. Note, when you enable the field for the first time the plugin populates the field with an available port value. But the user can change it to any value. Verified in 7.3 and it's still possible to put any value into the text box. NetBeans web-main: ------------------ changeset: 238184:6bb22a4aca6c summary: #179207 - Debug port accepted values are 0 .. 65535 now. JTextField was replaced with JSpinner with limits 0 .. 65535 and format "#####". Socket port limits were taken from java.net.ServerSocket constructor source code. Integrated into 'main-golden', will be available in build *201211070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6bb22a4aca6c User: Tomas Kraus <TomasKraus@netbeans.org> Log: #179207 - Debug port accepted values are 0 .. 65535 now. |