Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-1965

sftp-inbound-channel-adapter "delete-remote-files" attribute deos not accept placeholders since it's defined as "xsd:boolean"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.5
    • Component/s: Adapters
    • Labels:
      None

      Description

      Hi,

      I've been trying to use a property to define whether my "sftp:inbound-channel-adapter" should "delete-remote-files". Using the snippet below I encountered the following error:

      Offending resource: class path resource [launch-context.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 14 in XML document from class path resource [META-INF/spring/si-module-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '${delete-remote-files}' is not a valid value for 'boolean'.

      <sftp:inbound-channel-adapter id="sftpInboundAdapter" channel="inputDirChannel"
                   session-factory="sftpSessionFactory" local-directory="file:${local.dir}" remote-directory="${remote.dir}"
                   filename-pattern="${filename-pattern}" temporary-file-suffix="INC" auto-startup="${sftp.enabled}"
                   delete-remote-files="${delete-remote-files}" >
          <int:poller ref="poller" />
      </sftp:inbound-channel-adapter>
      

      The xsd defines the attribute as:

      <xsd:attribute name="delete-remote-files" type="xsd:boolean">
      

      Also the same thing might apply to:

      <xsd:attribute name="cache-sessions" type="xsd:boolean" default="true">
      <xsd:attribute name="auto-create-local-directory" type="xsd:boolean">
      

      Cheers

        Attachments

          Activity

            People

            • Assignee:
              oleg.zhurakousky@springsource.com Oleg Zhurakousky
              Reporter:
              morfic Corneliu Giurgiu
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: