Skip to content

Fix Missing GUID in CloudController Application Type ( V8) #3552

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

Open
wants to merge 2 commits into
base: v8
Choose a base branch
from

Conversation

dilipmighty245
Copy link

Description of the Change

  • This PR ensures that the Application struct in resources/application.go correctly unmarshals the guid field from the Cloud Controller response JSON. Previously, although the GUID field was defined in the struct, it was not being populated in the UnmarshalJSON method.This caused the Application.GUID field to remain empty during deserialization, potentially impacting downstream logic that relies on application GUIDs for identification or operations.

  • The fix adds a.GUID = ccApp.GUID in the custom UnmarshalJSON method to correctly populate the GUID.

Why Is This PR Valuable?

  • Fixes a subtle but critical bug where Application.GUID was always empty when unmarshalled.
  • Enables reliable use of the GUID across CLI commands, plugins, and consumers of cfclient.
  • Supports automation, scripting, and debugging workflows that depend on accessing the GUID field.

Applicable Issues

No linked GitHub issue yet.

How Urgent Is The Change?

Moderately urgent – this fix is important for correct behaviour, especially in automated or programmatic usage of the CF CLI. While not breaking existing commands, it silently fails to expose critical application metadata. One of my test case is failing as I leverage app GUID.

Other Relevant Parties

  • Developers and teams building CF CLI plugins
  • Users scripting against CF CLI or relying on its JSON output
  • Platform operators debugging apps using CLI tooling

Copy link

linux-foundation-easycla bot commented Jul 18, 2025

CLA Not Signed

@dilipmighty245 dilipmighty245 changed the title Fix Missing GUID in CloudController Application Type Fix Missing GUID in CloudController Application Type ( V8) Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant