Frequently Asked Questions - Departmental Support

This is a confirmed Macromedia bug 48509 present on servers with sandbox security enabled. Here is a workaround you can use: instead of #ToString(myxmldoc)# use <cfset xmlOut="<?xml version=""1.0"" encoding=""UTF-8"" ?>" & myxmldoc.XMLRoot.toString()>#HtmlCodeFormat(xmlOut)# More details are available in the Macromedia Forum.

Yes, they are. Make sure your Application.cfm file exists, its name starts with capital A (unix is case sensitive), and the session is enabled, for example, with

Please, point your CFPOP tag to mail.uoguelph.ca. Regarding CFMAIL - we set the appropriate SMTP server in the ColdFusion administrator so the server attribute does not have to be specified in the CFMAIL tag - your application will use the default value set by the administrator.

The optional BlockFactor is not supported by the JDBC-ODBC bridge used to connect to MS Access databases.

Applications are denied access to the CreateObject function and the CFObject tag due to security considerations. If you are using CFCs please instantiate them with the CFInvoke tag instead of the CFObject.

If you need to run a specific job please design and test a CFMX script which executes the job, then contact the CCS Help Centre (preferably by email) and submit the following information:

  1. Which CFMX server should this task be set up - production or stage. Each task is to be tested on the stage first before moving to production.
  2. Top level directory for your website - if your website is www.uoguelph.ca/myweb then the top level directory is myweb
  3. Optional name of the task - the full task name will be "YourContextName.OptionalPart". This can be used in your future requests to refer to this specific task
  4. URL of the page which executes the job
  5. Request timeout - please, design your scheduled tasks efficiently, i.e., make them complete quickly. CCS reserves the right to suspend any task that may have a negative impact on the CFMX service
  6. StartDate, startTime, interval, endDate, endTime (see the cfschedule tag for details). The scheduled tasks should run outside of the peak hours, i.e., in early morning hours. If you do not require any specific time then give us an approximate window when you wish to run the job and we will coordinate it with other scheduled tasks
  7. Should the output be saved in a file? If yes then submit the file name and directory name (please, set the appropriate permissions for the cfmx server)
  8. Any other requested parameters - see the cfschedule tag for details

The IP address of the client is the valuue of the CGI variable CGI.HTTP_X_FORWARDED_FOR for production websites, and CGI.REMOTE_ADDR for stage.web.uoguelph.ca or any virtual hostnames configured for your production website.

Please, see the example below and also check the CFLDAP documentation. In the example below, if an exception is thrown then either the uid/login name or the password was incorrect or the server connection failed - inspect the exception message for more details. If the uid or password was incorrect the cfcatch.Message would include Inappropriate authentication. If the connection failed the cfcatch.Message would be Connection to LDAP Server failed. success
uid=#uid#
displayName=#results.displayName#
givenName=#results.givenName#
sn=#results.sn#
ou=#results.ou#
failed

You can also use Unix ACLs to add extended permissions for the the cfmx user to your target folder (see ColdFusionMX: Unix ACLs FAQ for more information).

ACL stands for Access Control List and is an extension to the standard Unix file and directory permissions.

Login via SSH using your Organizational account then and type the following command:

setfacl -bR /www/rootdir

Where rootdir is your website root directory. To remove ACLs for a single file or directory omit the R option.

The runtime user cfmx needs write access to the directory where the files will be written. Login via SSH using your Organizational account and type the following command:

setfacl -m u:cfmx:w /www/path_to_dir

Where path_to_dir is the path to the directory where the files will be written.

Another method is to create the directory using cfdirectory tag and manage files with cffile in the root of your site. You can create and manage directories and files this way as long as they are at the root of your site or nested in folders created with code.