Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353280 - Control getConnection from DataSource
Summary: Control getConnection from DataSource
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 3.7.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Birt-DataAccess CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 353143
Blocks:
  Show dependency tree
 
Reported: 2011-07-28 02:44 EDT by German Ilyin CLA
Modified: 2011-07-28 16:03 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description German Ilyin CLA 2011-07-28 02:44:22 EDT
Build Identifier: 3.5

This is a fixture.

Here we discussed a problem http://www.birt-exchange.org/org/forum/index.php/topic/22953-jndi-datasource/.
And a bug was created by Lin Zhu https://bugs.eclipse.org/bugs/show_bug.cgi?id=353143

It says that:

Description Lin Zhu 2011-07-26 13:39:38 EDT
In current JNDI support, if user provide username/password in connection
property, after acquire a JNDI DataSource, we will first try to connect using
the username/password with API
java.sql.DataSource.getConnection(String,String). If the API call failed with
either a SQLException or UnsupportedOperationException, we will then try to use
API java.sql.DataSource.getConnection() which includes no authentication
information.


I think it would be nice, if there was a way to control the "getConnection" process.
For example, provide some property which will enable or disable on of these options.

Reproducible: Always

Steps to Reproduce:
1. create design supporting JNDI
2. deploy under Jboss
3. run the report
Comment 1 Linda Chan CLA 2011-07-28 16:03:22 EDT
Linking with the original #353143 entry.

The current way to bypass the call to #getConnection(String,String) is *not* to specify the username and password values in the data source properties.  Property values can be dynamically changed via the Property Binding feature and/or Java scripting feature.