[ https://issues.apache.org/jira/browse/SYNAPSE-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kasun Indrasiri updated SYNAPSE-721: ------------------------------------ Attachment: synapse-721.patch Attaching the patch that fixes these issues. > VFS Proxy doesn't move file to failure destination when the class mediator > throws an exception > ---------------------------------------------------------------------------------------------- > > Key: SYNAPSE-721 > URL: https://issues.apache.org/jira/browse/SYNAPSE-721 > Project: Synapse > Issue Type: Bug > Components: Core > Reporter: Kasun Indrasiri > Attachments: synapse-721.patch > > > I'm using a vfs listener proxy similar to the following configuration. The > class mediator in the In Sequence throws Synapse Exception in a failure case. > However, in such a scenario, the proxy doesn't move the request > file(/home/kasun/development/rnd/vfs_lisener/vfsIn/) to the failure > destination(/home/kasun/development/rnd/vfs_lisener/vfsFailed). > <proxy name="FTPProxy" transports="vfs"> > <parameter > name="transport.vfs.FileURI">file:///home/kasun/development/rnd/vfs_lisener/vfsIn</parameter> > <parameter name="transport.vfs.ContentType">text/xml</parameter> > <parameter name="transport.vfs.FileNamePattern">.*\.xml</parameter> > <parameter name="transport.PollInterval">15</parameter> > <parameter > name="transport.vfs.MoveAfterProcess">file:///home/kasun/development/rnd/vfs_lisener/vfsOut</parameter> > <parameter > name="transport.vfs.MoveAfterFailure">file:///home/kasun/development/rnd/vfs_lisener/vfsFailed</parameter> > <parameter name="transport.vfs.ActionAfterProcess">MOVE</parameter> > <parameter name="transport.vfs.ActionAfterFailure">MOVE</parameter> > <target> > <inSequence> > <log level="full"/> > <class name="org.foo.bar.ResponseMediator"/> > <send> > <endpoint> > <address format="soap11" > uri="http://localhost:9000/services/SimpleStockQuoteService"/> > </endpoint> > </send> > </inSequence> > <outSequence> > <property name="transport.vfs.ReplyFileName" > > expression="fn:concat(fn:substring-after(get-property('MessageID'), > 'urn:uuid:'), '.xml')" > scope="transport"/> > <property action="set" name="OUT_ONLY" value="true"/> > <send> > <endpoint> > <address > uri="vfs:file:///home/kasun/development/rnd/vfs_lisener/vfsOut"/> > <!--CHANGE--> > </endpoint> > </send> > </outSequence> > </target> > </proxy> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org For additional commands, e-mail: dev-h...@synapse.apache.org