[tor-bugs] #31187 [Core Tor/Stem]: Fetching a vote made by dirauth a from dirauth b is broken

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jul 17 20:14:22 UTC 2019


#31187: Fetching a vote made by dirauth a from dirauth b is broken
---------------------------+------------------------
 Reporter:  tom            |          Owner:  atagar
     Type:  defect         |         Status:  new
 Priority:  Medium         |      Milestone:
Component:  Core Tor/Stem  |        Version:
 Severity:  Normal         |     Resolution:
 Keywords:                 |  Actual Points:
Parent ID:                 |         Points:
 Reviewer:                 |        Sponsor:
---------------------------+------------------------

Comment (by atagar):

 Thanks Tom, thanks Sebastian! I tried the descriptor file Sebastian
 mentioned on irc and I can easily reproduce the bug...

 {{{
 % python
 >>> from stem.descriptor.remote import _guess_descriptor_type
 >>> _guess_descriptor_type('/tor/status-
 vote/current/49015F787433103580E3B66A1707A00E60F2D15B')
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "stem/descriptor/remote.py", line 1143, in _guess_descriptor_type
     raise ValueError("Unable to determine the descriptor type for '%s'" %
 resource)
 ValueError: Unable to determine the descriptor type for '/tor/status-
 vote/current/49015F787433103580E3B66A1707A00E60F2D15B'
 }}}

 For me the root problem here is that our dir-spec doesn't have a clear
 enumeration of all the DirPort urls. Section 'B' is the closest that we
 have to this but these urls are only hinted at in section 3.4.

 Could we please update the following to include everything the DirPort
 vends? That way we won't keep running into this. ;P

 https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt#n3888

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


More information about the tor-bugs mailing list