JBoss ON bundle creation with rhq:handover fails with "IllegalArgumentException: Token did not result in valid file" when assigning it to a bundle group

Solution Verified - Updated -

Issue

  • User in a constrained role unable to assign uploaded bundle to group
  • Creation of bundle version fails:

    java.lang.IllegalArgumentException: Token did not result in valid file [/tmp/upload__2700a40a_14e0df9cb34__8000_00000014.tmp] 
    
  • server.log contains the following error:

    ERROR [org.jboss.as.ejb3.invocation] (http-/0.0.0.0:7080-6) JBAS014134: EJB Invocation failed on component BundleManagerBean for method public abstract org.rhq.core.domain.bundle.BundleVersion org.rhq.enterprise.server.bundle.BundleManagerLocal.createInitialBundleVersionViaToken(org.rhq.core.domain.auth.Subject,int[],java.lang.String) throws java.lang.Exception: javax.ejb.EJBException: java.lang.IllegalArgumentException: Token did not result in valid file [/tmp/upload__2700a40a_14e0df9cb34__8000_00000014.tmp]
    Caused by: java.lang.IllegalArgumentException: Token did not result in valid file [/tmp/upload__2700a40a_14e0df9cb34__8000_00000014.tmp]
    

Environment

  • Red Hat JBoss Operations Network (ON) 3.3.3
  • User has Create Bundle In Group permission assigned to their role
  • Bundle has been assigned to one or more bundle groups at creation time
  • Recipe file uses rhq:handover

<project name="MQTest" default="main" xmlns:rhq="antlib:org.rhq.bundle">
    <rhq:bundle name="MQ Test Test" version="1.0" description="A simple MQ application.">
        <rhq:deployment-unit name="appserver" manageRootDir="false">
            <rhq:archive name="MQTest.war">
                <rhq:handover action="deployment" />
            </rhq:archive>
    </rhq:deployment-unit>
    </rhq:bundle>
    <target name="main" />
    </project>

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In