updater class (ngclient)

3 views
Skip to first unread message

Kelly Walfgan

unread,
Dec 15, 2024, 6:35:04 AM12/15/24
to The Update Framework (TUF)
when i call the updater class" updater = Updater(
metadata_dir=metadata_dir,
metadata_base_url=f"{base_url}/metadata/",
target_base_url=f"{base_url}/targets/",
target_dir=DOWNLOAD_DIR,
)
updater.refresh()" 
 "In my repo, I have version 2 of root.json, and it has not expired yet. But when I run the code, it always tries to download version 3 of root.json and gets stuck after validating version 2 of the root.json. 

Please, i need help to know what is wrong 

Jussi Kukkonen

unread,
Dec 16, 2024, 8:04:08 AM12/16/24
to Kelly Walfgan, The Update Framework (TUF)


On Sun, Dec 15, 2024 at 1:35 PM Kelly Walfgan <walfga...@gmail.com> wrote:
In my repo, I have version 2 of root.json, and it has not expired yet. But when I run the code, it always tries to download version 3 of root.json...

This sounds like the client is working as designed so far: the spec requires the client to look for root version N+1 (where N is the last root version client already has). Getting a 404 response here is normal.

and gets stuck after validating version 2 of the root.json. 

 Could you add some details here? What does "gets stuck" mean?
Reply all
Reply to author
Forward
0 new messages