#1163 API Call createEmptyBuild call should return GenericError for non existing userID
Closed: Fixed 4 years ago by mikem. Opened 5 years ago by jcupova.

Steps to Reproduce:

run createEmptyBuild(build_name, version, release, epoch, owner=non_exist_user_id)

Actual result:

Fault: <Fault 1: '<class \'psycopg2.IntegrityError\'>: insert or update on table "build" violates foreign key constraint "build_owner_fkey"\nDETAIL: Key (owner)=(277) is not present in table "users".\n'>

Expected result:

Should return Generic error that user_id is not existing.


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

5 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #1324 Merged 4 years ago