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.
Step to reproduce: - establish JDBC connection to database with empty password; - create CMP Entity Bean from established JDBC connection; Note, generated connection pool resource has 3 Extra Properties, one of them named Password and has empty value. - try to registered this connection pool resource; Registration fail saying that Password property can not be deleted.
Not sure first this is a regression or a bug... Nitya, test via Admin GUI to see the beahviour.... If this is a backend constraint to requires a psswd, then it;s not a bug, but a feature. Also, this is not a P3, as the workaround is to add the password, as notified in the error message.
This issue is a bug in resource creation through the ejb wizards and UseDatabaseAction calls in the project. The error is not because of empty password, the extra properties are name value pairs. The server will complain if there is an empty value is passed for any of the pairs. Resource Creation in wizards does not cause this since appropriate checks are in place to ensure there are valid values.
Nitya, I am a bit confused. Could you confirm my understanding: even if the database allow user with empty password, it is impossible to have a AS81 connection pool with such user? Anyway, agree with Ludo, this does not consist of a show-stopper.
*** Issue 65179 has been marked as a duplicate of this issue. ***
Nitya: we absolutely need to know why the password can be null in some cases. Maybe this will imply a change in the db explorer module, but we need to fix this. I was in a lab today and many students got this issue. It was hard to detect...
Password being null in some cases was due to issue 68758. This issue has been fixed. This issue will not pop as frequently now. But plugin should handle case where it might receive a resource with null/empty user/password value. The server will not accept a name value pair with null/empty value. The plugin should either strip such invalid pairs from it's resource before attempting to register and inform the user of this action or ask for user input.
TM 5.0->TBD
Plugin strips invalid pairs from it's resource before registering the resource to the server.