Adobe ColdFusion

This article is about the Adobe server platform. For other uses, see Cold Fusion (disambiguation).
"ColdFusion" redirects here. For the programming language, see CFML.
Adobe ColdFusion
Original author(s) JJ Allaire
Developer(s) Adobe Systems Incorporated
Initial release 1995 (1995)
Stable release
2016.0.0.297996 / February 16, 2016 (2016-02-16)
Written in Java
Operating system Cross-platform
Available in English
Type Application server
License Proprietary
Website www.adobe.com/products/coldfusion

Adobe ColdFusion is a commercial rapid web application development platform created by JJ Allaire in 1995.[1][2][3][4] (The programming language used with that platform is also commonly called ColdFusion, though is more accurately known as CFML.) ColdFusion was originally designed to make it easier to connect simple HTML pages to a database. By Version 2 (1996), it became a full platform that included an IDE in addition to a full scripting language.

Overview

One of the distinguishing features of ColdFusion is its associated scripting language, ColdFusion Markup Language (CFML). CFML compares to the scripting components of ASP, JSP, and PHP in purpose and features, but its tag syntax more closely resembles HTML, while its script syntax resembles JavaScript. ColdFusion is often used synonymously with CFML, but there are additional CFML application servers besides ColdFusion, and ColdFusion supports programming languages other than CFML, such as server-side Actionscript and embedded scripts that can be written in a JavaScript-like language known as CFScript.

Originally a product of Allaire and released on July 2, 1995, ColdFusion was developed by brothers Joseph J. "JJ" and Jeremy Allaire. In 2001 Allaire was acquired by Macromedia, which in turn was acquired by Adobe Systems Inc in 2005.

ColdFusion is most often used for data-driven websites or intranets, but can also be used to generate remote services such as SOAP web services or Flash remoting. It is especially well-suited as the server-side technology to the client-side Flex.[5]

ColdFusion can also handle asynchronous events such as SMS and instant messaging via its gateway interface, available in ColdFusion MX 7 Enterprise Edition.

Main features

ColdFusion provides a number of additional features out of the box. The main things are:

Other implementations of CFML offer similar or enhanced functionality, such as running in a .NET environment or image manipulation.

The engine was written in C and featured, among other things, a built-in scripting language (CFScript), plugin modules written in Java, and a syntax very similar to HTML. The equivalent to an HTML element, a ColdFusion tag begins with the letters "CF" followed by a name that is indicative of what the tag is interpreted to, in HTML. E.g. <cfoutput> to begin the output of variables or other content.

In addition to CFScript and plugins (as described), CFStudio provided a design platform with a WYSIWYG display. In addition to ColdFusion, CFStudio also supports syntax in other languages popular for backend programming, such as Perl. In addition to making backend functionality easily available to the non-programmer, (version 4.0 and forward in particular) integrated easily with the Apache Web Server and with Internet Information Services.

Other features

All versions of ColdFusion prior to 6.0 were written using Microsoft Visual C++. This meant that ColdFusion was largely limited to running on Microsoft Windows, although Allaire did successfully port ColdFusion to Sun Solaris starting with version 3.1.

The Allaire company was sold to Macromedia, then Macromedia was sold to Adobe. Earlier versions were not as robust as the versions available from version 4.0 forward.

With the release of ColdFusion MX 6.0, the engine had been re-written in Java and supported its own runtime environment, which was easily replaced through its configuration options with the runtime environment from Sun. Version 6.1 included the ability to code and debug Shockwave Flash.

Release history

Versions

Cold Fusion 3.1

Version 3.1 brought about a port to the Sun Solaris operating system. Cold Fusion studio gained a live page preview and HTML syntax checker.

ColdFusion 4

"Cold Fusion" moniker renamed simply as "ColdFusion" - possibly to distinguish it from Cold fusion theory.

ColdFusion 4.5

Version 4.5 brought the ability to natively invoke Java objects, execute system commands, and talk directly to a Java EE server.

ColdFusion 5

First release from Macromedia after the Allaire Corporation acquisition. The last to be legacy coded for a specific platform.

On January 16, 2001, Allaire announced a pending merger with Macromedia. Macromedia continued its development and released the product under the name ColdFusion 5.0. It retained the name "ColdFusion" through the remainder of version 5 releases.

ColdFusion MX 6

Prior to 2000, Edwin Smith, an Allaire architect on JRun and later the Flash Player, initiated a project codenamed "Neo".[13] This project was later revealed as a ColdFusion Server re-written completely using Java. This made portability easier and provided a layer of security on the server, because it ran inside a Java Runtime Environment.

In June 2002 Macromedia released the version 6.0 product under a slightly different name, ColdFusion MX, allowing the product to be associated with both the Macromedia brand and its original branding. ColdFusion MX was completely rebuilt from the ground up and was based on the Java EE platform. ColdFusion MX was also designed to integrate well with Macromedia Flash using Flash Remoting.

With the release of ColdFusion MX, the CFML language API was released with an OOP interface.

ColdFusion MX 7

With the release of ColdFusion 7.0 on February 7, 2005, the naming convention was amended, rendering the product name "Macromedia ColdFusion MX 7" (the codename for CFMX7 was "Blackstone"). CFMX 7 added Flash-based and XForms-based web forms, and a report builder that output in Adobe PDF as well as FlashPaper, RTF and Excel. The Adobe PDF output is also available as a wrapper to any HTML page, converting that page to a quality printable document. The enterprise edition also added Gateways. These provide interaction with non-HTTP request services such as IM Services, SMS, Directory Watchers, and an asynchronous execution. XML support was boosted in this version to include native schema checking.

ColdFusion MX 7.0.1 (codename "Merrimack") added support for Mac OS X, improvements to Flash forms, RTF support for CFReport, the new CFCPRoxy feature for Java/CFC integration, and more. ColdFusion MX 7.0.2 (codenamed "Mystic") included advanced features for working with Adobe Flex 2 as well as more improvements for the CF Report Builder.

Adobe ColdFusion 8

On July 30, 2007, Adobe Systems released ColdFusion 8, dropping "MX" from its name.[14] During beta testing the codename used was "Scorpio" (the eighth sign of the zodiac and the eighth iteration of ColdFusion as a commercial product). More than 14,000 developers worldwide were active in the beta process - many more testers than the 5,000 Adobe Systems originally expected. The ColdFusion development team consisted of developers based in Newton/Boston, Massachusetts and offshore in Bangalore, India.

Some of the new features are the CFPDFFORM tag, which enables integration with Adobe Acrobat forms, some image manipulation functions, Microsoft .NET integration, and the CFPRESENTATION tag, which allows the creation of dynamic presentations using Adobe Acrobat Connect, the Web-based collaboration solution formerly known as Macromedia Breeze. In addition, the ColdFusion Administrator for the Enterprise version ships with built-in server monitoring. ColdFusion 8 is available on several operating systems including Linux, Mac OS X and Windows Server 2003.

Other additions to ColdFusion 8 are built-in Ajax widgets, file archive manipulation (CFZIP), Microsoft Exchange server integration (CFEXCHANGE), image manipulation including automatic CAPTCHA generation (CFIMAGE), multi-threading, per-application settings, Atom and RSS feeds, reporting enhancements, stronger encryption libraries, array and structure improvements, improved database interaction, extensive performance improvements, PDF manipulation and merging capabilities (CFPDF), interactive debugging, embedded database support with Apache Derby, and a more ECMAScript compliant CFSCRIPT.

For development of ColdFusion applications, several tools are available: primarily Adobe Dreamweaver CS4, Macromedia HomeSite 5.x, CFEclipse, Eclipse and others. "Tag updaters" are available for these applications to update their support for the new ColdFusion 8 features.

Adobe ColdFusion 9

ColdFusion 9 (Codenamed: Centaur) was released on October 5, 2009. New features for CF9 include:

Adobe ColdFusion 10

ColdFusion 10 (Codenamed: Zeus) was released on May 15, 2012. New or improved features available in all editions (Standard, Enterprise, and Developer) include (but are not limited to):

Additional new or improved features in ColdFusion Enterprise or Developer editions include (but are not limited to):

The lists above were obtained from the Adobe web site pages describing "new features", as listed first in the links in the following list.

For additional information on new features, see:

CF10 was originally referred to by the codename Zeus, after first being confirmed as coming by Adobe at Adobe MAX 2010, and during much of its prerelease period. It was also commonly referred to as "ColdFusion next" and "ColdFusion X" in blogs, on Twitter, etc., before Adobe finally confirmed it would be "ColdFusion 10". For much of 2010, ColdFusion Product Manager Adam Lehman toured the US setting up countless meetings with customers, developers, and user groups to formulate a master blueprint for the next feature set. In September 2010, he presented the plans to Adobe where they were given full support and approval by upper management.[15]

The first public beta of ColdFusion 10 was released via Adobe Labs on 17 February 2012.

Adobe ColdFusion 11

ColdFusion 11 (Codenamed: Splendor) was released on April 29, 2014.

ColdFusion 11 has actually removed many features previously identified in earlier releases as "deprecated" or no longer supported. Usually you could continue to use a certain tag or function. This is no longer the case. For example, changes to the CFLOG tag that were deprecated will cause an error condition in CF11 and not in CF10.

Adobe ColdFusion (2016 release)

Adobe ColdFusion (2016 release), Codenamed: Raijin was released on February 16, 2016.

Adobe ColdFusion 13

ColdFusion 13 (Codenamed: Aether[16]). The next version of ColdFusion server post Raijin has been codenamed Aether. Aether is the Greek god of upper atmosphere.

Development roadmap

On August 13, 2012 Adobe announced, via their Official ColdFusion Blog, the new Roadmap for ColdFusion including the code names, "Splendor", "Thunder" and "Dazzle", for the next two release versions. Adobe announced new features for ColdFusion including (but not limited to); Mobile - Streamlined Mobile Application Development, Revamped and new PDF functionalities, Enabling Enterprise to easily integrate with Social Media Streams, Enterprise mobility, Support for responsive multi screen content, Digital Marketing – Web, Mobile & Social Analytics and Customizable Enterprise Video Portal. Adobe also announced in the same Roadmap upcoming cloud enhancements. The Roadmap projects ColdFusion development out to the year 2021.

Features

Rich forms

ColdFusion Server includes a subset of its Macromedia Flex 1.5 technology. Its stated purpose is to allow for rich forms in HTML pages using CFML to generate Flash movies. These Flash forms can be used to implement rich internet applications, but with limited efficiency due to the ActionScript restrictions in place on Flash forms by Macromedia.

Flash forms also provide additional widgets for data input, such as date pickers and data grids.

In previous versions of ColdFusion, some form validation and additional widgets were available using a combination of Java applets and JavaScript. This option persists for those who do not wish to use Flash, however not all features are supported.

An example:

<cfform format="flash" method="post" width="400" height="400">
	<cfinput type="text" name="username" label="Username" required="yes" >
	<cfinput type="password" name="password" label="Password" required="yes" >
	<cfinput type="submit" name="submit" value="Sign In" >
</cfform>

ColdFusion also includes some XForms capability, and the ability to "skin" forms using XSLT.

PDF and FlashPaper generation

ColdFusion can generate PDF or FlashPaper documents using standard HTML (i.e. no additional coding is needed to generate documents for print). CFML authors place HTML and CSS within a pair of cfdocument tags and specify the desired format (FlashPaper or PDF). The generated document can then either be saved to disk or sent to the client's browser. ColdFusion 8 has now introduced the cfpdf tag which allows for control over PDF documents including PDF forms, and merging of PDFs. These tags however do not use Adobe's PDF engine but a combination of the commercial JPedal Java PDF library and the free and open source Java library iText.

ColdFusion Components (Objects)

ColdFusion was originally not an object-oriented programming language like PHP versions 3 and below. ColdFusion falls into the category of OO languages that do not support multiple inheritance (along with Java, Smalltalk, etc.).[17] With the MX release (6+), ColdFusion introduced basic OO functionality with the component language construct which resembles classes in OO languages. Each component may contain any number of properties and methods. One component may also extend another (Inheritance). Components only support single inheritance. Object handling feature set and performance enhancing has occurred with subsequent releases. With the release of ColdFusion 8, Java-style interfaces are supported. ColdFusion components use the file extension cfc to differentiate them from ColdFusion templates (.cfm).

Remoting

Component methods may be made available as web services with no additional coding and configuration. All that is required is for a method's access to be declared 'remote'. ColdFusion automatically generates a WSDL at the URL for the component in this manner: http://path/to/components/Component.cfc?wsdl. Aside from SOAP, the services are offered in Flash Remoting binary format.

Methods which are declared remote may also be invoked via an HTTP GET or POST request. Consider the GET request as shown.

http://path/to/components/Component.cfc?method=search&query=your+query&mode=strict

This will invoke the component's search function, passing "your query" and "strict" as arguments.

This type of invocation is well-suited for Ajax-enabled applications. ColdFusion 8 introduced the ability to serialize ColdFusion data structures to JSON for consumption on the client.

The ColdFusion server will automatically generate documentation for a component if you navigate to its URL and insert the appropriate code within the component's declarations. This is an application of component introspection, available to developers of ColdFusion components. Access to a component's documentation requires a password. A developer can view the documentation for all components known to the ColdFusion server by navigating to the ColdFusion URL. This interface resembles the Javadoc HTML documentation for Java classes.

Custom Tags

ColdFusion provides several ways to implement custom markup language tags, i.e. those not included in the core ColdFusion language. These are especially useful for providing a familiar interface for web designers and content authors familiar with HTML but not imperative programming.

The traditional and most common way is using CFML. A standard CFML page can be interpreted as a tag, with the tag name corresponding to the file name prefixed with "cf_". For example, the file IMAP.cfm can be used as the tag "cf_imap". Attributes used within the tag are available in the ATTRIBUTES scope of the tag implementation page. CFML pages are accessible in the same directory as the calling page, via a special directory in the ColdFusion web application, or via a CFIMPORT tag in the calling page. The latter method does not necessarily require the "cf_" prefix for the tag name.

A second way is the development of CFX tags using Java or C++. CFX tags are prefixed with "cfx_", for example "cfx_imap". Tags are added to the ColdFusion runtime environment using the ColdFusion administrator, where JAR or DLL files are registered as custom tags.

Finally, ColdFusion supports JSP tag libraries from the JSP 2.0 language specification. JSP tags are included in CFML pages using the CFIMPORT tag.

Currently, alternative server platforms generally support ColdFusion 8 functionality, with minor changes or feature enhancements.

Interactions with other programming languages

ColdFusion and Java

The standard ColdFusion installation allows the deployment of ColdFusion as a WAR file or EAR file for deployment to standalone application servers, such as Macromedia JRun, and IBM WebSphere. ColdFusion can also be deployed to servlet containers such as Apache Tomcat and Mortbay Jetty, but because these platforms do not officially support ColdFusion, they leave many of its features inaccessible. As of ColdFusion 10 Macromedia JRun was replaced by Apache Tomcat.

Because ColdFusion is a Java EE application, ColdFusion code can be mixed with Java classes to create a variety of applications and use existing Java libraries. ColdFusion has access to all underlying Java classes, supports JSP custom tag libraries, and can access JSP functions after retrieving the JSP page context (GetPageContext()).

Prior to ColdFusion 7.0.1, ColdFusion components could only be used by Java or .NET by declaring them as web services. However, beginning in ColdFusion MX 7.0.1, ColdFusion components can now be used directly within Java classes using the CFCProxy class.[18]

Recently, there has been much interest in Java development using alternate languages such as Jython, Groovy and JRuby. ColdFusion was one of the first scripting platforms to allow this style of Java development.

ColdFusion and .NET

ColdFusion 8 natively supports .NET within the CFML syntax. ColdFusion developers can simply call any .NET assembly without needing to recompile or alter the assemblies in any way. Data types are automatically translated between ColdFusion and .NET (example: .NET DataTable → ColdFusion Query).

A unique feature for a Java EE vendor, ColdFusion 8 offers the ability to access .NET Assemblies remotely through proxy (without the use of .NET Remoting). This allows ColdFusion users to leverage .NET without having to be installed on a Windows operating system.

Acronyms

The acronym for the ColdFusion Markup Language is CFML. When ColdFusion templates are saved to disk, they are traditionally given the extension .cfm or .cfml. The .cfc extension is used for ColdFusion Components. The original extension was DBM or DBML, which stood for Database Markup Language. When talking about ColdFusion, most users use the acronym CF and this is used for numerous ColdFusion resources such as user groups (CFUGs) and sites.

CFMX is the common abbreviation for ColdFusion versions 6 and 7 (aka ColdFusion MX).

Alternative server environments

ColdFusion originated as proprietary technology based on Web technology industry standards. However, it is becoming a less closed technology through the availability of competing products. Such alternative products include (in alphabetical order):

The argument can be made that ColdFusion is even less platform-bound than raw Java EE or .NET, simply because ColdFusion will run on top of a .NET app server (New Atlanta), or on top of any servlet container or Java EE application server (JRun, WebSphere, JBoss, Geronimo, Tomcat, Resin Server, Jetty (web server), etc.). In theory, a ColdFusion application could be moved unchanged from a Java EE application server to a .NET application server.

Vulnerabilities

In March 2013, a known issue affecting ColdFusion 8, 9 and 10 left the National Vulnerability Database open to attack.[19] The vulnerability had been identified and a patch released by Adobe for CF9 and CF10 in January.[20]

In April 2013, a ColdFusion vulnerability was blamed by Linode for an intrusion into the Linode Manager control panel website.[21] A security bulletin and hotfix for this had been issued by Adobe a week earlier.[22]

In May 2013, Adobe identified another critical vulnerability, reportedly already being exploited in the wild, which targets all recent versions of ColdFusion on any servers where the web-based administrator and API have not been locked down. The vulnerability allows unauthorized users to upload malicious scripts and potentially gain full control over the server.[23][24] A security bulletin and hotfix for this was issued by Adobe 6 days later.[25] This is currently the only known vulnerability for ColdFusion 9 and ColdFusion 10 (currently supported versions).[26][27]

In April 2015 there was reported a Cross-site scripting (XSS) vulnerability in Adobe ColdFusion 10 before Update 16, and in ColdFusion 11 before Update 5, that allows remote attackers to inject arbitrary web script or HTML;[28] however, it's exploitable only by users who have authenticated through the administration panel. [29]

See also

References

  1. Wallack, Todd (January 23, 1999). "Allaire sees stellar market debut". Boston Herald. Archived from the original on November 2, 2015. Retrieved 2015-11-02.
  2. Metz, Cade (October 9, 2014). "Beef up your browser". PC Mag. Retrieved 2015-11-02.
  3. Auerbach, Jon; Kerber, Ross (January 30, 1998). "Massachusetts Rises Despite Passing of High-Tech Giants". Wall Street Journal. Retrieved 2015-11-02.
  4. Hilwa, Al (January 2015). "Turning Up the Heat on Mobile Application Development with ColdFusion 11" (PDF). IDC White Paper. Retrieved 2015-11-02.
  5. "Flex and ColdFusion - Adobe Developer Connection".
  6. Consuming a Web Service in ASP.NET Tutorial Archived December 23, 2008, at the Wayback Machine.. Digital Colony (2007-08-23). Retrieved on 2013-07-21.
  7. Archived July 20, 2006, at the Wayback Machine.
  8. "ColdFusion 10 Update 14".
  9. "ColdFusion 10 Update 15".
  10. "ColdFusion 11 Update 1".
  11. "ColdFusion 11 Update 2".
  12. "ColdFusion 11 Update 3".
  13. ColdFusion's 10th Birthday Party
  14. "Adobe Ships ColdFusion 8". Adobe Systems Incorporated. 2007-07-30.
  15. "Adrocknaphobia - "The Modern age of ColdFusion"". Archived from the original on 2011-06-15. Retrieved 2012-12-28.
  16. "Code names for ColdFusion server and ColdFusion Builder » Adobe ColdFusion Blog".
  17. "Ramblings of an Internet MoFo".
  18. "Using the CFC Proxy".
  19. Cloud; Aws; Amazon; Microsoft; Google; cloud, SHOCK and AWS: The fall of Amazon's deflationary; Put down that Oracle database patch: It could cost $23, 000 per CPU; Sales, Amazon Reveals One Weird Trick: A. Loss On Almost $20bn In. "Downed US vuln catalog infected for at least TWO MONTHS".
  20. Security Advisories: APSA13-01 - Security Advisory for ColdFusion. Adobe. Retrieved on 2013-07-21.
  21. "Linode Blog » Security incident update".
  22. Adobe – Security Bulletins: APSB13-10 – Security update: Hotfix available for ColdFusion. Adobe.com. Retrieved on 2013-07-21.
  23. 0-Day Exploit for ColdFusion | Edge Web HostingEdge Web Hosting. Blog.edgewebhosting.net (2013-05-08). Retrieved on 2013-07-21.
  24. "Adobe - Security Advisories: APSA13-03 - Security Advisory for ColdFusion".
  25. "Adobe - Security Bulletins: APSB13-13 - Security update: Hotfix available for ColdFusion".
  26. Adobe ColdFusion 10.x. Secunia. Retrieved on 2013-07-21.
  27. Adobe ColdFusion 9.x. Secunia. Retrieved on 2013-07-21.
  28. NIST National Vulnerability Database. "National Cyber Awareness System: Vulnerability Summary for CVE-2015-0345". Retrieved 2015-08-31.
  29. Shubham Shah. "ColdFusion Bomb: A Chain Reaction From XSS to RCE". Retrieved 2015-08-31.

External links

Wikibooks has a book on the topic of: Programming:ColdFusion
This article is issued from Wikipedia - version of the 11/21/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.