Deployment of provisioning bundles from JON corrupts binary files when template token substitution is performed

Solution Unverified - Updated -

Issue

  • jon-server corrupts JAR files when pushing out JAR files
  • Bug with jon-server pushing out a JAR file to a remote JBoss Application Server (AS) instance corrupts it
  • Deployed JAR file increased in file size
  • Deployed file from bundle is different then original file in bundle
  • Execution of template token replacement on a binary file results in a corrupt binary file

Environment

  • JBoss Operations Network (JON) 3.0
  • Deployment of Provisioning Bundle
  • Specifying the replace attribute with the value of true on the rhq:file bundle task for the affected file

    <rhq:file name="affected-file.jar" destinationFile="subdir/affected-file.jar" replace="true"/>
    
  • Specifying the rhq:replace bundle task with the affected file as a child element or part of a rhq:fileset task

    ...
    <rhq:replace>
        <rhq:fileset>
            <include name="**/*"/>
        </rhq:fileset>
    </rhq:replace>
    ...
    

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