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

Uppercase characters in server URL hostnames break embedded replication

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 11.0.3, 12.0.2, 13.0.0
    • Fix Version/s: 13.5.0
    • Component/s: embedded
    • Labels:
    • Support Ticket IDs:

      Description

      If the following are true:

      1) Embedded OpenDJ is used
      2) The system has more than one OpenAM server
      3) Uppercase characters are present in one or more OpenAM server URLs

      Then when OpenAM does the embedded OpenDJ replication checks, the output from OpenDJ will have hostnames in lowercase and these are case sensitive matched against hostnames from server URLs.

      These will not match and OpenAM will think it needs to remove valid servers from the replication configuration. After a couple of server restarts OpenAM will be in a state where replication between servers is broken.

      The following messages may be seen in the Configuration debug log:

      amSetupServlet:01/22/2016 04:46:58:516 PM GMT: Thread[localhost-startStop-1,5,main]
      EmbeddedOPenDS:syncReplication:start processing.
      amSetupServlet:01/22/2016 04:46:58:520 PM GMT: Thread[localhost-startStop-1,5,main]
      EmbeddedOpenDS:syncReplication:exec dsconfig:-p 4444 -h localhost -D cn=directory manager -w **** list-replication-server --provider-name Multimaster Synchronization --property replication-server --property replication-port --no-prompt --trustAll
      amSetupServlet:01/22/2016 04:46:59:614 PM GMT: Thread[localhost-startStop-1,5,main]
      EmbeddedOpenDS:syncReplication: stderr is not empty:
      amSetupServlet:01/22/2016 04:46:59:615 PM GMT: Thread[localhost-startStop-1,5,main]
      EmbeddedOpenDS:syncReplication:Execute:-p 4444 -h localhost -D cn=directory manager -w **** --no-prompt --trustAll set-replication-server-prop --provider-name Multimaster Synchronization --remove replication-server:sp1.fedexample.com:50889 --remove replication-server:sp2.fedexample.com:58989
      amSetupServlet:01/22/2016 04:46:59:810 PM GMT: Thread[localhost-startStop-1,5,main]
      EmbeddedOpenDS:syncReplication:Result:
      amSetupServlet:01/22/2016 04:46:59:810 PM GMT: Thread[localhost-startStop-1,5,main]
      EmbeddedOpenDS:syncReplication:Domains:started
      amSetupServlet:01/22/2016 04:46:59:810 PM GMT: Thread[localhost-startStop-1,5,main]
      EmbeddedOpenDS:syncReplication:exec dsconfig:-p 4444 -h localhost -D cn=directory manager -w **** list-replication-domains --provider-name Multimaster Synchronization --property replication-server --no-prompt --trustAll
      amSetupServlet:01/22/2016 04:46:59:988 PM GMT: Thread[localhost-startStop-1,5,main]
      EmbeddedOpenDS:syncRepl:domain=cn=admin data replservers=sp1.fedexample.com:50889, sp2.fedexample.com:58989
      amSetupServlet:01/22/2016 04:46:59:988 PM GMT: Thread[localhost-startStop-1,5,main]
      EmbeddedOpenDS:syncReplication:Execute:-p 4444 -h localhost -D cn=directory manager -w **** --no-prompt --trustAll set-replication-domain-prop --provider-name Multimaster Synchronization --domain-name cn=admin data --remove replication-server:sp1.fedexample.com:50889 --remove replication-server:sp2.fedexample.com:58989
      amSetupServlet:01/22/2016 04:47:00:098 PM GMT: Thread[localhost-startStop-1,5,main]
      ERROR: EmbeddedOpenDS:syncRepl:stderr=The Replication Domain property "replication-server" is mandatory and must be
      specified
      

      I believe this is also the cause of this unsolved thread dating back to OpenSSO 8: https://java.net/projects/opensso/lists/users/archive/2009-09/message/297

        Attachments

          Activity

            People

            • Assignee:
              ian.packer Ian Packer [X] (Inactive)
              Reporter:
              ian.packer Ian Packer [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: