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.

Bug 167694 - support https for admin and 'normal' traffic.
Summary: support https for admin and 'normal' traffic.
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-26 12:23 UTC by nagyz
Modified: 2009-10-22 23:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
These are some initial 'thoughts'... mostly incorrect... but i do not want them to get completely lost (17.57 KB, text/plain)
2009-10-14 17:18 UTC, Vince Kraemer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nagyz 2009-06-26 12:23:24 UTC
Okay, so our production application server is configured that it listens on 443 for https requests, and 4848 is on https
too (instead of the default http).

When I create a new web application, and select "run" from the right-click menu, it opens up the following url:
http://hostname.of.the.server:0/projectname

which is clearly wrong.
Comment 1 Vince Kraemer 2009-06-26 15:17:10 UTC
I will investigate this and see what change needs to be made in the IDE code.
Comment 2 Vince Kraemer 2009-06-30 01:04:29 UTC
How did you get the server to use port 443?

What changes did you make from the original domain.xml file?
Comment 3 nagyz 2009-06-30 09:23:03 UTC
on the web admin (port 4848), under configuration -> http service -> http listeners I did disable the 8080 port
listener, and changed http-listener-2's port to 443, and checked in "security".

IIRC in factory defaults, this listenre is not even enabled, and has a port of 8181.

so right now, I only have that one listener + admin-listener for port 4848, and I did check in "security" on that
listener too (so :4848 works only with ssl now).
Comment 4 Vince Kraemer 2009-06-30 17:53:26 UTC
you may want to try the following...

enable http-listener-1 with port == 443 and security enabled.
disable http-listener-2

instead.
Comment 5 nagyz 2009-07-01 21:08:14 UTC
when I do as you suggested above (disable http-listener-2 completely, and setup http-listener-1 on 443 w/ security) then
it still opens the wrong url.
if I enable http-listener-2 without(!) security, then it opens up that address correctly.

well, I believe security is something we need to support :)
Comment 6 Vince Kraemer 2009-07-01 21:18:37 UTC
thanks for the additional info
Comment 7 Vince Kraemer 2009-10-14 05:12:59 UTC
This fell between the cracks... this is a missing feature. It won't get in to 6.8.
Comment 8 Vince Kraemer 2009-10-14 17:18:47 UTC
Created attachment 89461 [details]
These are some initial 'thoughts'... mostly incorrect... but i do not want them to get completely lost
Comment 9 Vince Kraemer 2009-10-20 00:08:03 UTC
this was easier than I originally expected...  Amazing what a good night's sleep can do for the creative side of the
brain...
Comment 10 Vince Kraemer 2009-10-20 20:24:34 UTC
http://hg.netbeans.org/web-main/rev/da14b497c839
Comment 11 Vince Kraemer 2009-10-20 20:27:25 UTC
Note: if the production server is remote, you will need to enable http-listener-1, with security enabled on port 443.

If it is local, things should 'just work'...
Comment 12 Quality Engineering 2009-10-22 23:44:24 UTC
Integrated into 'main-golden', will be available in build *200910221401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/da14b497c839
User: vince kraemer <vkraemer@netbeans.org>
Log: #167694: use https instead of http when appropriate