<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - ColdFusion 11: &lt;cfclient&gt; seems to require /CFIDE to be available</title>
    <link>https://forums.adobe.com/community/coldfusion/mobile?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Sat, 03 May 2014 15:43:54 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-05-03T15:43:54Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>ColdFusion 11: &lt;cfclient&gt; seems to require /CFIDE to be available</title>
      <link>https://forums.adobe.com/message/6350547?tstart=0#6350547</link>
      <description>&lt;!-- [DocumentBodyStart:fd1ca7c6-15fc-4fc6-b321-44619b205833] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;G'day:&lt;/p&gt;&lt;p&gt;I am reposting this from my blog ("&lt;a class="jive-link-external-small" href="http://cfmlblog.adamcameron.me/2014/04/coldfusion-11-cfclient-seems-to-require.html" rel="nofollow"&gt;ColdFusion 11: &amp;lt;cfclient&amp;gt; seems to require /CFIDE to be available&lt;/a&gt;") at the suggestion of Adobe support:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="twitter-tweet" data-conversation="none" lang="en"&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="https://twitter.com/dacCfml" rel="nofollow"&gt;@dacCfml&lt;/a&gt; &lt;a class="jive-link-external-small" href="https://twitter.com/coldfusion" rel="nofollow"&gt;@ColdFusion&lt;/a&gt; Can you post your queries at &lt;a class="jive-link-external-small" href="http://t.co/8UF4uCajTC" rel="nofollow"&gt;http://t.co/8UF4uCajTC&lt;/a&gt; for all cfclient and mobile queries.&lt;/p&gt;&amp;#8212; Anit Kumar Panda (@anitkumar85) &lt;a class="jive-link-external-small" href="https://twitter.com/anitkumar85/statuses/461203317712879618" rel="nofollow"&gt;April 29, 2014&lt;/a&gt;&lt;/blockquote&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have edited this in places to remove language that will be deemed inappropriate by the censors here. Changes I have made are in [square brackets]. The forums software here has broken some of the styling, but so be it.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;G'day:&lt;br/&gt;This will be a short one... I just want to trot out various observations I make about &lt;code&gt;&amp;lt;cfclient&amp;gt;&lt;/code&gt; as I make them. I don't want to waste too much effort on it.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;I also feel a bit dirty round about now... I'm about to use a &lt;code&gt;&amp;lt;cfform&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;As should everyone, I do not expose &lt;code&gt;/CFIDE&lt;/code&gt; to the outside world. This is a terrible vector for security vulnerabilities. One that Adobe seems to be dragging its heels about resolving once and for all ("&lt;a class="jive-link-external-small" href="https://bugbase.adobe.com/index.cfm?event=bug&amp;amp;id=3732913" rel="nofollow"&gt;Isolate the /CFIDE/scripts directory from the rest of /CFIDE" (3732913)&lt;/a&gt;).&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;So when I'm using &lt;code&gt;&amp;lt;cfform&amp;gt;&lt;/code&gt; (which is only ever when I am writing example code like this), I need to redirect ColdFusion to look in my &lt;span style="background-color: #ea9999;"&gt;isolated directory&lt;/span&gt; which just has the script stuff in it:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="source-code" style="padding-left: 30px;"&gt;&lt;code&gt;&amp;lt;cfajaximport scriptsrc="&lt;span style="background-color: #ea9999;"&gt;/lib/js/CF/scripts&lt;/span&gt;"&amp;gt; &amp;lt;cfform method="post" action="#CGI.script_name#"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfinput type="dateField" name="date"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type="submit" name="submitButton" value="Go"&amp;gt; &amp;lt;/cfform&amp;gt; &amp;lt;cfdump var="#form#"&amp;gt; &lt;/code&gt;&lt;/pre&gt;&lt;p style="padding-left: 30px;"&gt;&lt;br/&gt;Note: &lt;strong&gt;do not use &lt;code&gt;&amp;lt;cfform&amp;gt;&lt;/code&gt; or any of ColdFusion's other UI wizard tags. Just don't. See here: "&lt;a class="jive-link-external-small" href="https://github.com/cfjedimaster/ColdFusion-UI-the-Right-Way" rel="nofollow"&gt;ColdFusion UI the Right Way&lt;/a&gt;", here: "&lt;a class="jive-link-external-small" href="http://www.raymondcamden.com/index.cfm/2014/1/23/Im-not-going-to-tell-you-to-stop-using-ColdFusion-UI-tags-anymore" rel="nofollow"&gt;I'm not going to tell you to stop using ColdFusion UI tags anymore...&lt;/a&gt;", and here: "&lt;a class="jive-link-external-small" href="http://cfmlblog.adamcameron.me/2014/01/oi-you-bloody-wankers-stop-using.html" rel="nofollow"&gt;Oi! You [naughty] [people]! Stop using ColdFusion UI controls&lt;/a&gt;".&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;Anyway, back to the code. The poorly-named &lt;a class="jive-link-external-small" href="https://wikidocs.adobe.com/wiki/display/coldfusionen/cfajaximport" rel="nofollow"&gt;&lt;code&gt;&amp;lt;cfajaximport&amp;gt;&lt;/code&gt;&lt;/a&gt; tag allows one to point ColdFusion at a different, isolated directory. That's quite handy.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;Now I try it with my &lt;code&gt;&amp;lt;cfclient&amp;gt;&lt;/code&gt; code:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="source-code" style="padding-left: 30px;"&gt;&lt;code&gt;&amp;lt;cfajaximport scriptsrc="/lib/js/CF/scripts"&amp;gt; &amp;lt;cfclient&amp;gt; &amp;lt;cfset message = "G'day World"&amp;gt; &amp;lt;cfoutput&amp;gt;#message#&amp;lt;/cfoutput&amp;gt; &amp;lt;/cfclient&amp;gt; &lt;/code&gt;&lt;/pre&gt;&lt;p style="padding-left: 30px;"&gt;&lt;br/&gt;and I get this:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table border="1" cellspacing="0" style="padding-left: 30px;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="border:1px solid black;"&gt;14:46:11.292&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;GET&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;a class="jive-link-external-small" href="http://localhost:8511" rel="nofollow"&gt;http://localhost:8511&lt;/a&gt;&lt;span&gt; /shared/scratch/blogExamples/coldfusion&lt;/span&gt;&lt;br/&gt;/CF11/cfclient/moveScriptDir.cfm&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;[HTTP/1.1 200 OK 284ms]&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border:1px solid black;"&gt;14:46:11.655&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;GET&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;a class="jive-link-external-small" href="http://localhost:8511" rel="nofollow"&gt;http://localhost:8511&lt;/a&gt;&lt;span&gt; /lib/js/CF/scripts/ajax/messages/cfmessage.js&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;[HTTP/1.1 200 OK 5ms]&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border:1px solid black;"&gt;14:46:11.655&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;GET&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;a class="jive-link-external-small" href="http://localhost:8511" rel="nofollow"&gt;http://localhost:8511&lt;/a&gt;&lt;span&gt; /lib/js/CF/scripts/ajax/package/cfajax.js&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;[HTTP/1.1 200 OK 10ms]&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;14:46:11.656&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;GET&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;&lt;a class="jive-link-external-small" href="http://localhost:8511" rel="nofollow"&gt;http://localhost:8511&lt;/a&gt;&lt;span style="background-color: #ffe599;"&gt;/CFIDE/cfclient/&lt;/span&gt;cfclient_main.js&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;[HTTP/1.1 &lt;span style="background-color: yellow;"&gt;404&lt;/span&gt; /CFIDE/cfclient/cfclient_main.js 3ms]&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;14:46:11.656&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;GET&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;&lt;a class="jive-link-external-small" href="http://localhost:8511/CFIDE/cfclient/cffunctions.js" rel="nofollow"&gt;http://localhost:8511/CFIDE/cfclient/cffunctions.js&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;[HTTP/1.1 &lt;span style="background-color: yellow;"&gt;404&lt;/span&gt; /CFIDE/cfclient/cffunctions.js 3ms]&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;14:46:11.657&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;GET&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;&lt;a class="jive-link-external-small" href="http://localhost:8511/CFIDE/cfclient/cfclient_main.js" rel="nofollow"&gt;http://localhost:8511/CFIDE/cfclient/cfclient_main.js&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;[HTTP/1.1 &lt;span style="background-color: yellow;"&gt;404&lt;/span&gt; /CFIDE/cfclient/cfclient_main.js 1ms]&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;14:46:11.657&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;GET&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;&lt;a class="jive-link-external-small" href="http://localhost:8511/CFIDE/cfclient/cffunctions.js" rel="nofollow"&gt;http://localhost:8511/CFIDE/cfclient/cffunctions.js&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;"&gt;&lt;span style="color: red;"&gt;[HTTP/1.1 &lt;span style="background-color: yellow;"&gt;404&lt;/span&gt; /CFIDE/cfclient/cffunctions.js 0ms]&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="padding-left: 30px;"&gt;&lt;br/&gt;Groan. Because &lt;code&gt;&amp;lt;cfclient&amp;gt;&lt;/code&gt; doesn't put its script files in the scripts dir, does it? No. Of course it doesn't. Muppets.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;But this could still be solved if one could specify some other way of pointing it to a different location for its resources, but... no. There's not a way of doing this that I can find. Short of [messing] around on the web server and setting up virtual directories pointing to &lt;code&gt;/CFIDE/cfclient&lt;/code&gt;. This isn't really a hardship, but still, it just shouldn't be necessary, and I can't help but think this is a bit sloppy on the part of Adobe.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;It also demonstrates that for their internal testing they don't test this sort of thing. Which is odd, as it's the &lt;em&gt;second&lt;/em&gt; thing I tested: you know, that it even &lt;em&gt;works&lt;/em&gt; on a secured server.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;That's it. I've nothing else to say on this topic. I'll raise a bug for this shortly, once I have the article published so I can refer back to it: &lt;a class="jive-link-external-small" href="https://bugbase.adobe.com/index.cfm?event=bug&amp;amp;id=3750729" rel="nofollow"&gt;3750729&lt;/a&gt;.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;--&lt;br/&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:fd1ca7c6-15fc-4fc6-b321-44619b205833] --&gt;&lt;img src='/beacon?t=1415919357325' /&gt;</description>
      <pubDate>Sat, 03 May 2014 15:43:54 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6350547?tstart=0#6350547</guid>
      <dc:date>2014-05-03T15:43:54Z</dc:date>
      <clearspace:dateToText>6 months 2 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

