[tor-bugs] #28508 [- Select a component]: Stem not checking for 'cached-microdescs.new' correctly

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Nov 19 02:09:19 UTC 2018


#28508: Stem not checking for 'cached-microdescs.new' correctly
--------------------+--------------------------------------
 Reporter:  opara   |          Owner:  (none)
     Type:  defect  |         Status:  new
 Priority:  Low     |      Component:  - Select a component
  Version:          |       Severity:  Normal
 Keywords:          |  Actual Points:
Parent ID:          |         Points:
 Reviewer:          |        Sponsor:
--------------------+--------------------------------------
 When "contoller.get_microdescriptors()" is called, it checks to see if the
 file "cached-microdescs" exists before creating a
 "stem.descriptor.reader.DescriptorReader" object. The problem is that
 "cached-microdescs" may not exist, but "cached-microdescs.new" does.

 A simple fix for this is to modify stem/control.py:1795 (as of commit
 73e5bd3e4f5) from:

 {{{
 elif not os.path.exists(cached_descriptor_path):
 }}}

 to:

 {{{
 elif not os.path.exists(cached_descriptor_path) and not
 os.path.exists(cached_descriptor_path+'.new'):
 }}}

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


More information about the tor-bugs mailing list