Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure cfenv.service.<serviceName>.enabled=false in application.yaml #231

Closed
Marty850 opened this issue Sep 27, 2023 · 5 comments
Closed
Labels
enhancement New feature or request

Comments

@Marty850
Copy link

Is your feature request related to a problem? Please describe.

We noticed that java-cfenv changes special characters in the password of our jdbc connectionString. Thats why we would like to disable cfenv for that service.

We found the parameter cfenv.service.<serviceName>.enabled=false that is documented here but it is not possible to configure at in a yaml file. Only application.properties works.

Describe the solution you'd like

I would like to have the possibility to disable java-cfenv for a service by using both configuration methods (application.yaml and application.properties)

Describe alternatives you've considered

No response

Additional context

No response

@Marty850 Marty850 added the enhancement New feature or request label Sep 27, 2023
@Marty850
Copy link
Author

I just noticed that it is possible to configure it in application.yaml as well by putting it in the first line and change the = to a :

cfenv.service.<serviceName>.enabled: false

Maybe it's enough to add a hint to the documentation.

@anthonydahanne
Copy link
Member

Hello!

We noticed that java-cfenv changes special characters in the password of our jdbc connectionString.

Just to be sure, it was happening with a DB2 connection string?

Maybe it's enough to add a hint to the documentation.

Yes, that makes sense

anthonydahanne added a commit that referenced this issue Oct 27, 2023
* so that username and password are properly transmitted to the drive
* provide same behavior as Spring SAR/ SCS connector: spring-cloud/spring-cloud-connectors@a8eef2b
@Marty850
Copy link
Author

Hi Anthony,
yes it is a DB2 connection string.

cf-env does a url encoding and the db2 driver cannot deal with that. So cf-env is currently not usable for db2 connections unless you use cfenv.service.<serviceName>.enabled=false as a workaround.

@Marty850
Copy link
Author

Marty850 commented Oct 30, 2023

@anthonydahanne
I noticed your Fix for the URL encoding issue. Can you say when this will be released?

@anthonydahanne
Copy link
Member

today! 3.1.3 is available on central!

https://github.com/pivotal-cf/java-cfenv/releases/tag/v3.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants