[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #3679 [Torctl]: TorCtl Event Parsing Rewrite



#3679: TorCtl Event Parsing Rewrite
-------------------------+--------------------------------------------------
 Reporter:  atagar       |          Owner:              
     Type:  enhancement  |         Status:  needs_review
 Priority:  normal       |      Milestone:              
Component:  Torctl       |        Version:              
 Keywords:               |         Parent:              
   Points:               |   Actualpoints:              
-------------------------+--------------------------------------------------

Comment(by aagbsn):

 I found a bug that might explain what's going on:

 original code: (TorCtl.py:1367)
 {{{
 path_verb = path.strip().split(",")
 path = []
 for p in path_verb:
   path.append(p.replace("~", "=").split("=")[0])
 }}}

 replacement code: (TorCtl.py:247)
 {{{
 if self.path:
   self.path = [p.replace("~", "=").split("=")[0] for p in
 self.path.split(",")]
 }}}

 See the missing 'strip()'? This might explain the BwAuthority issue
 reported in #4015 (descriptors do not match)

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3679#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs