[tahoe-lafs-trac-stream] [tahoe-lafs] #1684: duplicate settings in tahoe.cfg should produce an error

tahoe-lafs trac at tahoe-lafs.org
Mon Mar 12 18:03:22 UTC 2012


#1684: duplicate settings in tahoe.cfg should produce an error
-------------------------------------------------+-------------------------
 Reporter:  davidsarah                           |          Owner:
     Type:  defect                               |         Status:  new
 Priority:  major                                |      Milestone:
Component:  code-nodeadmin                       |  undecided
 Keywords:  error config usability backward-     |        Version:  1.9.1
  compatibility                                  |  Launchpad Bug:
-------------------------------------------------+-------------------------
 If there are multiple lines for the same setting in {{{tahoe.cfg}}} (for
 example, multiple {{{introducer.furl =}}} lines), Tahoe will silently pick
 one of them. I think it picks the one later in the file. This is most
 likely a user error that should be reported. It can happen when you have
 commented settings and intend only one of them to be uncommented, but make
 a mistake, for instance.

 (I know this is just the standard behaviour of
 {{{ConfigParser.SafeConfigParser}}}, but it's still broken IMHO.)

 There is a minor backward-compatibility issue in that config files that
 worked accidentally will stop working if we make this an error. I still
 think it should be an error rather than a warning, though.

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1684>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list