I get the error
The svySecurityExample requires svySecurity version 1.3.0
However the version loaded is 1.5.0
The console errors are:
- Code: Select all
WARN com.servoy.j2db.util.Debug - Permission "Administrators" is no longer found within internal security settings.
at K:\ServoySecurityExample\svySecurity\svySecurity.js:2785 (logWarning)
at K:\ServoySecurityExample\svySecurity\svySecurity.js:2594 (syncPermissions)
at K:\ServoySecurityExample\svySecurity\svySecurity.js:3321
at K:\ServoySecurityExample\svySecurity\svySecurity.js:3319
at K:\ServoySecurityExample\svySecurityExampleLogin\svySecExLoginDeepLink.js:24 (onSolutionOpenLogin)
ERROR com.servoy.j2db.util.Debug - The svySecurityExample requires svySecurity version 1.5.0
at K:\ServoySecurityExample\svySecurityExampleShared\svySecExAppHelper.js:50 (log)
at K:\ServoySecurityExample\svySecurityExampleShared\svySecExAppHelper.js:38 (logError)
at K:\ServoySecurityExample\svySecurityExampleShared\svySecExAppMgr.js:470 (onError)
The code is:
- Code: Select all
if (scopes.svySecurity.getVersion() != scopes.svySecExAppMgr.REQUIRED_SVYY_SECURITY_VERSION) {
throw new Error('The svySecurityExample requires svySecurity version ' + scopes.svySecExAppMgr.REQUIRED_SVYY_SECURITY_VERSION);
}
And the REQUIRED_SVYY_SECURITY_VERSION was set to 1.3.0
Changing it to 1.5.0 gave same result.
Further checks show that the method: scopes.svySecurity.getVersion() is:
- Code: Select all
function getVersion() {
return application.getVersionInfo()['svySecurity'];
}
The return value is null.
So not really a version issue then?
It might all be related to the Permissions not found Error?
The "User and Group security" under resources is not allowing me to inspect the settings. Is that normal?
How can I set up "example" group and user settings?
This all seems rather confusing!
Does the example need upgrading due to version 1.5.0 and recent changes (2021.04.07 webinar about tokens, sso etc)?