#3848 is_sitetag policy does not work for untag operations
Closed: Fixed by tkopecek. Opened by ignatenkobrain.

[policy]
tag =
  is_sidetag_owner :: allow
  

untagBuild() uses tag: None + fromtag: $id but the SideTagTest() checks for the data['tag'] so it crashes with the exception.

…File "/usr/lib/koji-hub-plugins/sidetag_hub.py", line 58, in run\n    tag = get_tag(data[\'tag\'])\n</string></value>\n<value><string>  File "/usr/lib/python3.9/site-packages/kojihub/kojihub.py", line 3575, in get_tag\n    clause, values = name_or_id_clause(\'tag\', tagInfo)\n</string></value>\n<value><string>  File "/usr/lib/python3.9/site-packages/kojihub/kojihub.py", line 3355, in name_or_id_clause\n    raise koji.ParameterError(fr"Invalid name or id value: {info}")\n</string></value>\n<value><string>koji.ParameterError: Invalid name or id value: None\n…

Metadata Update from @tkopecek:
- Custom field Size adjusted to None
- Issue set to the milestone: 1.33.1
- Issue tagged with: bug

PR #3851

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.34 (was: 1.33.1)

Metadata Update from @tkopecek:
- Issue tagged with: testing-ready

Metadata Update from @mfilip:
- Issue tagged with: testing-done

Commit d324f601 fixes this issue

Commit 13097dff relates to this ticket

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/3848

Please continue any further discussion there.

Metadata
Related Pull Requests