Skip to content

TUF interposition maintains state of available roles #162

@pawanrao

Description

@pawanrao

if url.endswith("xml"):
if sys.version_info[0] > 2:
#Python 2
try:
doc = urllib3.urlopen(url)
except Exception,e:
#raise e
try:
sleep(60)
doc = urllib3.urlopen(url)
except Exception, e:
raise(e)

If the targets.txt file is unavailable during the first call to urlopen() TUF returns 'unknown' role error. However if the targets.txt is restored before the second call to urlopen(),TUF still returns 'unknown' role error.
This is not expected behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions