Because Product.create doesn't enforce to define a component, it's possible to create a product with no components in the DB, making sanitycheck.cgi to complain. We should either fix webservice_product_create.t to delete these new products when it's done with testing to leave the DB in a sane state, and/or fix Product.create to also require a component name, description and default assignee. Note that the web UI forces admins to define a new component when creating a new product.
Oh, it's actually not possible to call Product.delete, because this method doesn't exist. This is probably why we left these products in the DB. In that case, webservice_product_create.t should insert a component to make sanitycheck.cgi happy.
You need to log in before you can comment on or make changes to this bug.