Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1244

JdbcDataSource uses wrong overload of getConnection on JNDI DataSource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.4
    • None
    • Any.

    Description

      When configured to use a JDBC DataSource via JNDI, JdbcDataSource checks to see if initProps contains a property named "user." If that property is null, DataSource.getConnection(String user, String password) is used where DataSource.getConnection() should be called. I will provide a test case and patch that fixes the issue.

      Attachments

        1. SOLR-1244.patch
          9 kB
          Chris Eldredge
        2. SOLR-1244.patch
          8 kB
          Noble Paul

        Activity

          People

            noble.paul Noble Paul
            chris.eldredge Chris Eldredge
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: