#4492 is_sidetag test doesn't accept None value with tag in policy_data, but it's the input of untagging
Closed: Fixed by mikem. Opened by julian8628.

[Mon Nov 10 07:43:15.191077 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]   File "/usr/lib/python3.9/site-packages/kojihub/kojixmlrpc.py", line 361, in multiCall
[Mon Nov 10 07:43:15.191084 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]     result = self._dispatch(call['methodName'], call['params'])
[Mon Nov 10 07:43:15.191095 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]   File "/usr/lib/python3.9/site-packages/kojihub/kojixmlrpc.py", line 342, in _dispatch
[Mon Nov 10 07:43:15.191101 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]     ret = koji.util.call_with_argcheck(func, params, opts)
[Mon Nov 10 07:43:15.191110 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]   File "/usr/lib/python3.9/site-packages/koji/util.py", line 516, in call_with_argcheck
[Mon Nov 10 07:43:15.191116 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]     return func(*args, **kwargs)
[Mon Nov 10 07:43:15.191126 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]   File "/usr/lib/python3.9/site-packages/kojihub/kojihub.py", line 11896, in untagBuild
[Mon Nov 10 07:43:15.191132 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]     assert_policy('tag', policy_data, force=force)
[Mon Nov 10 07:43:15.191141 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]   File "/usr/lib/python3.9/site-packages/kojihub/kojihub.py", line 10633, in assert_policy
[Mon Nov 10 07:43:15.191147 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]     check_policy(name, data, default=default, strict=True, force=force)
[Mon Nov 10 07:43:15.191157 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]   File "/usr/lib/python3.9/site-packages/kojihub/kojihub.py", line 10475, in check_policy
[Mon Nov 10 07:43:15.191165 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]     result = ruleset.apply(data)
[Mon Nov 10 07:43:15.191178 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]   File "/usr/lib/python3.9/site-packages/koji/policy.py", line 412, in apply
[Mon Nov 10 07:43:15.191194 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]     self.lastaction = self._apply(self.ruleset, data, top=True)
[Mon Nov 10 07:43:15.191208 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]   File "/usr/lib/python3.9/site-packages/koji/policy.py", line 399, in _apply
[Mon Nov 10 07:43:15.191222 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]     ret = self._apply(action, data)
[Mon Nov 10 07:43:15.191230 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]   File "/usr/lib/python3.9/site-packages/koji/policy.py", line 385, in _apply
[Mon Nov 10 07:43:15.191242 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]     check = test.run(data)
[Mon Nov 10 07:43:15.191255 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]   File "/usr/lib/koji-hub-plugins/sidetag_hub.py", line 59, in run
[Mon Nov 10 07:43:15.191262 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]     tag = get_tag(data['tag'])
[Mon Nov 10 07:43:15.191275 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]   File "/usr/lib/python3.9/site-packages/kojihub/kojihub.py", line 3826, in get_tag
[Mon Nov 10 07:43:15.191285 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]     clause, values = name_or_id_clause('tag', tagInfo)
[Mon Nov 10 07:43:15.191293 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]   File "/usr/lib/python3.9/site-packages/kojihub/kojihub.py", line 3606, in name_or_id_clause
[Mon Nov 10 07:43:15.191305 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791]     raise koji.ParameterError(fr"Invalid name or id value: {info}")
[Mon Nov 10 07:43:15.191311 2025] [wsgi:error] [pid 1559295:tid 1559295] [client 10.72.112.179:60791] koji.ParameterError: Invalid name or id value: None

Metadata Update from @mfilip:
- Custom field Size adjusted to None
- Issue tagged with: testing-basic

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

Commit 95820797 fixes this issue

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

Please continue any further discussion there.

Metadata
Related Pull Requests