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 230317 - Allow user to supply user name and password for GlassFish admin interface when auth failed
Summary: Allow user to supply user name and password for GlassFish admin interface whe...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.4
Hardware: PC All
: P2 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
: 233049 (view as bug list)
Depends on: 229981
Blocks:
  Show dependency tree
 
Reported: 2013-05-27 12:08 UTC by TomasKraus
Modified: 2013-07-23 02:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TomasKraus 2013-05-27 12:08:21 UTC
Better solution for Bug# 229981 in trunk.

In GlassFish Tooling Library there is already support to detect authentication issue for GF4:

changeset:   253252:a5b5fda41611
summary:     #229981 - GF Tooling Library with auth result support
             in server status check code - trunk only fix

This must be handled on NetBeans side to ask for correct user name and password.
Comment 1 TomasKraus 2013-07-18 14:14:16 UTC
Adding NB_ONLY because this is about implementing new Tooling Library features into NetBeans. But I would like to do this myself because I already have solution in my mind.
Comment 2 TomasKraus 2013-07-19 14:30:31 UTC
Checked into tooling library:
-----------------------------
changeset:   623:75bc353d3678
summary:     Added error notifications support for state listeners

State checking listeners can now be registered to get notification about check failures. Currently there is a large set of events that may happen so I did not separate error events into separate queues like I did it with state change listeners. Listener error method will be called any time when check result has failed and it must check for event that caused failure itself.

Also added new error listener to be registered with GlassFishState.monitor() call: AuthFailureStateListener
Its error method evaluates events and for LOCAL_AUTH_FAILED and REMOTE_AUTH_FAILED
events in PORT and VERSION task types it will ask user to supply new administrator username and password.

I tested it with password change popup because popup to supply admin user and password is not implemented yet.

TODO: Create popup window to supply new administrator username and password.
Comment 3 TomasKraus 2013-07-22 12:13:41 UTC
Checked into web-main:
----------------------
changeset:   258605:7fff34c56fc1
summary:     #230317 - Allow user to supply user name and password
             for GlassFish admin interface when auth failed

Pop up window and related StateChangeListener is registered for GF v4 only, because GF v3 returns HTTP 401 and 403 codes which are currently handled by java.net.Authenticator.
Comment 4 TomasKraus 2013-07-22 12:33:42 UTC
*** Bug 233049 has been marked as a duplicate of this bug. ***
Comment 5 Quality Engineering 2013-07-23 02:38:21 UTC
Integrated into 'main-silver', will be available in build *201307222300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7fff34c56fc1
User: Tomas Kraus <TomasKraus@netbeans.org>
Log: #230317 - Allow user to supply user name and password for GlassFish admin interface when auth failed