[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #28508 [- Select a component]: Stem not checking for 'cached-microdescs.new' correctly
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs