[#OPENAM-3465] Parsing output of Embedded OpenDJ dsconfig list

advertisement
[OPENAM-3465] Parsing output of Embedded OpenDJ dsconfig listreplication-server command fails due to change since v2.6.0 Created: 18/Dec/13
Updated:
17/Apr/14 Resolved: 02/Jan/14
Status:
Project:
Component/s:
Affects
Version/s:
Fix Version/s:
Resolved
OpenAM
embedded
10.1.0-Xpress, 11.0.0
Type:
Reporter:
Resolution:
Labels:
Remaining
Estimate:
Time Spent:
Original
Estimate:
Bug
Mark de Reeper
Fixed
release-notes
Not Specified
QA Assignee:
Cases:
Mark Powell
2165
11.0.1, 12.0.0
Priority:
Assignee:
Votes:
Major
Mark de Reeper
0
Not Specified
Not Specified
Description
The output of the dsconfig list-replication-server command has changed in v2.6.0 of OpenDJ
which causes an error to be logged by OpenAM as it does not correctly parse the changed
output.
The error is:
----- 2013-12-10 21:29:02,768 [ServerService Thread Pool -- 121] [ ] [ ] [ ]
ERROR amSetupServlet - EmbeddedOpenDS:syncReplication:cmd stderr:The value
"50899" is not a valid value for the Replication Server property
"replication-server" which has the following syntax: HOST:PORT - A host name
followed by a ":" and a port number.
Command being run by OpenAM:
./dsconfig -D "cn=directory manager" -w password list-replication-server -provider-name "Multimaster Synchronization" --property replication-server -property replication-port --no-prompt --trustAll
OLD
Replication Server : Type
: replication-server
:
replication-port
-------------------:---------:---------------------------------------------:----------------replication-server : generic : dj1.example.com:58989, dj2.example.com:50889 :
50889
NEW
Replication Server : replication-server
:
replication-port
-------------------:----------------------------------------------:---------------replication-server : dj1.example.com:50889, dj2.example.com:58989 : 50889
The fix is to check for the presence of Type in the output and adjust the number of items to
ignore as required.
Comments
Comment by Mark de Reeper [ 20/Dec/13 ]
This also impacts the output of the dsconfig list-replication-domains command too.
Comment by Mark de Reeper [ 02/Jan/14 ]
Fixed in r7659 trunk and r7660 11.0.x
Comment by Mark Powell [ 17/Apr/14 ]
I have verified this is fixed in 11.0.1
---------------------------Details of the verification:
1) Set up:
OpenAM 11.0.0 with embedded OpenDJ and Replication Server
OpenAM 11.0.1 with embedded OpenDJ and Replication Server
2) Testing:
Test 1: For 11.0.0, run the dsconfig command (above) and then check for the error (above) in
the Configuration debug file.
Test 2: For 11.0.1, run the dsconfig command (above) and confirm the absence of the error in
the Configuration debug file.
3) Results:
Test 1 showed the error as expected in 11.0.0
Test 2 did not show the error in 11.0.1
Generated at Tue Feb 09 13:26:43 GMT 2016 using JIRA 6.3.9#6339sha1:46fa26140bf81c66e10e6f784903d4bfb1a521ae.
Download