Bug 143291
Summary: | system-config-samba screws smb.conf if share is modified | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Timms <dtimms> |
Component: | system-config-samba | Assignee: | Nils Philippsen <nphilipp> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-01-03 22:52:58 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
David Timms
2004-12-18 05:31:31 UTC
8. may be useful to note file modification time and warn user that another program edited the config file between loading and preparing to save the config; how is this situation normally handled ? (Manually removing the offending lines and fixing the service def, while s-c-s is still open is lost by s-c-s if it updates the .conf. Oh my, this was a real bugger. To get this right I had to revamp the whole smb.conf parsing because the old stuff was real spaghetti code. Once it's available from updates/testing, please check extensively whether system-config-samba-1.2.23-0.fc3.1 fixes your problem (it should), whether it still works well as whole and report back here -- I checked all cases I could think of (adding, modifying, deleting shares) but may have missed some corner cases. For 8. please open an RFE as a separate BZ entry. Happy new year! system-config-samba-1.2.23-1.noarch.rpm (from redhat development): http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/Fedora/RPMS/ Changing the folder name successfully changes the folder name in the correct part of smb.conf, and does not add the folder line at the top of smb.conf :) Delete and new work OK, along with read only, and users, ie no other oopses. erased all shares and checked OK. add new shares from scratch, also OK. Probs: 1. Doesn't remove the folder lines that the previous s-c-s added to the start of smb.conf. This would make the fix a no brainer for linux users unfamiliar with config file editing. ie fixes the fault generated by the previous version. Although, it doesn't seem to do any harm :) 2. I ran it from terminal, and get the following dep warnings, not sure how hard to change the code to eliminate these ; ( /usr/share/system-config-samba/mainWindow.py:116: DeprecationWarning: use gtk.UIManager item_fac = gtk.ItemFactory(gtk.MenuBar, "<main>", accel_group) /usr/share/system-config-samba/mainWindow.py:141: DeprecationWarning: button = self.toolbar.insert_stock('gtk-add', _("Add a samba share"), None, self.onNewButtonClicked, None, 0) /usr/share/system-config-samba/mainWindow.py:146: DeprecationWarning: self.properties_button = self.toolbar.insert_stock('gtk-properties', _("Edit the properties of the selected directory"), None, self.onPropertiesButtonClicked, None, 1) /usr/share/system-config-samba/mainWindow.py:151: DeprecationWarning: self.delete_button = self.toolbar.insert_stock('gtk-delete', _("Delete the selected directory"), None, self.onDeleteButtonClicked, None, 2) /usr/share/system-config-samba/mainWindow.py:156: DeprecationWarning: self.toolbar.insert_stock('gtk-help', _("View help"), None, self.onHelpClicked, None, 3) 3. Changing the folder value for an existing share causes the share name to change. The share name changes into the main s-c-s screen (Samba Server Configuration), but does not apply the directory name change. :( (Restarting s-c-s does fix this). 4. RFE - click (or maybe double click - depending on nautilus properties!) the share in the share list could open the share properties dialog directly. Hope this helps. Be sure to use 1.2.24 if you want to set global preferences ;-). 1. I don't think I want to go down the path that is called "magically fixing broken config files", even if I broke it in the first place ;-). Though a nice dialog box telling the user that there is an error on line xyz in smb.conf, eventually with a button to launch a text editor would be nice, so if you want to file an RFE for it... 2. dupe of bug #134367 3. Please open a new bug for this ("Inconsistent UI when changing path on shares", just copy and paste the paragraph (I wouldn't ask that if it weren't that late here, but I don't want to lose track of it). Thanks. 4. This has been on my mind for quite a while, so you shouldn't need to open an RFE for it ;-). I think we can agree that the original bug is solved, that leaves the UI inconsistency one and perhaps a few RFEs. TIA for filing them :-P. |