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

JdbcDataSource uses wrong overload of getConnection on JNDI DataSource

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4
    • Labels:
      None
    • Environment:

      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
          8 kB
          Noble Paul
        2. SOLR-1244.patch
          9 kB
          Chris Eldredge

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: