Errata: update v2 controller to allow request by repo

This commit contains a small change to support requesting
errata by repo.

It also includes a small fix for a typo of repo_ids vs repoid.