When I'm archiving image sessions with current XNAT version the last part of the AutoRun pipeline fails at notifying to the end user the archival of the session. The rest of pipeline seems to work properly (i.e. data is archived and snapshots are generated) and actually the email notification of the failure of the pipeline is indeed sent to user/admin. In addition, other pipelines of my own work nicely and notify their final status without problems.
One thing that looks strange to me is that when the pipeline tries to notify first its completion it has no TO parameter:
INFO main org.nrg.pipeline.process.LocalProcessLauncher - Executing /xnat/pipeline/xnat-tools/XNATRestClient -host {MY_HOST} -remote "/data/archive/projects/test/resources/notifications/files/archival.lst" -user_session XXX -m GET > /xnat/data/cache/test//archival.lst
...
DEBUG main org.nrg.pipeline.xpath.XPathResolverSaxon - Expre ^/Pipeline/parameters/parameter[name='emaillistfileExists']/values/unique/text()='true'^ [true]
INFO main org.nrg.pipeline.utils.ConditionUtils - Condition: true
...
DEBUG main org.springframework.web.client.RestTemplate - Created POST request for "{MY_HOST}/data/services/mail/send"
DEBUG main org.springframework.web.client.RestTemplate - Setting request Accept header to [text/plain, */*]
DEBUG main httpclient.wire.header - >> "POST /xnat/data/services/mail/send HTTP/1.1[\r][\n]"
DEBUG main httpclient.wire.header - >> "Accept: text/plain, */*[\r][\n]"
DEBUG main httpclient.wire.header - >> "Content-Type: application/x-www-form-urlencoded[\r][\n]"
DEBUG main httpclient.wire.header - >> "Content-Length: 1195[\r][\n]"
DEBUG main httpclient.wire.header - >> "Authorization: Basic XXX=[\r][\n]"
DEBUG main httpclient.wire.header - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
DEBUG main httpclient.wire.header - >> "Host: {MY_HOST}[\r][\n]"
DEBUG main httpclient.wire.header - >> "[\r][\n]"
DEBUG main httpclient.wire.content - >> "from=..."
DEBUG main httpclient.wire.header - << "HTTP/1.1 400 Bad Request[\r][\n]"
DEBUG main httpclient.wire.header - << "HTTP/1.1 400 Bad Request[\r][\n]"
DEBUG main httpclient.wire.header - << "Date: Mon, 07 Jul 2014 14:38:23 GMT[\r][\n]"
DEBUG main httpclient.wire.header - << "Server: Noelios-Restlet-Engine/1.1.6[\r][\n]"
DEBUG main httpclient.wire.header - << "Accept-Ranges: bytes[\r][\n]"
DEBUG main httpclient.wire.header - << "Content-Type: text/html;charset=ISO-8859-1[\r][\n]"
DEBUG main httpclient.wire.header - << "Content-Length: 345[\r][\n]"
DEBUG main httpclient.wire.header - << "Connection: close[\r][\n]"
DEBUG main httpclient.wire.header - << "[\r][\n]"
WARN main org.springframework.web.client.RestTemplate - POST request for "{MY_HOST}/data/services/mail/send" resulted in 400 (Bad Request); invoking error handler
ERROR main org.nrg.pipeline.utils.MailUtils - Message failed to send through REST service, retrying with direct SMTP.
org.springframework.web.client.HttpClientErrorException: 400 Bad Request
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:75)
at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:486)
...