Commit Graph

460 Commits

Author SHA1 Message Date
Scott Frederick
96bccf7992 Revert "Upgrade to Gradle 4.10.2"
This reverts commit ea68fb5e07.
2018-11-16 16:14:54 -06:00
Roy Clarkson
ea68fb5e07 Upgrade to Gradle 4.10.2 2018-11-16 16:54:13 -05:00
Scott Frederick
e363754260 Increment version to 1.2.8.BUILD-SNAPSHOT 2018-11-16 10:42:37 -06:00
Scott Frederick
936b78245b Merge pull request #240 from spikymonkey/url_decoding_data_source_1.x
Handle drivers which don't support URL-encoding (1.x)
2018-11-07 10:42:45 -06:00
Gareth Clay
8841c47d8f Handle drivers which don't support URL-encoding
1.2.6 introduced a change to URL-encode credentials in JDBC connection
strings by default. This was to prevent special characters from
interfering with connections, but unfortunately some drivers can't
handle the encoding. Also in some clouds, the JDBC URL is passed to us
in URL encoded form. Again, in the case where the driver is unable to
URL-decode the URL itself, this causes connection failures.

This commit introduces `UrlDecodingDataSource`, which is returned in all
cases by whichever `DataSourceCreator` is in play.
`UrlDecodingDataSource` transparently delegates to an underlying
`DataSource`, except in the case where a connection attempt is made and
no previous connection attempt has been successful. In this case, if the
connection attempt with the configured JDBC URL fails, a test connection
is attempted using a URL-decoded version of the JDBC URL. If this is
successful, the underlying `DataSource` is updated with the decoded JDBC
URL and used to provide a final connection, which is returned to the
client.

Fixes gh-237
2018-11-02 15:15:09 +00:00
Scott Frederick
6928dc66ec Remove test configuration that requires Java8. 2018-09-11 16:16:45 -05:00
Scott Frederick
d35250b98d Change order of build repositories. 2018-09-11 14:54:59 -05:00
Scott Frederick
d0d80ce5a2 Fix RabbitMQ spring connector tests when run against RabbitMQ client 5.4.x. 2018-09-11 14:44:53 -05:00
Scott Frederick
bd6adf6177 Increment version to 1.2.7.BUILD-SNAPSHOT. 2018-05-11 14:12:44 -05:00
Scott Frederick
28f9d4301d Merge pull request #229 from axhm3a/axhm3a-patch-1
Update jackson dependencies to 2.9.5
2018-05-09 15:21:05 -05:00
Scott Frederick
e75891d9fe Merge pull request #222 from bijukunjummen/GH-213
Supports user info with special uri chars "%, :, +"
2018-05-09 15:20:10 -05:00
Daniel Basten
f303fc72a4 Update jackson dependencies to 2.9.5
jackson.core:jackson-databind:2.3.3 2.3.3 is affected by the following CVEs:

- CVE-2017-15095 
- CVE-2017-17485 
- CVE-2017-7525
- CVE-2018-5968 
- CVE-2018-7489
2018-05-09 13:37:31 +02:00
Jake Zingler
e59086ac96 Adds test for special chars in postgres url
Signed-off-by: Biju Kunjummen <biju.kunjummen@gmail.com>
2018-01-02 16:53:48 -08:00
Jake Zingler
c4aae87e0a Supports special characters in mysql jdbc urls
Signed-off-by: Biju Kunjummen <biju.kunjummen@gmail.com>
2018-01-02 14:01:38 -08:00
Jake Zingler
c504111f24 Supports user info with special uri chars "%, :, +"
Signed-off-by: Biju Kunjummen <biju.kunjummen@gmail.com>
2018-01-02 13:47:31 -08:00
Scott Frederick
76c87cea36 Update building and publishing of docs to gh-pages. 2017-10-31 14:22:52 -05:00
Scott Frederick
b9aa0998c5 Increment version to 1.2.6.BUILD-SNAPSHOT 2017-10-31 13:36:07 -05:00
Scott Frederick
e716122f0c Change Cloud Foundry detection for Cassandra to use required credentials fields. Add Cassandra to docs. 2017-10-26 18:03:12 -05:00
Scott Frederick
0696867267 Turn down logging levels for common messages. 2017-10-26 13:44:29 -05:00
Scott Frederick
c869ff163a Merge pull request #216 from markbigler/master
Add a more comfortable way to access ServiceInfo's
2017-10-26 13:20:48 -05:00
Bigler Mark
d7cd9d8635 https://github.com/spring-cloud/spring-cloud-connectors/issues/212 2017-10-26 08:34:35 +02:00
Scott Frederick
5896a0b8b1 Make all tags comparisons case-insensitive in Cloud Foundry connector. 2017-10-25 16:01:24 -05:00
Scott Frederick
b0e9ca04f4 Fix mapping of overridden port property for AMQP. 2017-10-23 16:32:02 -05:00
Scott Frederick
d4179cbd1d Provide a default value for the AMQP port if not provided in the URI. 2017-10-23 16:03:40 -05:00
Scott Frederick
1361518db0 Support RabbitMQ URLs with URL-encoded vhost. 2017-10-23 14:56:04 -05:00
Scott Frederick
eaa53f8cd6 Fix inconsistency in building JDBC URL. 2017-10-23 14:00:24 -05:00
Scott Frederick
8b774ea392 Merge pull request #176 from mp911de/cassandra
Add support for Cassandra
2017-10-20 16:13:57 -05:00
Scott Frederick
cbb70e7264 Remove erroneous reference to 'uris' credentials field in cloudfoundry cloud connector docs, which is only supported by AMQP services. 2017-10-20 16:09:37 -05:00
Scott Frederick
7f0261ec79 Merge pull request #209 from hosuaby/master
Update MongoServiceInfoCreator.java
2017-07-21 11:50:13 -05:00
Alexei KLENIN
c3fbfee8c1 Update MongoServiceInfoCreator.java
FEATURE: MongoLab addon for Heroku changed it environment variable MONGOLAB_URI to MONGODB_URI. Add according env prefix
2017-07-21 13:07:56 +02:00
Scott Frederick
1a41cdbd5e Merge branch 'cf-post-processor' 2017-05-10 17:30:09 -05:00
Scott Frederick
993fab7271 Increment version to 1.2.5.BUILD-SNAPSHOT 2017-05-10 16:29:32 -05:00
Scott Frederick
0cb7c25754 Add service data postprocessor extension point to cf connector. 2017-05-09 09:47:19 -05:00
Mark Paluch
8bd5efb63c Add support for Cassandra
Add connectors for Cassandra Cluster instances with Java and XML-based configuration. Cassandra configuration is obtained using the single-tenant Datastax/Cassandra tile.
2017-04-20 11:03:00 +02:00
Scott Frederick
277a6f74eb Add DB2 and SqlServer ServiceInfoCreators for localconfig. 2017-04-05 14:03:14 -05:00
Scott Frederick
f8f5eb9c84 Merge pull request #172 from jwoodrich/master
Oracle ServiceInfoCreator for localconfig
2017-04-05 11:24:23 -05:00
Scott Frederick
9030d0f717 Add tests to verify ConnectionConfiguration mapping to pooled DataSource providers. 2017-01-30 18:21:22 -06:00
Scott Frederick
61cfcd1c32 Use consistent formatting in test json files. 2016-11-02 20:27:36 -05:00
Scott Frederick
eff000d30f Handle missing or empty credentials in VCAP_SERVICES environment variable in CloudFoundryConnector without throwing NPE. 2016-11-02 20:26:58 -05:00
Scott Frederick
93631a2667 Fix typos in javadoc. 2016-10-24 16:22:38 -05:00
Scott Frederick
7d090c9993 Configure HikariCP with values from PoolConfig. Add tests to verify PoolConfig values are applied for all connection pool providers. 2016-10-24 16:17:58 -05:00
Scott Frederick
5d06861ef1 Clarify detection requirements for JDBC URLs in Cloud Foundry Connector docs. 2016-10-21 17:07:45 -05:00
Anwar Chirakkattil
d78a15d34f Updated as per review comments from @scottfrederick 2016-10-21 17:03:34 -05:00
Anwar Chirakkattil
6aee5b9377 When jdbcUrl is spcified, oracle scheme is not required 2016-10-21 17:03:34 -05:00
Scott Frederick
ff2b601d18 Handle missing or empty VCAP_SERVICES environment variable in CloudFoundryConnector without throwing NPE. 2016-10-21 16:19:43 -05:00
Jason Woodrich
bd34692435 Add ServiceInfoCreator for Oracle and unit test 2016-07-12 18:38:13 -06:00
Scott Frederick
2d763feb82 Fix build status badge 2016-07-11 18:03:07 -05:00
Scott Frederick
365911c8e7 Update README and convert to adoc 2016-07-11 18:02:16 -05:00
Scott Frederick
03e546fdcf Increment version to 1.2.4.BUILD-SNAPSHOT 2016-07-03 21:20:48 -04:00
Scott Frederick
8cf17aad45 Merge branch 'wilkinsona-mongo-3-compatibility' 2016-06-29 22:45:50 -04:00