Bug 49665

Summary: registry.info/variables/univention-samba4.cfg: Duplicate "samba/share/home"
Product: UCS Reporter: Philipp Hahn <hahn>
Component: Samba4Assignee: Philipp Hahn <hahn>
Status: CLOSED FIXED QA Contact: Florian Best <best>
Severity: normal    
Priority: P5 CC: best
Version: UCS 4.4Flags: hahn: Patch_Available+
Target Milestone: UCS 4.4-4-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Development Internal What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Bug Depends on:    
Bug Blocks: 49060, 49129, 49683    
Attachments: Fix

Description Philipp Hahn univentionstaff 2019-06-17 12:12:45 CEST
# python3 /usr/sbin/ucr shell
...
configparser.DuplicateSectionError: While reading from '/etc/univention/registry.info/variables/univention-samba4.cfg' [line 241]: section 'samba/share/home' already exists

# grep -nA3 samba/share/home /etc/univention/registry.info/variables/univention-samba4.cfg
91:[samba/share/home]
92-Description[de]=Ist diese Variable auf 'yes' gesetzt, wird das Heimatverzeichnis eines Samba-Benutzers in einer Freigabe mit dem Namen des Benutzers bereitgestellt.
93-Description[en]=If this variable is set to 'yes', the home directory of a Samba user is provided on a share with the name of the user.
94-Type=str
--
241:[samba/share/home]
242-Description[de]=Ist diese Variable auf 'yes' gesetzt, wird das Heimatverzeichnis eines Samba-Benutzers in einer Freigabe mit dem Namen des Benutzers bereitgestellt.
243-Description[en]=If this variable is set to 'yes', the home directory of a Samba user is provided as a share with the name of the user.
244-Type=str

The Python3 parser for ini-files is not as lenient as the Python2 variant.
Comment 1 Philipp Hahn univentionstaff 2019-06-19 11:07:37 CEST
Created attachment 10072 [details]
Fix
Comment 2 Florian Best univentionstaff 2020-07-14 12:52:50 CEST
This was already fixed by Philipp in:

univention-samba4 (8.0.0-31)
16d7176b5240 | Bug #49665 samba: Remove duplicate UCRV
Comment 3 Philipp Hahn univentionstaff 2021-03-19 11:25:45 CET
Releases through Bug #52013
<https://errata.software-univention.de/#/?erratum=4.4x745>