diff --git a/manager/controllers/advisory_detail.go b/manager/controllers/advisory_detail.go index 6ed413bb5..c8ba3df36 100644 --- a/manager/controllers/advisory_detail.go +++ b/manager/controllers/advisory_detail.go @@ -198,6 +198,15 @@ func tryGetAdvisoryFromCache(advisoryName string) *AdvisoryDetailResponse { return nil } middlewares.AdvisoryDetailCnt.WithLabelValues("hit").Inc() + + emptyTime := time.Time{} + if val.Data.Attributes.PublicDate == emptyTime { + // advisory is found in cache but was inserted from yum_updates + // it is missing all attributes such as description, public_date, modified_date, etc. + // these attributes are added after the advisory is synced by vmaas-sync + // don't use the value from cache but from DB + return nil + } return &val }