How to remove tenants in WSO2 Identity Server?

In version 4.6.0 we can’t delete thetes through the interface, disable it. However, I see that in the TenantMgtAdminService we use the deleteTenant method.

I tried to call this service, but I am getting an error. From the magazines he has:

{org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService} - Error deleting tenant with domain: test7.tenant and tenant id: 136. {org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService} 
java.lang.NullPointerException 
at org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService.deleteTenant(TenantMgtAdminService.java:520) 

If you look at the source code, I think this may be a defect, since the null pointer exception is apparently caused by an attempt to access the “payment service” on line 520.

So, I am wondering if I can set up my tenant so that this billing service is not zero or is there some other workaround?

thank

+4
source share
1 answer

deleteTenant RemoteTenantManagerService .;) .

+4

Source: https://habr.com/ru/post/1539804/


All Articles