Skip to content

status update on ERROR

When a publish fails because of an error, the status of the publish process remains RUNNING. I expect something like FAILED or whatever, but not…

Tested with

<publishResponse dryRun="true" objectListComplete="false">
  <PublishObject uri="textgrid:3ztqq.0" status="ERROR">
    <error>
      <message>
Content type of [textgrid:3ztqq.0] is not publishable (text/tg.portalconfig+xml)! Needs to be text/tg.edition+tg.aggregation+xml or text/tg.collection+tg.aggregation+xml!
      </message>
      <type>WRONG_CONTENT_TYPE</type>
    </error>
  </PublishObject>
  <PublishStatus progress="0" processStatus="RUNNING" activeModule="de.langzeitarchivierung.kolibri.webservice.textgrid.publish.TGPublishServiceImpl"/>
</publishResponse>

This is eXXXXXtremly important when one would use the information from PublishStatus to provide a progress bar. And everyone needs to have a progress bar! For sure!