Can the SFTP protocol be used for rhq:url-file or rhq:url-archive in JON bundles?

Solution Verified - Updated -

Issue

  • SFTP URL not possible in rhq:url-file or rhq:url-archive
  • sftp is not a valid URL.
  • Bundle creation fails:

    java.lang.Exception:Failed to parse the bundle Ant script. -> org.apache.tools.ant.BuildException:URL specified by 'url' attribute [sftp://myuser:mysecret@example.com/files.zip] is malformed - it must be a valid URL.
    
  • Can sftp be used as the protocol in the value for url?

Environment

  • Red Hat JBoss Operations Network (ON) 3.1
  • JBoss ON provisioning bundle
  • Bundle recipe that includes the rhq:url-file or rhq:url-archive element:

        ...
        <rhq:deployment-unit name="files">
          <rhq:url-archive url="sftp://myuser:mysecret@example.com/files.zip" exploded="true" />
        </rhq:deployment-unit>
        ...
    

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content