Mike's Notes
An important announcement from Adobe ColdFusion pre-release.
Resources
- https://cfdocs.org/
- https://helpx.adobe.com/coldfusion/developing-applications/building-blocks-of-coldfusion-applications/building-and-using-coldfusion-components.html
References
- Reference
Repository
- Home > Ajabbi Research > Library > ColdFusion
Last Updated
26/04/2025
Upcoming ColdFusion update - Pre-release announcement
We’re announcing an important change in the upcoming ColdFusion update that enhances the reliability and consistency of remote function calls.
Install the update
* Launch the ColdFusion Administrator.
* Select Package Manager.
* In the Settings tab, make the following changes:
* Change the update URL to
If https://www.adobe.com/go/coldfusion-pr-updates doesn't launch, use as the update URL.* Change the package URL for your ColdFusion version:
- * ColdFusion 2025: https://www.adobe.com/go/cf2025-pr-packages
- * ColdFusion 2023: https://www.adobe.com/go/cf2023-pr-packages
- * ColdFusion 2021: https://www.adobe.com/go/cf2021-pr-packages
* Select Submit changes after updating the update and package URLs.
* In the Packages tab, select Check for Updates. The pre-release update will be available.
* Download or install the update.
What’s changing
Remote CFC methods will now require strict argument matching
Going forward, if a remote method expects certain parameters, those arguments must be explicitly declared using the cfargument tag or defined directly in the function signature.
For example, if a remote function is defined to accept two arguments, it must only receive those two. Passing more than the declared number (for example, 10) will result in an error. This change ensures stricter method integrity and a better debugging experience.
This behaviour change applies only to remote CFC methods.
Sample code
test.cfc
<cffunction name="test1" output="true" returnFormat="json" access="remote"><cfscript>if (isAdmin){writeoutput("Yay. You are the admin.")}</cfscript></cffunction>
The output will produce an exception, because function test1 does not support isadmin as an argument in test.cfc.
Modify the code as follows to resolve the exception:
<cfargument name="isadmin" type="boolean" required="true"></cfargument>
New JVM flag introduced
We’ve added a new JVM flag called
-Dcoldfusion.runtime.udf.matchArguments
that allows you to revert this behaviour if needed.
The flag is set to true by default, which enforces strict argument matching.
For the above example, setting
-Dcoldfusion.runtime.udf.matchArguments=false
will allow the application code to work as earlier.
For security reasons, we strongly advise against reverting to previous behaviour. Please update your code accordingly.
Fixes coming soon
We’ve also noted issues reported in previous updates. The official update, which will be released shortly, will address these.
Your feedback matters
We encourage you to test your applications with this pre-release and verify any remote CFC usage.
Please share your feedback, findings, or concerns with us by 2 May 2025. Your input will help us fine-tune the final release.
Thank you for being a valued part of the ColdFusion community!
Reply to this email directly or follow the link below to check it out:
No comments:
Post a Comment