XYZ Affair and its consequences