#1252 setInheritanceData raise Fault for non-existing tag id
Closed: Fixed by mikem. Opened by mfilip.

Steps to reproduce:

setInheritanceData(1234,
                   {'parent_id': 12345,
                    'priority': 0,
                    'maxdepth': 0,
                    'intransitive':False,
                    'noconfig':False,
                    'pkg_filter':''})

Current Output

Fault: <Fault 1: '<class \'psycopg2.IntegrityError\'>: insert or update on table "tag_inheritance" violates foreign key constraint "tag_inheritance_tag_id_fkey"\nDETAIL:  Key (tag_id)=(1234) is not present in table "tag".\n'>

Expected Output:

GenericError: No such entry in table tag: 1234

PR #1255

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.18

Commit bcece35a fixes this issue

Commit 1e388be6 fixes this issue

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

Please continue any further discussion there.

Metadata
Related Pull Requests