Deploying JBoss ON bundle to agent's root directory fails with FileNotFoundException
Environment
- Red Hat JBoss Operations Network (JBoss ON) 3.3 Update 11 and earlier
- Deployment of JBoss ON Provisioning Bundle to root of agent's file system --
C:\or/
Issue
- Second attempt to deploy bundle fails with
java.io.FileNotFoundException - Deploying second bundle to root directory fails.
Resolution
This issue has been resolved in JBoss ON 3.3 Update 12 and later.
Root Cause
When the root path ends with a file separator character (on Windows this would be \ and on Linux this would be /), it is stripped off and the index of the resulting path is calculated based on the remaining root path. However, in the event that the root path is the root of the file system, this can result in incorrect indexing of the final path value.
This issue was identified in This content is not included.Red Hat Bug 1670371.
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.