#1252 setInheritanceData raise Fault for non-existing tag id
Closed: Fixed 3 years ago by mikem. Opened 4 years ago 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

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

4 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #1255 Merged 3 years ago