Bug 24517

Summary: Hiawatha upgrade overwrites config files under /etc/hiawatha/
Product: Mageia Reporter: Jani Välimaa <jani.valimaa>
Component: RPM PackagesAssignee: QA Team <qa-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: rolfpedersen, sysadmin-bugs, tmb
Version: 6Keywords: advisory, validated_update
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: MGA6-64-OK
Source RPM: hiawatha-10.8.4-1.mga6 CVE:
Status comment:

Description Jani Välimaa 2019-03-15 13:14:33 CET
User modified config files under /etc/hiawatha/ gets overwritten when updating.
Comment 1 Jani Välimaa 2019-03-15 13:30:30 CET
Should be fixed with hiawatha-10.8.4-1.1.mga6 in core/udpates_testing.

Marked /etc/hiawatha/* with %config(noreplace) in .spec.

Assignee: bugsquad => qa-bugs

Comment 2 Rolf Pedersen 2019-03-15 15:43:01 CET
[rolf@d90d7 ~]$ sudo urpmi http://mirrors.kernel.org/mageia/distrib/6/x86_64/media/core/updates_testing/hiawatha-10.8.4-1.1.mga6.x86_64.rpm


installing hiawatha-10.8.4-1.1.mga6.x86_64.rpm from /var/cache/urpmi/partial
Preparing...                     #############################################################
      1/1: hiawatha              #############################################################
      1/1: removing hiawatha-10.8.4-1.mga6.x86_64
                                 #############################################################
[rolf@d90d7 ~]$ sudo service hiawatha restart
Redirecting to /bin/systemctl restart hiawatha.service
[rolf@d90d7 ~]$ less /etc/hiawatha/hiawatha.conf
[rolf@d90d7 ~]$

This version did not overwrite hiawatha.conf and websites seem intact.
Thanks.

CC: (none) => rolfpedersen

Comment 3 Thomas Backlund 2019-03-15 17:27:39 CET
Setting OK based on test in comment 2.

Flusihing out fast to protect systems that has not installed last update yet.

Advisory:

type: bugfix
subject: Updated hiawatha packages fixes config file protection
src:
  6:
   core:
     - hiawatha-10.8.4-1.1.mga6
description: |
  This update fixes an issue where customized configs gets overwritten on update.
references:
 - https://bugs.mageia.org/show_bug.cgi?id=24517

Keywords: (none) => advisory, validated_update
Whiteboard: (none) => MGA6-64-OK
CC: (none) => tmb, sysadmin-bugs

Comment 4 Mageia Robot 2019-03-15 17:57:05 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2019-0023.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED