Description of problem: There is a republishing error that occurs when 'Related Links' is used to associate content items. To reproduce: Create two articles, First and Second. Add a link to First in Second. Publish Second. Now publish first. Will get a ccm error. Occurs on the trunk, likely there on qgen as well.
Cleaned up PublishedLink a bit to clarify cause of the error @41049. java.lang.IllegalStateException: Value of targetItem is null. at com.arsdigita.util.Assert.assertTrue(Assert.java:374) at com.arsdigita.util.Assert.assertNotNull(Assert.java:396) at com.arsdigita.cms.PublishedLink.updateLiveLinksFromCollection(PublishedLink.java:261) at com.arsdigita.cms.PublishedLink.updateLiveLinks(PublishedLink.java:222) at com.arsdigita.cms.ContentItem.setLive(ContentItem.java:1214) at com.arsdigita.cms.ContentItem.promotePendingVersion(ContentItem.java:1648) at com.arsdigita.cms.lifecycle.PublishLifecycleListener.begin(PublishLifecycleListener.java:96) at com.arsdigita.cms.lifecycle.Lifecycle.fireListeners(Lifecycle.java:498) at com.arsdigita.cms.lifecycle.Lifecycle.start(Lifecycle.java:454) at com.arsdigita.cms.ui.lifecycle.ItemLifecycleSelectForm$ProcessListener.process(ItemLifecycleSelectForm.java:500) at com.arsdigita.bebop.FormSection.fireProcess(FormSection.java:490)
When updating live links, we've got to specialize the returned DataObject for the link source. submitted @41058
There is no reason for this bug to be private.