By: Chee Chong Low Account Admin 04 Oct 2022 at 10:34 p.m. CDT

3 Responses
Chee Chong Low gravatar
We just installed version 4.4.1 and encountered loading custom scripts - passport_saml and super_gluu. ***ImportError: cannot import name EncryptionService*** The error came from this line in the scripts: `from org.gluu.oxauth.service import EncryptionService` Upon checking the source code in GitHub, the class has been moved to `org.gluu.oxauth.service.common`. See: https://github.com/GluuFederation/oxAuth/blob/master/common/src/main/java/org/gluu/oxauth/service/common/EncryptionService.java

By Mohib Zico Account Admin 04 Oct 2022 at 11:11 p.m. CDT

Mohib Zico gravatar
Hello Chee Chong, That's right. Here is declared libs from 4.4.1 SuperGluu I see: ``` from com.google.android.gcm.server import Sender, Message from com.notnoop.apns import APNS from java.util import Arrays from org.apache.http.params import CoreConnectionPNames from org.gluu.service.cdi.util import CdiUtil from org.gluu.oxauth.security import Identity from org.gluu.model.custom.script.type.auth import PersonAuthenticationType from org.gluu.oxauth.model.config import ConfigurationFactory from org.gluu.oxauth.service import AuthenticationService, SessionIdService from org.gluu.oxauth.service.fido.u2f import DeviceRegistrationService from org.gluu.oxauth.service.net import HttpService from org.gluu.oxauth.util import ServerUtil from org.gluu.util import StringHelper from org.gluu.oxauth.service.common import EncryptionService, UserService from org.gluu.service import MailService from org.gluu.oxauth.service.push.sns import PushPlatform, PushSnsService from org.gluu.oxnotify.client import NotifyClientFactory from java.util import Arrays, HashMap, IdentityHashMap, Date from java.time import ZonedDateTime from java.time.format import DateTimeFormatter ```

By Chee Chong Low Account Admin 05 Oct 2022 at 1:21 a.m. CDT

Chee Chong Low gravatar
Hi Zico, My bad. I was of the impression that the shipped scripts from version 4.4.1 were having wrong import. On further investigation, it was due to our migration of old scripts into version 4.4.1 that was causing the issue.

By Mohib Zico Account Admin 06 Oct 2022 at 12:29 p.m. CDT

Mohib Zico gravatar
Got it, Thanks for confirmation. Closing this ticket then.