[tor-bugs] #1806 [Tor - Relay]: Multiple Warnings Emmitted for Config Abbreviations

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri Aug 6 16:35:32 UTC 2010


#1806: Multiple Warnings Emmitted for Config Abbreviations
-------------------------+--------------------------------------------------
 Reporter:  atagar       |       Owner:     
     Type:  defect       |      Status:  new
 Priority:  minor        |   Milestone:     
Component:  Tor - Relay  |     Version:     
 Keywords:               |      Parent:     
-------------------------+--------------------------------------------------
 The torrc and GETCONF accepts command abbreviations (for instance
 "ControlPo" instead of "ControlPort"). This was a mistake since it results
 in ambiguity for similarly named commands (for instance does "Socks" match
 "SocksPort" or "SocksBindAddress"?). Hence, use of this is discouraged and
 results in a warning.

 Warnings are emitted in the 'expand_abbrev' function of 'or/config.c'
 (line 1353). The problem is that this is a getter function, called for a
 variety of purposes like GETCONF. This means that controllers may
 accidentally spam users with warnings by requesting an alias repeatedly.

 In my opinion the proper handling of this is to either remember the
 warnings we've given (avoiding duplication), or even better to just
 provide warnings when reading in the torrc. Cheers! -Damian

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1806>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list