> Oh, I am sorry. Somehow I checked the code wrong. > > So, I'll try again. > ... > if (details.containsKey("cves")) { > if (errata.getCves() != null) { > errata.getCves().clear(); > HibernateFactory.getSession().flush(); > } > for (String cveName : (ArrayList<String>) details.get("cves")) > { > Cve c = CveFactory.lookupByName(cveName); > if (c == null) { > c = new Cve(); > c.setName(cveName); > CveFactory.save(c); > } > errata.getCves().add(c); > } > } > ... > If "cves" is included in the xmlrpc struct, currently associated CVEs will > be detached from the erratum (and if not further referenced also > completely deleted). > Then, either the CVE will be found in the DB or a new one *will* be > created. > I admit the code isn't perfect, but shall work. > > I tested errata.setDetails API on latest nightly and I was able to > associate completely new CVEs within an erratum. > > I am not sure, what is the situation on Spacewalk 1.4, but we recommend to > upgrade to latest released version.
Ok, I just upgraded from 1.4 to 1.5 and I'm seeing the exact same behavior. Is there a post 1.5 commit that I can apply to get the desired functionality? Thanks, Andy _______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel