After 5-6 months of problems getting CF10 sandboxing to work (even Adobe were baffled), it seems the problem is finally solved (almost), so I have now put ColdFusion 10 online for everyone to try out.
As CF10 works considerably differently to previous versions due to JRUN being replaced by Tomcat, there may be some additional tweaks I need to make in sandboxes to get things working perfectly, so if you find anything not working as expected then just let me know.
The other issue with CF10 running on Tomcat is the requirement for a jakarta virtual directory and ISAPI filters, this meant there was no way to enable CF10 via WebsitePanel and no way for users to even enable it manually via web.config. I certainly did not want to be having to manually enable CF for every user, this is inconvenient for everyone, so I have to find a better solution. So Instead of using the native connectors that come with CF10 I have used the BonCode connector that Railo uses. In my tests so far this is working fine, but it is possible there may be some unexpected behaviour, so let me know if you find anything odd.
How to enable ColdFusion 10 on your site.
firstly backup your web.config file just in case.
If you are currently using ColdFusion 9, I would suggest to disable it first via WebsitePanel to avoid any conflicts.
now download THIS ZIP FILE and upload the contents to your WWWROOT folder.
That’s it, fingers cross you should now be using CF10.
to verify you can do the following.
<cfoutput>cf version: #server.coldfusion.productversion#</cfoutput>
If you made any customisations to your web.config, you can now copy them over from from the file you just backed up.
To revert back CF9
- put the old web.config back, and then re-enable via WebsitePanel
- manually remove (or comment out) all the CF10 stuff from your current web.config, and re-enable CF9 via WebsitePanel
To revert back to Railo
- just restore your original web.config
- comment out or delete the CF10 stuff, and put in the Railo settings as per the instructions on the support page.
I have just recently been playing with mura in the last 2 days which I decided to use for the new CFLIVE website.
One function I need is to have menus/pages which will only be visible to logged in users. While Mura does allow you to restrict access to pages, it still displays the menus/links and allows access to the page but gives a login prompt instead of the page content, I could not find any way to hide the menu links as well.
On the Mura forums even BlueRiver themselves have suggested the only option is to create a hard coded menu instead, which really seems like a terrible work around to me, although that reply was 5 years old, so perhaps there was no better way to do it back then.
Anyway I found a better solution, but please be aware as I said, I have only been using Mura for 2 days, and have no more than a few hours experience with Mura code at this point, so if there is a better way of doing this, feel free to let me know.
Open the file /requirements/mura/content/contentRenderer.cfc
find the "allowlink function, around line 287 and copy this function to your site's contentRenderer.cfm
now simply add the <cfelseif> block below, this will stop restricted pages showing in the menu if the user is not logged in.
<cfif arguments.loggedIn and (arguments.restrict)>
<cfif arguments.restrictgroups eq '' or listFind(session.mura.memberships,'S2IsPrivate;#application.settingsManager.getSite(variables.event.getValue('siteID')).getPrivateUserPoolID()#') or listFind(session.mura.memberships,'S2')>
<cfelseif arguments.restrictgroups neq ''>
<cfloop list="#arguments.restrictgroups#" index="G">
<cfelseif !arguments.loggedin and arguments.restrict>
I have recently been contacted by Rakshith Naresh from Adobe who has expressed an interest in possibly supporting cfmldeveloper and CFLIVE with a CF10 license (no doubt Adam Cameron’s digs on twitter contributed to this :-) ) . However as there has been very little interest in CF10 so far (I can count on 1 hand the number of people who have asked me about CF10 so far) he doesn’t think it would be warranted at this time, which is fair enough I guess as that is their decision, although personally I would have thought they would want to "get it out there" as much as possible regardless.
It does also beg the question "Why has no-one asked about CF10, is it through ignorence because you do not know about CF10 because Adobe have not marketed it very well, is it because you are really not very active in the community and do not keep up to date on what's new, or because you just do not care and are happy with CF9? It would be good if folks could leave some feedback on that too.
Anyway In order for this to change I will need to get some feedback/requests from you lot if you would like to see CF10 supported on cfmldeveloper and CFLive. In which please just add your comments to this blog post (or use the feedback button on the left of the site) expressing your interest so I can pass this along to Adobe for their consideration, cheers.
If you do not know what’s new in CF10, here are some links.
Last week while answering some coding questions on a discussion list I needed to post some example code, which meant if I wanted to test the code first then I needed access to a cf server. As I tend to do most of my list replies etc on my mobile device, I do not have a local CF installation to test with.
With PC sales dropping and mobile devices sales far exceeding PC sales these days, I would imagine most other people are doing most of their community activity on their mobile device as well, apart from those folks that seem to spend their entire day social networking rather than working.
I then considered how often I have seen other devs posting code snippets and saying "this is not tested code as I do not have access to a cf server right now", so it must be a fairly common scenario.
This make me think to myself "wouldn't it be handy if there was a web page I could go to where I could quickly just type some code into a form, submit it and the code would be executed and tell me if there were any errors and give me some debug output, surely someone has written such a tool ?
So I Googled it and was surprised that such a tool did not exist, that I could find.
Well it has been a long time since I wrong any kind of app as I simply do not get the time to do coding these days, so I thought I would write such a tool myself, and here it is, please give it a try and leave me some feedback, feel free to try and hack it and find any vulnerabilities or bugs, as long as you let me know about them.
Hey guys, I have now installed Railo 4 on the developer server, however this has somehow broken Railo 3 in the process.
I will work on getting this fixed later today, in the mean time, you can switch over to Railo 4 by making the following changes to your web.config.
As this is a new version will need to setup your Railo admin settings again and set your web admin password.
Here is a link to the new FAQ article explaining how to example railo.