Friday, May 20, 2005

Sympathy For The Developer

Sometimes, you get an error message that really makes you feel for the developer who had to handle it. This one that I just got in Eclipse is a case in point:



"An internal error occurred while showing an internal error" ???

Aww, poor love....

Tuesday, May 10, 2005

The Best Site Map Ever?

I recently received the following gem as part of a Requirements Document (shudder) and thought it was such a classic of the genre, that I just had to share it.

(The colours and system names have been changed to protect the guilty...)

The figure below provides a high level site map for the «app name deleted» application:





There. Perfect. I've racked my brains trying to think of an appropriate comment to make, but.... I just can't add anything to it.

Apache 404 / CGI Weirdness....

OK, this is a strange one. I've been scratching my head for a couple of hours over this, and I just can't see what I've missed - can some good samaritan see the glaringly obvious and point it out to me?

I have a system that needs the same code deployed across 1 Win2K3 box, and 1 Redhat box. Same code on each.

In this system, I use a custom 404 to allow the site owner to specify an arbitrary "short link" for a CMS page.

e.g. Owner of site X creates a page with the title "About Us", and gives it a short link of "about".
He/she can then use the url "http://(site domain)/about" to access that page.

Simple enough, shouldn't be anything complicated there, right? I just have a custom 404 that uses CGI variables to parse the requested URL and redirect to the appropriate page, right?

Well....

It works fine on the Windows box, but for some reason, Apache is not passing on the requested URL to the 404 page. I've dumped the CGI scope in the 404 page, and I get nothing mentioning the requested URL. Nada. Zip. Bugger all.

QUERY_STRING is empty, and although the Apache documentation says it will provide a whole load of REDIRECT_xxxx variables, I don't get any of them in CFMX.

I freely admit I'm not an Apache expert, so if anyone out there IS, and they know what I'm missing - can you help?

Relevant versions:
Apache 2.0.46
Red Hat Enterprise (9)
CFMX Standard 6.1, updater 3

UPDATE 8th August 2005: FIXED!

I discovered that although a cfdump of the CGI scope doesn't show the existence of the REDIRECT_URL key, if you just test for existence with StructKeyExists( CGI.REDIRECT_URL ) it *is* actually there, and you can use it.

....which raises some curious questions about how cfdump is working under the hood....