Bug 10002

Summary: Upgrade of vlc-plugin-lua overwrites configuration files
Product: Mageia Reporter: Johnny Accot <accot>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED OLD QA Contact:
Severity: minor    
Priority: Normal CC: fundawang, shlomif
Version: CauldronKeywords: NEEDINFO, Triaged
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: vlc-2.0.6-1.mga3.tainted.src.rpm CVE:
Status comment:

Description Johnny Accot 2013-05-06 15:32:33 CEST
Description of problem:

The http lua-based plugin for vlc allows a remote client to connect to vlc using http queries.  When enabling this plugin, it is necessary to customize the file that defines the access list for remote clients.  This is done by specifying in /usr/share/vlc/lua/http/.hosts the addresses that are allowed to connect.

If one customizes this file, the changes are lost when vlc is upgraded or reinstalled.  The file is simply overwritten, with no backup being made.  As of today, it is necessary to change the access file or put back a saved copy of the file by hand.

The same behavior is true for /usr/share/vlc/lua/http/dialogs/.hosts, and maybe otherconfiguration files.

A reinstall or upgrade should preserve the customized file and create the file from the new package as *.rpmorig.

Version-Release number of selected component (if applicable): 2.0.6-1.mga3


How reproducible:
Always reproducible.  Simply reinstall the plugin or upgrade it.

Steps to Reproduce:
1. Uncomment a line in /usr/share/vlc/lua/http/.hosts, e.g. 192.168.0.0/16
2. Execute: urpmi --replacepkgs vlc-plugin-lua
3. Check that the change was lost, with no backup of the file being made.

Reproducible: 

Steps to Reproduce:
Manuel Hiebel 2013-05-07 01:54:32 CEST

Keywords: (none) => Triaged
CC: (none) => fundawang, shlomif

Comment 1 Samuel Verschelde 2015-05-06 20:28:07 CEST
Is this bug still present in Mageia 4 and/or cauldron?

Keywords: (none) => NEEDINFO

Comment 2 Johnny Accot 2015-05-06 20:45:43 CEST
As far as I can tell, the .hosts files I mentioned in the bug report are not packaged anymore.  I guess that the bug can hence be closed.
Comment 3 Johnny Accot 2015-05-06 20:47:04 CEST
(I guess "REVOLVED+OLD" is the appropriate way to close this.)

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

Comment 4 Samuel Verschelde 2015-05-06 20:47:50 CEST
Thanks.