Skip to content

Metadata API: validate that "paths" or "path_hash_prefixes" is set #1497

@MVrachev

Description

@MVrachev

Description of issue or feature request:
As @sechkova have pointed out in this comment #1463 (comment) in DelegatedRole we are checking if paths and path_hash_prefixes BOTH are set, but we aren't checking
if at least one of them is set:
https://github.com/theupdateframework/tuf/blob/24fa1128116429dc18e185047fbffb009ca509b0/tuf/api/metadata.py#L914

For more context read theupdateframework/specification#156.

Current behavior:
We don't check if BOTH paths and path_hash_prefixes are None.

Expected behavior:
Check if BOTH paths and path_hash_prefixes are None.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions