fixes 6422 - validate repoid (and pick a valid one) on cv publish