cf-java-client icon indicating copy to clipboard operation
cf-java-client copied to clipboard

Disable service access not working for all cases

Open abhinavgargin opened this issue 6 years ago • 1 comments
trafficstars

Hi,

I am using disable service access and encountered certain issues. Here are few combinations that are not working.

  1. When I use the following command to enable a particular service plan in a particular org cloudFoundryOperations.serviceAdmin().enableServiceAccess(EnableServiceAccessRequest .builder().serviceName("abc") .servicePlanName("qwerty") .organizationName("org") .build()).block();

and using the following command of disabling particular plan in all orgs cloudFoundryClient.servicePlans().update(UpdateServicePlanRequest .builder().publiclyVisible(false).servicePlanId("123456").build()).block();

Expected output: Plan should be disabled in all organizations Actual Output: Plan is still enabled in "org"

  1. When I use following command to enable a service plan in all orgs cloudFoundryOperations.serviceAdmin().enableServiceAccess(EnableServiceAccessRequest .builder().serviceName("abc") .servicePlanName("qwerty") .build()).block();

and then disable particular plan in all orgs using cloudFoundryOperations.serviceAdmin().disableServiceAccess(DisableServiceAccessRequest .builder().serviceName("abc") .servicePlanName("qwerty").build()).block();

Expected output: Plan should be disabled in all organizations Actual Output: Plan is still enabled in all organizations

abhinavgargin avatar Jul 15 '19 10:07 abhinavgargin

I am leaving this open as a potential bug/area to investigate. It has been a while though, so it's hard to say if this has been resolved in updates since or if this was an issue that is caused by other factors, like CF/CAPI.

If someone is still seeing this behavior, please report with the version of CF and other information from the https://github.com/cloudfoundry/cf-java-client#troubleshooting section. Thanks

dmikusa avatar Jan 18 '22 19:01 dmikusa