SpriteLink/NIPAP — Issue #139: Duplicate key on schemas without VRF
Author: garberg
Created: 2011-12-05 16:24:50+00:00
State: open

A schema with "no" VRF defined (empty field in the web UI) is handled as having a VRF of "", an empty string. As there is a unique constraint on the vrf-column, we get a collision when adding two schemas without specifying a VRF.

Suggested solution: Convert empty strings to NULL/None and vice versa.