The following changes in the workflows for the Drupal publishing fix the problem of unpublishing, that was removing the entire pubInfo attribute, instead the items related to the specified pubDest.
Now the pubInfo is created as:
<pubInfo>
<item name="[pubDestId]_image_[imgId]" value="5678" valueExtra="http://drupalServer/node/5678" publicationDate="2014-08-26T10:49:45.740Z"/>
<item name="[pubDestId]_video_[videoId]" value="3456" valueExtra="http://drupalServer/node/3456" publicationDate="2014-08-26T10:49:45.740Z"/>
<item name="[pubDestId]_article_[articleId]" value="1212" valueExtra="http://drupalServer/node/1212" publicationDate="2014-08-26T10:49:45.740Z"/>
</pubInfo>
Therefore, on unpublishing, the system removes the items related to the pubdest.
New and changed files:
..\config\data\gn4\pubTemplateDrupalArticle.xml (new)
..\config\data\gn4\pubTemplateDrupalImage.xml (new)
..\config\global\gn4\wf_AutoCrop.xml (changed)
..\config\global\gn4\xsl_toDrupalArticle.xml (new)
..\config\global\gn4\xsl_toDrupalMedia.xml (changed)
..\config\global\gn4\xsl_toDrupalPreview.xml (changed)
The modified files are changed very slightly - it is possible that old versions function as well. For the new files, the filenames changes, so you can use them maintaining the old versions. The PubPrefix parameter, defined in pubDest is now ignored.
Those files allow to publish articles with video and images, and single images (not part of articles).
Restore old versions
Just put back the three backup files, and optionally remove new pubDests.
Note:
•New workflows cannot unpublish the content, published with old workflows: you have to do it manually, or add ‘pubInfo’ in the objectUI before manual removing.
•Do not use old workflows to unpublish.