Today’s Annoyances

Today has been a buggy day at work.

First, I tried again to get Java Web Start working on an application. It launches JWS, but then my application hangs leaving a javaw.exe process in the background. From some searching on the forum, it seems that other people are having the same problem. In fact, it may be due to a bug in Java Web Start, which means there’s nothing I can do about it.

Next, I’m having a problem with Selenium tests on a PHP application which uses sessions. It took me a while to figure out why my test user would get logged out immediately without any error messages when running tests with the Test Runner instead of the Selenium IDE. I have ini_set(‘session.referer_check’, ‘stuffhere’); set to improve security a bit, but when I run the test suite through the Test Runner, $_SERVER[‘HTTP_REFERER’] is set to the Selenium Test Runner’s URL, which obviously fails the referrer check. And since errors were being pushed to a session that was immediately lost when the referrer check failed, I wasn’t seeing any errors. So what’s my solution? Well, for now I’ll have to disable the referrer check. It can be spoofed anyway… That means changing a fair amount of apps though… bleh.

XML as data interchange format

This article by James Clark, the Technical Lead of the original XML Working Group, puts into words exactly what I was thinking when XML first came out and was being touted as the be-all end-all of data interchange formats. For years I haven’t been confident in my knowledge of XML to vocalize my disenchantment with it, so hearing a similar opinion from the horse’s mouth is rather comforting!

Found via ongoing

Coming soon: Embattle