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

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
<?xml version="1.0"?>
<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>

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]
    

Resolution

This issue is fixed in This content is not included. Red Hat JBoss Operations Network 3.3 Update 04 .

Root Cause

This issue has been reported in This content is not included.Red Hat Bugzilla 1251503. The root cause is unknown at this time. Please see the bug report for more details.

SBR
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.