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 146944 - "Question" dialog appears after removing admin properties
Summary: "Question" dialog appears after removing admin properties
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: MySQL (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Vancouvering
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-11 13:50 UTC by Roman Mostyka
Modified: 2008-09-18 14:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of "Question" dialog. (24.51 KB, image/jpeg)
2008-09-11 13:51 UTC, Roman Mostyka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-09-11 13:50:45 UTC
1. Add MySQL Server with admin parameters.
2. Start it, connect to it, then disconnect and stop it.
3. Open "Properties" dialog, remove admin properties and click "OK".

Result: "Question" dialog appears. Why it appears?
Comment 1 Roman Mostyka 2008-09-11 13:51:50 UTC
Created attachment 69656 [details]
Screenshot of "Question" dialog.
Comment 2 David Vancouvering 2008-09-17 18:57:23 UTC
I can't reproduce this.  I think you are also changing the basic properties?

I think the issue is that what we do right now is whenever you change a property that affects how we connect to the
server, we automatically try to reconnect.

I think what we should do here is ask the user if they want to reconnect first.

I'll work on that, but let me know if you disagree.
Comment 3 David Vancouvering 2008-09-17 19:16:19 UTC
OK, I still can't reproduce the behavior you're seeing, but after further experimenting, I noticed that as part of the
fix to issue 142549, I removed the logic that attempted to reconnect after changing basic properties.  Are you running
with a build that includes this fix?  The fix was integrated into build 200809071401.  I noticed this issue was logged
Sep 11 but perhaps?

I'm not sure what's going on here, but that's one suspicion - you're working with an older build.

Marking as INCOMPLETE, please either close the bug as fixed if you can't reproduce or re-open with instructions on how
to reproduce.  If necessary let's do a VNC session so you can show me how to reproduce.
Comment 4 David Vancouvering 2008-09-18 00:09:07 UTC
I think I may have figured out what happens here.  I registered a property change listener to reconnect when restarting
the server, and this PCL is never removed.  I am removing this PCL as part of the fix to Issue 147550, so please see if
you can reproduce after the fix for this issue is pushed to main-golden.
Comment 5 David Vancouvering 2008-09-18 00:26:41 UTC
Update: removing the PCL needs some careful thought.  I won't be changing it as part of the fix to issue 147550.  I
still would like to see if you can reproduce this issue, and if so, how.

I suspect how you do it is change the settings twice, once setting it correctly and then once again deleting it.  Then
the PCL is installed and starts trying to do things when you don't want it to.  Let me know what you find out.
Comment 6 Roman Mostyka 2008-09-18 14:34:00 UTC
No, David, now I'm also unable to reproduce this issue. I think it was fixed with other fixes.
I will file another issue, but it is slightly different and about basic properties.
Comment 7 Roman Mostyka 2008-09-18 14:35:12 UTC
Verified with build 080918.