78 Commits

Author SHA1 Message Date
Scott Frederick
4edd634fd1 Shade additional Jackson classes 2021-11-03 14:18:25 -05:00
Scott Frederick
98207f2f02 Upgrade Jackson to 2.13.0 2021-11-03 14:07:50 -05:00
Scott Frederick
36f19309f0 Shade additional Jackson classes 2021-10-25 16:59:01 -05:00
Scott Frederick
f3a11b5c30 Reduce the number of shaded Jackson classes 2021-10-25 14:44:24 -05:00
Scott Frederick
77d303ab82 Exclude Jackson module-info.class from shadowJar. 2019-10-17 11:04:48 -05:00
MrManz
a3c61d4456 Bump jackson databind
Update of jackson databind to version 2.10.0 which fixes several CVEs (https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.10)
2019-10-17 09:00:25 -05:00
mibo
0ebd0c4190 Updated jackson-databind version to 2.9.9.3
Updated `jackson-databind` version to `2.9.9.3` which contains fix for [this regression](https://github.com/FasterXML/jackson-databind/issues/2395).
2019-08-19 14:30:02 -05:00
mibo
94dff58ae2 Updated jackson-databind version to 2.9.9.2
Updated jackson-databind version to 2.9.9.2 which contains fix for:
- [CVE-2019-14379](https://github.com/FasterXML/jackson-databind/issues/2387)
- [CVE-2019-14361 / CVE-2019-14439](https://github.com/FasterXML/jackson-databind/issues/2389)
2019-08-05 13:13:26 -05:00
Scott Frederick
9adc1f7287 Get jackson-core transitively from jackson-databind. 2019-07-05 15:13:30 -05:00
mibo
1b9c675d32 Updated jackson version to 2.9.9.1
Updated jackson version to 2.9.9.1 for following CVE issues:
CVE-2019-12814: https://github.com/FasterXML/jackson-databind/issues/2341
CVE-2019-12384: https://github.com/FasterXML/jackson-databind/issues/2334
2019-07-05 14:53:16 -05:00
Aziz Sonawalla
cefdaf4611 Update jackson version to 2.9.9 2019-06-04 16:54:33 -05:00
Spring Operator
80ad524dc1 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* [ ] http://ca30db57-a396:ddrnu58423q@12.34.567.89:12345/api (UnknownHostException) with 2 occurrences migrated to:
  https://ca30db57-a396:ddrnu58423q@12.34.567.89:12345/api ([https](https://ca30db57-a396:ddrnu58423q@12.34.567.89:12345/api) result UnknownHostException).
* [ ] http://datastax-opscenter-cassandra.cf-app.com/opscenter/index.html (UnknownHostException) with 3 occurrences migrated to:
  https://datastax-opscenter-cassandra.cf-app.com/opscenter/index.html ([https](https://datastax-opscenter-cassandra.cf-app.com/opscenter/index.html) result UnknownHostException).
* [ ] http://username:password@rabbitmq-broker:12345/api (UnknownHostException) with 2 occurrences migrated to:
  https://username:password@rabbitmq-broker:12345/api ([https](https://username:password@rabbitmq-broker:12345/api) result UnknownHostException).
* [ ] http://dev.mysql.com/doc/refman/5.1/en/connector-j-usagenotes-j2ee.html (301) with 1 occurrences migrated to:
  https://dev.mysql.com/doc/refman/5.1/en/connector-j-usagenotes-j2ee.html ([https](https://dev.mysql.com/doc/refman/5.1/en/connector-j-usagenotes-j2ee.html) result 404).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/column/CassandraClusterConfig.html (301) with 2 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/column/CassandraClusterConfig.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/column/CassandraClusterConfig.html) result 404).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://brettwooldridge.github.io/HikariCP/ with 2 occurrences migrated to:
  https://brettwooldridge.github.io/HikariCP/ ([https](https://brettwooldridge.github.io/HikariCP/) result 200).
* [ ] http://cloud.spring.io/spring-cloud-connectors/spring-cloud-connectors.html with 1 occurrences migrated to:
  https://cloud.spring.io/spring-cloud-connectors/spring-cloud-connectors.html ([https](https://cloud.spring.io/spring-cloud-connectors/spring-cloud-connectors.html) result 200).
* [ ] http://commons.apache.org/proper/commons-lang/javadocs/api-release/index.html?org/apache/commons/lang3/text/StrSubstitutor.html with 1 occurrences migrated to:
  https://commons.apache.org/proper/commons-lang/javadocs/api-release/index.html?org/apache/commons/lang3/text/StrSubstitutor.html ([https](https://commons.apache.org/proper/commons-lang/javadocs/api-release/index.html?org/apache/commons/lang3/text/StrSubstitutor.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/1.1.2.BUILD-SNAPSHOT/api/org/springframework/cloud/service/keyval/RedisConnectionFactoryConfig.html with 3 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/1.1.2.BUILD-SNAPSHOT/api/org/springframework/cloud/service/keyval/RedisConnectionFactoryConfig.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/1.1.2.BUILD-SNAPSHOT/api/org/springframework/cloud/service/keyval/RedisConnectionFactoryConfig.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/index.html?org/springframework/cloud/CloudConnector.html with 2 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/index.html?org/springframework/cloud/CloudConnector.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/index.html?org/springframework/cloud/CloudConnector.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/index.html?org/springframework/cloud/ServiceInfoCreator.html with 2 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/index.html?org/springframework/cloud/ServiceInfoCreator.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/index.html?org/springframework/cloud/ServiceInfoCreator.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/index.html?org/springframework/cloud/service/ServiceConnectorCreator.html with 2 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/index.html?org/springframework/cloud/service/ServiceConnectorCreator.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/index.html?org/springframework/cloud/service/ServiceConnectorCreator.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/index.html?org/springframework/cloud/service/ServiceInfo.html with 2 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/index.html?org/springframework/cloud/service/ServiceInfo.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/index.html?org/springframework/cloud/service/ServiceInfo.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/Cloud.html with 2 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/Cloud.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/Cloud.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/config/java/AbstractCloudConfig.ServiceConnectionFactory.html with 1 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/config/java/AbstractCloudConfig.ServiceConnectionFactory.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/config/java/AbstractCloudConfig.ServiceConnectionFactory.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/PooledServiceConnectorConfig.PoolConfig.html with 5 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/PooledServiceConnectorConfig.PoolConfig.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/PooledServiceConnectorConfig.PoolConfig.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/PooledServiceConnectorConfig.html with 1 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/PooledServiceConnectorConfig.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/PooledServiceConnectorConfig.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/UriBasedServiceInfo.html with 1 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/UriBasedServiceInfo.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/UriBasedServiceInfo.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/document/MongoDbFactoryConfig.html with 2 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/document/MongoDbFactoryConfig.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/document/MongoDbFactoryConfig.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/messaging/RabbitConnectionFactoryConfig.html with 2 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/messaging/RabbitConnectionFactoryConfig.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/messaging/RabbitConnectionFactoryConfig.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/relational/DataSourceConfig.ConnectionConfig.html with 1 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/relational/DataSourceConfig.ConnectionConfig.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/relational/DataSourceConfig.ConnectionConfig.html) result 200).
* [ ] http://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/relational/DataSourceConfig.html with 5 occurrences migrated to:
  https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/relational/DataSourceConfig.html ([https](https://docs.spring.io/autorepo/docs/spring-cloud/current/api/org/springframework/cloud/service/relational/DataSourceConfig.html) result 200).
* [ ] http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/jdbc/datasource/SimpleDriverDataSource.html with 2 occurrences migrated to:
  https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/jdbc/datasource/SimpleDriverDataSource.html ([https](https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/jdbc/datasource/SimpleDriverDataSource.html) result 200).
* [ ] http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/mail/MailSender.html with 2 occurrences migrated to:
  https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/mail/MailSender.html ([https](https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/mail/MailSender.html) result 200).
* [ ] http://example.com with 18 occurrences migrated to:
  https://example.com ([https](https://example.com) result 200).
* [ ] http://github.com/ with 4 occurrences migrated to:
  https://github.com/ ([https](https://github.com/) result 200).
* [ ] http://projects.spring.io/spring-data/ with 2 occurrences migrated to:
  https://projects.spring.io/spring-data/ ([https](https://projects.spring.io/spring-data/) result 200).
* [ ] http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 1 occurrences migrated to:
  https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) result 200).
* [ ] http://www.springframework.org/schema/beans/spring-beans.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* [ ] http://www.vmware.com/download/open_source.html with 1 occurrences migrated to:
  https://www.vmware.com/download/open_source.html ([https](https://www.vmware.com/download/open_source.html) result 200).
* [ ] http://cloudfoundry.org/ with 1 occurrences migrated to:
  https://cloudfoundry.org/ ([https](https://cloudfoundry.org/) result 301).
* [ ] http://plugins.jetbrains.com/plugin/6546 with 1 occurrences migrated to:
  https://plugins.jetbrains.com/plugin/6546 ([https](https://plugins.jetbrains.com/plugin/6546) result 301).
* [ ] http://raw.github.com/ with 4 occurrences migrated to:
  https://raw.github.com/ ([https](https://raw.github.com/) result 301).
* [ ] http://www.springframework.org/schema/cloud/spring-cloud.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/cloud/spring-cloud.xsd ([https](https://www.springframework.org/schema/cloud/spring-cloud.xsd) result 301).
* [ ] http://myapp.com with 1 occurrences migrated to:
  https://myapp.com ([https](https://myapp.com) result 302).

# Ignored
These URLs were intentionally ignored.

* http://www.springframework.org/schema/beans with 4 occurrences
* http://www.springframework.org/schema/cloud with 4 occurrences
* http://www.springframework.org/schema/tool with 2 occurrences
* http://www.w3.org/2001/XMLSchema with 1 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 1 occurrences
2019-03-28 19:46:08 -10:00
Spring Operator
d9160e839b URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 2 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 20 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-22 14:57:45 -05:00
Ashley Stendel
c150d61833 Update version for com.fasterxml.jackson.core:jackson-databind in spring-cloud-cloudfoundry-connector 2019-01-25 08:28:34 -08:00
pidoubleyou
a8eef2bdcb Fix Credentials Encoding 2018-12-14 23:13:37 +01:00
Scott Frederick
a0bf3f11ca Cleanup build. 2018-11-16 17:31:13 -06:00
Scott Frederick
dbf8dfa113 Configure Redis connections to be secure when the rediss:// scheme is detected in the service info. 2018-09-10 13:12:38 -05:00
Scott Frederick
b66b97aa7b Don't URL encode username and password fields for Oracle database. 2018-09-10 12:36:35 -05:00
Scott Frederick
3753bf6f20 Upgrade Jackson dependency to 2.9.5. 2018-09-10 11:26:55 -05:00
Scott Frederick
19fd269770 Merge branch '2.x' to 'master' 2018-05-09 15:44:32 -05: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
d23513bdfa Revert "Shrink Cloud Foundry Connector Footprint" 2017-11-06 10:06:34 -06:00
Ben Hale
f3d76237f9 Shrink Cloud Foundry Connector Footprint
Previously, the Cloud Foundry Connector utilized Jackson for parsing the
VCAP_SERVICES JSON payload.  While Jackson should be the default choice for
most JSON parsing, the fact that the project does not need Object binding
means that it is overkill for the need.  In addition, since whichever JSON
parser is chosen must be included in the distributable JAR and not shared with
the rest of the application (which is likely to have its own version of
Jackson) the size of the Jackson libraries becomes a significant concern.

This change updates the code to use the org.json:json parser and shrinks the
spring-cloud-cloudfoundry-connector from 1.2M to 84K with no difference in
functionality.

[resolves #73]
2017-11-04 10:15:39 -07:00
Scott Frederick
4ddf93c839 Change Cloud Foundry detection for Cassandra to use required credentials fields. Add Cassandra to docs. 2017-10-27 13:11:50 -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
55701034d0 Rename core library to spring-cloud-connectors-core. 2017-10-26 13:25:02 -05:00
Scott Frederick
2528ac2b67 Make all tags comparisons case-insensitive in Cloud Foundry connector. 2017-10-25 16:22:45 -05:00
Scott Frederick
4d8eb54824 Provide a default value for the AMQP port if not provided in the URI. 2017-10-25 16:22:21 -05:00
Scott Frederick
dfe58d51ae Support RabbitMQ URLs with URL-encoded vhost. 2017-10-25 16:13:49 -05:00
Scott Frederick
5896a0b8b1 Make all tags comparisons case-insensitive in Cloud Foundry connector. 2017-10-25 16:01:24 -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
15c43f381a Add service data postprocessor extension point to cf connector. 2017-10-23 12:16:43 -05:00
Mark Paluch
0fed877eba 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-10-20 16:56:02 -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
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
43d8073256 Upgrade dependencies to Spring 5 compatible versions. Require Java 8. 2017-04-10 17:02:03 -05: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
ff2b601d18 Handle missing or empty VCAP_SERVICES environment variable in CloudFoundryConnector without throwing NPE. 2016-10-21 16:19:43 -05:00
Scott Frederick
1790affa29 Update gradle to 2.10. Update versions used in matrixTest. 2016-06-29 22:17:48 -04:00
Ben Klein
d34b3ee86e remove subproject READMEs 2015-12-08 12:10:27 -06:00
Ben Klein
e73d48f597 remove docs from READMEs 2015-12-08 11:31:15 -06:00
Scott Frederick
86780fbc60 Prevent errors when only a JDBC URL is given in Cloud Foundry connectors. 2015-08-21 12:00:01 -05:00
Scott Frederick
6f1b17d12d Provide access to URL fields when jdbcUrl is provided in Cloud Foundry connector. 2015-08-20 18:43:48 -05:00
Scott Frederick
9b4139c8dd Polish SQL Server support and fix unit tests. 2015-07-24 11:13:53 -05:00
GuillermoTantachuco
fb27a51656 Adding tests for MS-SQL/Azure SQL 2015-07-14 10:03:41 -05:00