#3167 ini_config_augment: merge_flags detect behavior incorrect
Closed: fixed 6 years ago Opened 6 years ago by cipherboy.

This happens when a config section is duplicated between a config file and a config directory (either with the same or different contents).

If ERROR/DETECT are set in merge_flags or collision_flags on ini_config_augment, error=17 is returned from ini_aug_apply, which causes the error_list to be discarded in ini_config_augment. When MERGE/PRESERVE/OVERWRITE are instead set as flags (on merge_flags and collision_flags in various combinations), error_list is empty as merging happens silently. Thus it is impossible to determine what the offending file or section is.


If this ticket is blocker with high priority then it would be good to provide patch.
Because most of contributors are busy with other projects.

Indeed. A good catch. Let me know, I will review the patch when available.

Metadata Update from @jhrozek:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1469759

6 years ago

Metadata Update from @mzidek:
- Custom field component adjusted to None
- Custom field selected adjusted to None
- Custom field type adjusted to None
- Custom field version adjusted to None

6 years ago

Metadata Update from @mzidek:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata