Not for production use
At my previous job I was tasked with automating many wireless devices, usually without too many problems. That was until I encountered the Linksys e3000. I'm not removing names since this is a consumer model wireless router and I was using one purchased off the shelf. Presumably the following is still true.
Unsurprisingly the consumer model had no API so I was left to automate its use with some other method. Fair enough. When I viewed the page source I found the following header at the top of every page and had my first encounter with what would become a miserable, frustrating, and soul-crushing exercise.
*********************************************************
* Copyright 2003, CyberTAN Inc. All Rights Reserved
*********************************************************
This is UNPUBLISHED PROPRIETARY SOURCE CODE of CyberTAN Inc.
the contents of this file may not be disclosed to third parties,
copied or duplicated in any form without the prior written
permission of CyberTAN Inc.
This software should be used as a reference only, and it not
intended for production use!
Apparently Linksys outsourced software dev to these guys in 2003 or something and have been shipping "it not intended for production use" code ever since. Moving on.
The forms, their possible values, and their current values were all populated with javascript text replacement. The javascript was spread between functions repeatedly defined in every page as well as a giant monstrosity of a master file. The possible values and value names changed between some but not all pages, even though they were for the same feature. Some of these values were defined twice, but one with a "_" prefix. Which one actually specified the correct value was apparently random and required trial and error to figure out.
I remember having other issues with hidden fields that were filled out by javascript triggered when changing other fields. Submitting the new settings required every property be specified or the router would crash and require a hard boot of the entire device, so I had to go through every page, submit a bunch of possible combinations of data, and then look at the sent data to get the right values to include.
There was malformed HTML, huge blocks of commented code, numerous debug comments, and everything was poorly formatted. The best quote I found was something like "Erin to fix this," which given its presence leads me to believe Erin didn't fix it.
It sucked, killed my spirit, and contributed to my desire to quite a few months later. Never again.
I'm not the first to find this apparently. This guy wrote up a similar report when dealing with the WRT54G3G.
Posted Jun 20, 2012, 7:57 PM UTC · edited