tracker issue : CF-4205254

select a category, or use search below
(searches all categories and all time range)

Bootstrap classloader doesn't handle trailing slash in updates/ path in coldfusion.classPath

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/UserError

Reporter/Name(from Bugbase): Bradley W. / ()

Created: 09/25/2019

Components: JEE Deployment

Versions: 2018

Failure Type: Non Functioning

Found In Build/Fixed In Build: Final / NA

Priority/Frequency: Normal / Some users will encounter

Locale/System: / Platforms All

Vote Count: 1

Problem Description:

If you start up a CF war and have a coldfusion.classPath system property defined that uses a trailing slash on the updates folder, ColdFusion will not load the hotfix jar prior to any update jars in the updates folder and any hotfixes may not work.  This affects CommandBox, which sets an explicit coldfusion.classPath property ending with a slash.  

Steps to Reproduce:

Start up an Adobe engine in CommandBox and add an update jar and hotfix jar into the updates folder.  The order they are loaded in is not guaranteed based on the logic that is supposed to run in the bootstrap jar.  There is special logic for loading jars from any path ending with "/updates" but this logic assumes there will be no trailing slash.  Nimit helped me troubleshoot this and detect the bug.

Actual Result:

Hotfix jar may be loaded in wrong order.

Expected Result:

Hotfix jar should be loaded in correct order.

Any Workarounds:

Not really.