The Developer's Tidbit

April 18, 2009

Railo on Linux, CFEXECUTE bug

Filed under: linux, railo — Ben @ 6:12 am

I stumbled upon this bug today that drove me nuts trying to figure out what was wrong. I was using the Linux FILE program within the Railo <CFEXECUTE /> tag  to extract MIME type data from a large collection of files,  so it could be inserted into a database. The problem was Railo kept on getting stuck in a prolonged loop. After much troubleshooting I realised the affected files all contained spaces within their file names.

A search on the Internet revealed this bug was recently submitted by Andy Carmichael at https://jira.jboss.org/jira/browse/RAILO-163. Essentially I am guessing Railo’s <CFEXECUTINE /> incorrectly converts spaces into newline characters. Combining the bug with the Linux FILE program causes the active CFM application to be caught in a very prolonged process.

Unfortunately until the bug is fixed, the only work around I came to was to scan and skip any file names containing spaces, or to automatically rename them to names with under scores.

Below is the error message when using the Linux VDIR command on a file containing spaces within legal quotes.

vdir: cannot access '/home/A: No such file or directory
vdir: cannot access test: No such file or directory
vdir: cannot access file.text': No such file or directory

April 14, 2009

VirtualBox 2.2.0 Upgrade Networking Trouble

Filed under: linux, windows — Ben @ 7:29 pm

Today I upgraded my VirtualBox virtualization software to Sun’s newest and greatest version. Everything worked to plan except that my Bridge Networking on all my virtual machines broke. None of the host machine’s network adaptors would show up on the Bridge networking adapter list. After much fiddling around and searching the Internet I came across a simple solution that worked. After the VirtualBox upgrade, I simply had to re-run the VirtualBox installation package to run a ‘repair’ install. After the repaired installation, VirtualBox recommended a host reboot which I did and now everything works as it should.

Blog at WordPress.com.