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

Log service plan visibility on create or update service instances #4230

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kathap
Copy link
Contributor

@kathap kathap commented Feb 21, 2025

Enhancement of #4230.

For case 1 and 2 a log info is additionally added to have it easier to find the root cause when users get 422 CF-UnprocessableEntity error. Due to security reasons, this is just added as log info and not as error message.

@kathap kathap marked this pull request as draft February 21, 2025 11:12
@kathap kathap marked this pull request as ready for review February 24, 2025 13:10

def service_plan_not_visible_to_user!(service_plan)
user = VCAP::CloudController::SecurityContext.current_user
logger.info("Service Plan with guid '#{service_plan.guid}' and id '#{service_plan.id}' is not visible in current org to user with guid '#{user.guid}'.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'in current org' is not correct here as the user can see the plan if he has access to it in any org

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.

2 participants