-
Notifications
You must be signed in to change notification settings - Fork 317
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
Update Environment Variables call is not able to delete Environment Variable v3 #1203
Comments
Hello @anthonydahanne , @cf-buildpacks-eng , @dmikusa I am also not able to delete the environment variable using the call. cloudFoundryClient.applicationsV3() |
hello! |
Thank you for your prompt response, @anthonydahanne The provided code snippet for the v2 API worked successfully: However, when we attempted to use the v3 API with similar logic, it failed. For reference, I tested the v3 API directly using Postman, referencing this link, and it succeeded by sending null in the payload request body. However, the same approach failed when using the cf-java-client library. Could you please help? incase if we are missing something FYI: I have added the latest jar of |
Hello @anthonydahanne Thank you in advance! |
see also #1232 . This might be the same issue of the ObjectMapper not serializing null-Objects. |
If a null value is sent in UpdateApplicationEnvironmentVariableRequest for ApplicationsV3().updateEnvironmentVariables, it does not delete the variable form the application. It even does not changes the value of the variable.
The text was updated successfully, but these errors were encountered: