ColdFusion 11 Migration Guide

September 03, 2015 / Anit Kumar Panda

We are happy to announce the first release of Migration Guide for ColdFusion 11. This guide will help you, to migrate your ColdFusion 9 and ColdFusion 10 servers to ColdFusion 11 seamlessly. This guide also gives a fair overview for migration of legacy servers to the most recent and supported versions. This helps you understand the various phases of migration, along with, how to use Code Analyzer. The Code Analyzer reviews the CFML pages that you specify and informs you of any potential compatibility issues and ensures a smooth migration.

We also tried to cover, few of the common migration issues and possible solutions.

Here is the link to ColdFusion 11 Migration Guide and don’t forget to visit the “Help and tutorials” section inside the guide.

We are open for your suggestions and feedback.


Discount Code Extended for 20% off ColdFusion Summit: 20Years4CF

September 02, 2015 / Elishia Dvorak

We're continuing to celebrate ColdFusion's 20 year anniversary by extending the 20% off discount code through September 30th.  

When registering, use code 20Years4CF to receive 20% off your registration.

 

https://cfsummit.adobeevents.com/

 

We encourage you to come meet our team, learn, share, and network with us!

 

Details:

When: November 9th and 10th, 2015

Where: Aria Resort & Casino, Las Vegas, Nevada

Pricing:  $399 

Room Rate: $179/nt


Read More


ColdFusion 11 Update 6 and ColdFusion 10 Update 17 now available

August 27, 2015 / Piyush Kumar Nayak

The following ColdFusion updates are now available for download. These updates address a common XXE vulnerability in BlazeDS. For details refer the security bulletin hyperlinks in the sections below.

Users who are using LCDS with ColdFusion, should refer this technote, for updating their LCDS installation.

ColdFusion 11 Update 6

This Update addresses a vulnerability mentioned in the security bulletin APSB15-21. This update is cumulative and includes fixes from previous ColdFusion 11 updates.

For details, refer this technote.

ColdFusion 10 Update 17

This Update addresses a vulnerability mentioned in the security bulletin APSB15-21. This update is cumulative and includes fixes from previous ColdFusion 10 updates. 

For details, refer this technote.


Connector Backup

August 25, 2015 / Milan Chandna

Everyone using ColdFusion  with connector might have faced a scenario where connector has to be uninstalled and then installed back again. Though it looks straightforward but some times it is not as user might have one's own customizations in connector. So before uninstalling, the connector files had to be backed up and after installing the changes had to be merged back. Though upgrade feature in connector is the best answer to this problem but we will save that discussion for some other time. In this blog I will focus on backing up connector files before uninstalling.

 

Important files or files which users might want to refer later are usually in connector magic_number directory. These directories are present in ".../ColdFusion11/config/wsconfig/...". Now the good part is that as part of ColdFusion11 update, we have pushed in a feature which backs up all the connector files by default on uninstallation. After uninstalling you will notice that a new directory called backup will be created in ".../ColdFusion11/config/wsconfig/...". This backup directory will contain directories like 1.1, 1.2, 2.1, 2.2, depending on your connector directories. These directories are the backed up magic_number directories. Yes, we backup whole magic_number directory as user might have his own files(new or modified). Now coming to the naming convention of backed up directories.

 Let's take an example of directory 2.1, The first number denotes the actual magic_number of the connector directory which is uninstalled and the second number denotes the number of times it is uninstalled. So in case you have multiple connectors configured, the magic_number directories will be present in wsconfig/ directory as "1" and "2" and "3" and so on. Now if you decide to uninstall a connector which is in directory "2", after uninstallation it will be backed up in backup directory as "2.1". How will you know that the connector you uninstalled was in directory "2"? You can always check the properties file to find out. So that part explains the first number of "2.1". And as I said the second number denotes the number of times it has been uninstalled. Let's assume that after uninstalling connector "2", you installed another connector, by default it will be installed under directory "2", as it's space is empty. And this time again if you uninstall it, it will be backed up in backup directory as "2.2", because it has been uninstalled second time. May be not so easy to understand by reading this but trust me, try this in your development server and you will get it in a snap.

 

Just wanted to let you know that this feature has been pushed in so that you will never lose your work, not even unknowingly. And yeah almost forgot to tell you, connector will be backed up by default if you uninstall it from command prompt but if you uninstall it from wsconfig UI tool, you will be asked if you want the backup or not. Trust me, if you are not sure then take a backup for safety reasons. Hope it will you.

 

Thanks,

Milan.


Using ColdFusion DDX for attaching files to PDF

August 24, 2015 / Pooja Vadiraja

ColdFusion allows users to attach files to PDF Documents using processddx action of CFPDF tag. DDX provides FileAttachments source element to attach files.

Below is the DDX script for attaching files to PDF documents:

<?xml version="1.0" encoding="UTF-8"?>
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/coldfusion_ddx.xsd">

<PDF result="Out1">

	<FileAttachments source="attach0" >
		<File filename="file1.pdf" mimetype="application/pdf"/>
		<FilenameEncoding encoding="UTF-8"/>
		<Description>Attaching file1</Description>
	</FileAttachments>

	<FileAttachments source="attach1" >
		<File filename="file2.pdf" mimetype="application/pdf"/>
		<FilenameEncoding encoding="UTF-8"/>
		<Description>Attaching file2</Description>
	</FileAttachments>

       <PDF source="In1" access="deptA"/>

</PDF>

<PasswordAccessProfile name="deptA">
       <Password>1</Password>
</PasswordAccessProfile>

</DDX>

The FileAttachments contains the following attributes:

·        source specifies the document to attach

·        filename denotes the name of the file that appears in the PDF document

·        mimetype is optional and can be specified as null

·        description provides the description for the file.

PasswordAccessProfile is used for password protected documents. Password sub element specifies the password for PDF source (i.e, In1).

The DDX script attaches “attach0” and “attach1” to “In1” and writes the PDF document to “Out1”. However, we need to pass the values for “attach0”, “attach1”, “In1” and “Out1” via ColdFusion struct.

Below is the cfm file for executing the above DDX script:

<cfset ddxfile = ExpandPath('.\ddx_test1.ddx')>
<cfset sourcefile = ExpandPath('.\ddx_test1.pdf')>
<cfset attachfile1 = ExpandPath('.\ddx_test2.pdf')>
<cfset attachfile2 = ExpandPath('.\ddx_test3.pdf')>
<cfset destinationfile = ExpandPath('.\ddx_result1.pdf')>

<cffile action="read" variable="myVar" file="#ddxfile#"/>

<cfset inputStruct=StructNew()>
<cfset inputStruct.In1="#sourcefile#">
<cfset inputStruct.attach0="#attachfile1#">
<cfset inputStruct.attach1="#attachfile2#">

<cfset outputStruct=StructNew()>
<cfset outputStruct.Out1="#destinationfile#">


<cfpdf action="processddx" ddxfile="#myVar#" inputfiles="#inputStruct#" outputfiles="#outputStruct#" name="ddxVar">

In the cfm, the source file and the attachments are passed to the inputStruct and the resultant file is passed to the outputStruct. Thought this example demonstrates using pdf files, in general any file can be attached to a PDF document.

 

 


Blue Mango Theme Design By Mark Aplet

Super Powered by Mango Blog