Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-12146

Amster fails to import site config

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 6.0.0
    • None
    • Amster
    • Rank:
      1|hzuud3:

      Description

      Amster fails to import previously exported site configuration.

      amster openam> x --path /tmp/test_export
      Export completed successfully
      amster openam> i --path /tmp/test_export
      Importing directory /tmp/test_export
      Imported /tmp/test_export/global/SetSessionProperties.json
      Imported /tmp/test_export/global/AuthenticationTreesConfiguration.json
      Imported /tmp/test_export/global/Platform.json
      Imported /tmp/test_export/global/AuthenticatorPush.json
      Imported /tmp/test_export/global/Naming.json
      Imported /tmp/test_export/global/RemoteConsentService.json
      Imported /tmp/test_export/global/AgentService.json
      Imported /tmp/test_export/global/RestApis.json
      Imported /tmp/test_export/global/DeviceIDService.json
      Imported /tmp/test_export/global/TransactionAuthentication.json
      Imported /tmp/test_export/global/Json/Global JSON Handler.json
      Imported /tmp/test_export/global/AuditLogging.json
      Imported /tmp/test_export/global/RetryLimitDecision.json
      Imported /tmp/test_export/global/AccountLockout.json
      Imported /tmp/test_export/global/EmailService.json
      Imported /tmp/test_export/global/SupportedIds/agent.json
      Imported /tmp/test_export/global/SupportedIds/agentgroup.json
      Imported /tmp/test_export/global/SupportedIds/agentonly.json
      Imported /tmp/test_export/global/SupportedIds/filteredrole.json
      Imported /tmp/test_export/global/SupportedIds/group.json
      Imported /tmp/test_export/global/SupportedIds/realm.json
      Imported /tmp/test_export/global/SupportedIds/role.json
      Imported /tmp/test_export/global/SupportedIds/user.json
      Imported /tmp/test_export/global/OTPEmailSender.json
      Imported /tmp/test_export/global/Scripting.json
      Imported /tmp/test_export/global/DefaultCtsDataStoreProperties.json
      Imported /tmp/test_export/global/SocialAuthentication.json
      Imported /tmp/test_export/global/Monitoring.json
      Imported /tmp/test_export/global/IdRepositoryUser/amAdmin.json
      Imported /tmp/test_export/global/IdRepositoryUser/anonymous.json
      Imported /tmp/test_export/global/IdRepositoryUser/dsameuser.json
      Imported /tmp/test_export/global/HOTPGenerator.json
      Imported /tmp/test_export/global/DefaultSecurityProperties.json
      Imported /tmp/test_export/global/DashboardInstance/Google.json
      Imported /tmp/test_export/global/DashboardInstance/SalesForce.json
      Imported /tmp/test_export/global/DashboardInstance/ZenDesk.json
      Imported /tmp/test_export/global/DataStoreDecision.json
      Imported /tmp/test_export/global/IDMProvisioning.json
      Imported /tmp/test_export/global/DefaultGeneralProperties.json
      Imported /tmp/test_export/global/ModifyAuthLevel.json
      Imported /tmp/test_export/global/ScriptedDecision.json
      Imported /tmp/test_export/global/Dashboard.json
      Imported /tmp/test_export/global/OTPCollectorDecision.json
      Imported /tmp/test_export/global/SamlV2SoapBinding.json
      Imported /tmp/test_export/global/RadiusServer.json
      Imported /tmp/test_export/global/ChoiceCollector.json
      Imported /tmp/test_export/global/UmaProvider.json
      Imported /tmp/test_export/global/BaseUrlSource.json
      Imported /tmp/test_export/global/Logging.json
      Imported /tmp/test_export/global/UserSelfService.json
      Imported /tmp/test_export/global/RemoveSessionProperties.json
      Imported /tmp/test_export/global/PasswordCollector.json
      Imported /tmp/test_export/global/AuthenticatorOath.json
      Imported /tmp/test_export/global/PolicyConfiguration.json
      Imported /tmp/test_export/global/PushNotification.json
      Imported /tmp/test_export/global/AuthLevelDecision.json
      Imported /tmp/test_export/global/CommonFederationConfiguration.json
      Imported /tmp/test_export/global/User.json
      Imported /tmp/test_export/global/SessionPropertyWhiteList.json
      Imported /tmp/test_export/global/ZeroPageLoginCollector.json
      Imported /tmp/test_export/global/SamlV2ServiceConfiguration.json
      Imported /tmp/test_export/global/InnerTreeEvaluator.json
      Imported /tmp/test_export/global/UsernameCollector.json
      Imported /tmp/test_export/global/ValidationService.json
      Imported /tmp/test_export/global/LegacyUserSelfService.json
      Imported /tmp/test_export/global/MultiFederationProtocol.json
      Imported /tmp/test_export/global/Globalization.json
      Imported /tmp/test_export/global/OTPSMSSender.json
      Imported /tmp/test_export/global/DefaultSessionProperties.json
      Imported /tmp/test_export/global/DefaultSdkProperties.json
      Imported /tmp/test_export/global/DefaultAdvancedProperties.json
      Imported /tmp/test_export/global/Session.json
      [main] ERROR org.forgerock.openam.sdk.http.DefaultErrorHandler - Unhandled client error: [Status: 400 Bad Request]
      Imported /tmp/test_export/global/Servers/01.json
      Imported /tmp/test_export/global/Servers/01/GeneralProperties.json
      Imported /tmp/test_export/global/Servers/01/AdvancedProperties.json
      Imported /tmp/test_export/global/Servers/01/DirectoryConfiguration.json
      Imported /tmp/test_export/global/Servers/01/SessionProperties.json
      Imported /tmp/test_export/global/Servers/01/CtsDataStoreProperties.json
      Imported /tmp/test_export/global/Servers/01/SecurityProperties.json
      Imported /tmp/test_export/global/Servers/01/SdkProperties.json
      Imported /tmp/test_export/global/Servers/01/UmaDataStoreProperties.json
      Imported /tmp/test_export/global/ScriptTypes/AUTHENTICATION_CLIENT_SIDE.json
      Imported /tmp/test_export/global/ScriptTypes/AUTHENTICATION_SERVER_SIDE.json
      Imported /tmp/test_export/global/ScriptTypes/AUTHENTICATION_TREE_DECISION_NODE.json
      Imported /tmp/test_export/global/ScriptTypes/OIDC_CLAIMS.json
      Imported /tmp/test_export/global/ScriptTypes/POLICY_CONDITION.json
      Imported /tmp/test_export/global/ScriptingEngineConfiguration/AUTHENTICATION_SERVER_SIDE.json
      Imported /tmp/test_export/global/ScriptingEngineConfiguration/AUTHENTICATION_TREE_DECISION_NODE.json
      Imported /tmp/test_export/global/ScriptingEngineConfiguration/OIDC_CLAIMS.json
      Imported /tmp/test_export/global/ScriptingEngineConfiguration/POLICY_CONDITION.json
      Imported /tmp/test_export/global/GlobalScripts/01e1a3c0-038b-4c16-956a-6c9d89328cff.json
      Imported /tmp/test_export/global/GlobalScripts/157298c0-7d31-4059-a95b-eeb08473b7e5.json
      Imported /tmp/test_export/global/GlobalScripts/36863ffb-40ec-48b9-94b1-9a99f71cc3b5.json
      Imported /tmp/test_export/global/GlobalScripts/703dab1a-1921-4981-98dd-b8e5349d8548.json
      Imported /tmp/test_export/global/GlobalScripts/7e3d7067-d50f-4674-8c76-a3e13a810c33.json
      Imported /tmp/test_export/global/GlobalScripts/9de3eb62-f131-4fac-a294-7bd170fd4acb.json
      Imported /tmp/test_export/global/GlobalScripts/c827d2b4-3608-4693-868e-bbcf86bd87c7.json
      Imported /tmp/test_export/global/OAuth2Provider.json
      Imported /tmp/test_export/global/IdRepository.json
      Imported /tmp/test_export/global/SaeModule.json
      Imported /tmp/test_export/global/ActiveDirectoryModule.json
      Imported /tmp/test_export/global/OathModule.json
      Imported /tmp/test_export/global/AnonymousModule.json
      Imported /tmp/test_export/global/SocialAuthTwitterModule.json
      Imported /tmp/test_export/global/LdapModule.json
      Imported /tmp/test_export/global/SocialAuthOpenIDModule.json
      Imported /tmp/test_export/global/OpenIdConnectModule.json
      Imported /tmp/test_export/global/DeviceIdMatchModule.json
      Imported /tmp/test_export/global/OAuth2Module.json
      Imported /tmp/test_export/global/DataStoreModule.json
      Imported /tmp/test_export/global/PersistentCookieModule.json
      Imported /tmp/test_export/global/MembershipModule.json
      Imported /tmp/test_export/global/JdbcModule.json
      Imported /tmp/test_export/global/FederationModule.json
      Imported /tmp/test_export/global/EdgeAuthenticationModule.json
      Imported /tmp/test_export/global/SocialAuthWeChatMobileModule.json
      Imported /tmp/test_export/global/SocialAuthInstagramModule.json
      Imported /tmp/test_export/global/HttpBasicModule.json
      Imported /tmp/test_export/global/MsisdnModule.json
      Imported /tmp/test_export/global/SocialAuthOAuth2Module.json
      Imported /tmp/test_export/global/SocialAuthVKontakteModule.json
      Imported /tmp/test_export/global/AmsterModule.json
      Imported /tmp/test_export/global/EdgeRegistrationModule.json
      Imported /tmp/test_export/global/CertificateModule.json
      Imported /tmp/test_export/global/WindowsNtModule.json
      Imported /tmp/test_export/global/ScriptedModule.json
      Imported /tmp/test_export/global/SocialAuthWeChatModule.json
      Imported /tmp/test_export/global/AuthenticatorPushRegistrationModule.json
      Imported /tmp/test_export/global/Saml2Module.json
      Imported /tmp/test_export/global/DeviceIdSaveModule.json
      Imported /tmp/test_export/global/WindowsDesktopSsoModule.json
      Imported /tmp/test_export/global/HotpModule.json
      Imported /tmp/test_export/global/RadiusModule.json
      Imported /tmp/test_export/global/AuthenticatorPushModule.json
      Imported /tmp/test_export/global/JwtProofOfPossessionModule.json
      Imported /tmp/test_export/global/AuthenticatorOathModule.json
      Imported /tmp/test_export/global/AdaptiveRiskModule.json
      Imported /tmp/test_export/global/AuthenticationChains.json
      Imported /tmp/test_export/global/Authentication.json
      Imported /tmp/test_export/global/Realms/root.json
      Imported /tmp/test_export/realms/root/DataStoreDecision/e5ec495a-2ae2-4eca-8afb-9781dea04170.json
      Imported /tmp/test_export/realms/root/PasswordCollector/4d46c420-999c-435a-ae34-0eca29876fe2.json
      Imported /tmp/test_export/realms/root/PolicyConfiguration.json
      Imported /tmp/test_export/realms/root/AuthTree/Example.json
      Imported /tmp/test_export/realms/root/ZeroPageLoginCollector/70052da0-ef9e-4767-b27e-df831189c9f0.json
      Imported /tmp/test_export/realms/root/UsernameCollector/92c44010-e1e9-4a4a-8a16-8278d661d68d.json
      Imported /tmp/test_export/realms/root/Scripts/703dab1a-1921-4981-98dd-b8e5349d8548.json
      Imported /tmp/test_export/realms/root/Scripts/01e1a3c0-038b-4c16-956a-6c9d89328cff.json
      Imported /tmp/test_export/realms/root/Scripts/c827d2b4-3608-4693-868e-bbcf86bd87c7.json
      Imported /tmp/test_export/realms/root/Scripts/36863ffb-40ec-48b9-94b1-9a99f71cc3b5.json
      Imported /tmp/test_export/realms/root/Scripts/9de3eb62-f131-4fac-a294-7bd170fd4acb.json
      Imported /tmp/test_export/realms/root/Scripts/7e3d7067-d50f-4674-8c76-a3e13a810c33.json
      Imported /tmp/test_export/realms/root/Scripts/157298c0-7d31-4059-a95b-eeb08473b7e5.json
      Imported /tmp/test_export/realms/root/IdRepository.json
      Imported /tmp/test_export/realms/root/OpenDJ/OpenDJ.json
      Imported /tmp/test_export/realms/root/SaeModule/SAE.json
      Imported /tmp/test_export/realms/root/OathModule/OATH.json
      Imported /tmp/test_export/realms/root/LdapModule/LDAP.json
      Imported /tmp/test_export/realms/root/DataStoreModule/DataStore.json
      Imported /tmp/test_export/realms/root/DataStoreModule/PyforgeModule.json
      Imported /tmp/test_export/realms/root/FederationModule/Federation.json
      Imported /tmp/test_export/realms/root/AmsterModule/Amster.json
      Imported /tmp/test_export/realms/root/HotpModule/HOTP.json
      Imported /tmp/test_export/realms/root/AuthenticationChains/amsterService.json
      Imported /tmp/test_export/realms/root/AuthenticationChains/ldapService.json
      Imported /tmp/test_export/realms/root/AuthenticationChains/pyforgeChain.json
      Imported /tmp/test_export/realms/root/ResourceTypes/20a13582-1f32-4f83-905f-f71ff4e2e00d.json
      Imported /tmp/test_export/realms/root/ResourceTypes/76656a38-5f8e-401b-83aa-4ccb74ce88d2.json
      Imported /tmp/test_export/realms/root/Applications/iPlanetAMWebAgentService.json
      Imported /tmp/test_export/realms/root/Applications/sunAMDelegationService.json
      Imported /tmp/test_export/realms/root/Authentication.json
      ---------------------------------------------------------------------
         IMPORT ERRORS
      ---------------------------------------------------------------------
      Failed to import /tmp/test_export/global/Sites/site1.json  : 400 Bad Request: Only url, secondaryURLs and _id are valid in write
      amster openam>
      

      To reproduce issue, do following:
      1. Setup AM
      2. Configure site
      3. Export whole configuration with amster
      4. Import configuration and observe error message in site.json

        Attachments

          Issue Links

            Activity

              People

              Unassigned Unassigned
              pavel.balcarek Pavel Balcárek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: