Railo is reborn as Lucee

Railo No Comments »

In case you had not heard yet, Railo is no more. Details are sketchy at best, and there has been no official explanation from anyone, but it seems that pretty much everyone that was ever involved with Railo has now left the company. One can only assume that they had some sort of falling out with the owners of "The Railo Company", but since the developers (Igal and Micha) have left as well, this pretty much spells the end for Railo as with no-one to develop it further it is unlikely that there will ever be a new release. 

The good news is that Micah and Igal have released a new fork of Railo called LuceeBeing as Railo was an open source project, this means that for all intents and purposes Lucee is simply the last version of Railo with a new name and as such is a drop in repalcement that will function exactly the same. What was to be Railo 4.5 has now been released as Lucee 4.5 instead.
There is already an installer availabe over at Lucee.org, but if you do not wish to do a clean install, then you can find upgrade/migration instructions HERE.

In the coming weeks I will be replacing Railo with Lucee on the CFML Developer hositng server as well as upgrading ColdFusion to Version 11. I will also be making Lucee the default CFML engine rather than ColdFusion, as it is far more convenient for users to be able to manage everything themselves via the Lucee web admin rather than having to open a support ticket to get DSN's etc created.

I can't say I care too much for the new name, but CFML lives on which is great news :-)


ColdFusion 10 now available for testing

ColdFusion , News No Comments »

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

  1. put the old web.config back, and then re-enable via WebsitePanel
  2. 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

  1. just restore your original web.config
  2. comment out or delete the CF10 stuff, and put in the Railo settings as per the instructions on the support page.



Mura CMS: Hide menus for pages with restricted access

ColdFusion , Railo 5 Comments »

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
[site root]/default/includes/contentRenderer.cfc

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')>
                                    <cfset allowLink=True>
                            <cfelseif arguments.restrictgroups neq ''>
                                    <cfset allowLink=False>
                                    <cfloop list="#arguments.restrictgroups#" index="G">
                                        <cfif listFind(session.mura.memberships,'#G#;#application.settingsManager.getSite(variables.event.getValue('siteID')).getPublicUserPoolID()#;1')>
                                        <cfset allowLink=true>
            <cfelseif !arguments.loggedin and arguments.restrict>
                <cfset allowLink=false>


Do you want ColdFusion 10 ?

ColdFusion , News 18 Comments »

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.




A new realtime CFML code testing tool

ColdFusion , Railo 7 Comments »

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.


Powered by Mango Blog. Design by Russ Michaels and inspired by styleshout
RSS Feeds