Fixed getEncryptedSysAdminToken

This commit is contained in:
Luca Frosini 2022-12-06 15:07:19 +01:00
parent 527e418e16
commit f8c9033f3c
1 changed files with 8 additions and 1 deletions

View File

@ -49,7 +49,14 @@ public class FacetBasedISServiceCatalogueConfiguration extends ServiceCatalogueC
@JsonGetter(value=SYS_ADMIN_TOKEN_KEY)
public String getEncryptedSysAdminToken() {
return getSysAdminToken();
if(encryptedSysAdminToken==null) {
try {
facetBasedISConfigurationProxy.setCkanServiceInfo(this);
} catch (Exception e) {
throw new InternalServerErrorException(e);
}
}
return encryptedSysAdminToken;
}
@JsonGetter(value = CKAN_DB_KEY)