Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-2862

Agent throws error if OpenSSOAgentConfiguration.properties is not there when in central config mode.

    XMLWordPrintable

Details

    Description

      Delete, OpenSSOAgentConfiguration.properties and try and access the agent application while the centralized profile is active. 

      Despite not being used it throws a strace about bootstrap. 

      org.forgerock.agents.exceptions.FatalConfigurationException: Failed to get absolute file path for OpenSSOAgentBootstrap.properties com.sun.identity.agents.arch.AgentConfiguration.setPropertyFilePathFromClasspath(AgentConfiguration.java:1232) com.sun.identity.agents.arch.AgentConfiguration.setPropertyFilePaths(AgentConfiguration.java:1199) com.sun.identity.agents.arch.AgentConfiguration.bootStrapClientConfiguration(AgentConfiguration.java:1311) com.sun.identity.agents.arch.AgentConfiguration.firstTimeConfiguration(AgentConfiguration.java:1745) com.sun.identity.agents.filter.AmAgentFilter.initialise(AmAgentFilter.java:178) com.sun.identity.agents.filter.AmAgentFilter.doFilter(AmAgentFilter.java:73)

      You can always null the file to bypass this, but it's an easy enough fix in reality if people want it completely off their system. 

      Looks it comes from where we check both the bootStrap and the localConfigFile and if can't find either, throw an error. 
       

      if (isFileValid(bootstrapFile) &&isFileValid(localConfigFile)) { bootstrapPropertiesFilePath = bootstrapFile; localConfigPropertiesFilePath = localConfigFile; return; }

       
       

      Attachments

        Activity

          People

            tony.bamford Tony Bamford
            jeremy.cocks Jeremy Cocks
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: