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.
Hello, In case of Oracle driver I can not provide url, user and password for connection wizard. updateState ignores them. Please, fix it ASAP. I need it for the demo session... Regards, Nikolay.
Created attachment 103077 [details] patch patch
Thanks for your patch. However, I don't understand what's a problem. Please, describe your problem in detail. I'll fix it quickly, then. Thanks
I'm creating wizard that uses database connection. It's possible to select existing connection or create new one. In most cases I already know host name for new connection, so I'd like to provide it to AddConnectionWizard. Unfortunately for Oracle Driver AddConnectionWizard always takes host name from Bundle.properties - localhost. Thank you very much for reply.
Pardon my ignorance I still don't understand the problem. Are you developing on top of NetBeans APIs? In that case post code snippet what do need, a unit test is the best. Or do you have any scenario what doesn't work correctly in UI. I suppose you have some use-case what fails when use API in your program. Thanks
Sorry. It seems that I didn't explain my problem well... Yes, I'm developing on top of NetBeans APIs. My code: connectionManager.showAddConnectionDialog(getDriver("oracle.jdbc.OracleDriver"), "jdbc:oracle:thin:@host:1521:XE", "user", "password"); In case of oracle.jdbc.OracleDriver (contains "Oracle" substring) wizard ignores url, user and password parameters. See AddConnectionWizard.java:338. There are special code for Oracle driver that ignores updateState function parameters.
Thanks. It make it clear.
Nikolay, thanks for catching this regression. Your patch was applied in core-main/rev/02c83941dec2
Thank you very much!
Integrated into 'main-golden', will be available in build *201011200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/02c83941dec2 User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #192125: AddConnectionWizard bug; applied Nikolay's patch, thanks