[tor-bugs] #17942 [Stem]: stem-1.4.1 doesn't like double-space in exit policy

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Dec 27 18:23:33 UTC 2015


#17942: stem-1.4.1 doesn't like double-space in exit policy
------------------------+--------------------
     Reporter:  toralf  |      Owner:  atagar
         Type:  defect  |     Status:  new
     Priority:  Medium  |  Milestone:
    Component:  Stem    |    Version:
     Severity:  Normal  |   Keywords:
Actual Points:          |  Parent ID:
       Points:          |    Sponsor:
------------------------+--------------------
 {{{
 ExitPolicy reject  *:*
 }}}
 gives
 {{{
     policy = controller.get_exit_policy()
   File "/usr/lib64/python3.4/site-packages/stem/control.py", line 414, in
 wrapped
     raise exc
   File "/usr/lib64/python3.4/site-packages/stem/control.py", line 409, in
 wrapped
     return func(self, *args, **kwargs)
   File "/usr/lib64/python3.4/site-packages/stem/control.py", line 1177, in
 get_exit_policy
     config_policy = stem.exit_policy.get_config_policy(policy,
 self.get_info('address', None))
   File "/usr/lib64/python3.4/site-packages/stem/exit_policy.py", line 154,
 in get_config_policy
     result.append(ExitPolicyRule(rule))
   File "/usr/lib64/python3.4/site-packages/stem/exit_policy.py", line 655,
 in __init__
     raise ValueError('An exit policy should have a space separating its
 accept/reject from the exit pattern: %s' % rule)
 ValueError: An exit policy should have a space separating its
 accept/reject from the exit pattern: reject  *:
 }}}

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


More information about the tor-bugs mailing list