CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Jeremy D. Miller -- The Shade Tree Developer

Under the hood and working with .Net, TDD, Software Design, and Agile Stuff

A tear your hair out kind of bug

I had a scary seeming bug this afternoon that I had to share.  Our tester showed me a problem with a web application not showing a valid option in a dropdown box on a staging environment server.  After totally dismissing my "we haven't changed that code in six months" line, 3-4 of us went to work to chase down the problem before we had to cancel an uncomfortably visible production rollout.

First, check all the database data.  Everything checks out just fine.  The FitNesse regression tests are still humming along, so it's doubtful to me that the sql is the problem.

We looked at a user specific configuration file and all of the necessary options were indeed there.

I moved on to troubleshooting the remoting configuration.  We have a specific environment test for the remoting configuration, but maybe somebody ignored a reported failure or it didn't work.  Nope, the remoting was fine.

I threw my hands up in disgust and went back to something else.  Our tester piped up in about 10 minutes with the underlying cause.  The system was looking for the user configuration file with the filename [User Number].xml.  The folder view we were using on the staging server was hiding the file extensions.  The real name of the file on the file system was [User Number].xml.xml.  Doh.

My faith in reality and reason restored, production push on track, and there goes a good chunk out of an otherwise productive day:(



Comments

Joshua Flanagan said:

"Hide extensions for known file types" - worst... feature... ever.
(and its enabled by default! gah!)
# June 5, 2006 8:45 PM

Haacked said:

That's the first thing i change on a new machine.  Doh!
# June 5, 2006 9:54 PM

Jeremy D. Miller said:

Me too, but this was the staging server where nobody pays much attention
# June 5, 2006 10:07 PM

johnwood said:

Another similar 'feature' I hate is when you create an xml file in notepad and it sticks a .txt at the end because you didn't select All Files in the save as dialog. Argh!
# June 5, 2006 10:17 PM

Geoff Stockham said:

I've found that FileMon from SysInternals is becoming my debugging tool of choice.  It's amazing how many times an error can be tracked down just by looking what files an app is accessing.
# June 6, 2006 4:47 AM

Jason Haley said:

# June 6, 2006 11:11 AM

Brian Chiasson said:

Sounds like you need another test :)
# June 6, 2006 11:23 AM

Jeremy D. Miller said:

Brian,

The irritating thing is that we DO have a test for missing user configuration files in our build.  The problem is that there is too much junk/incomplete test data on this server, so we generally ignore the test results.  There's a rant on the way someday about poor test server hygiene.
# June 6, 2006 11:42 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Jeremy D. Miller

Jeremy began his IT career writing "Shadow IT" applications to automate his engineering documentation, then wandered into software development because it looked like more fun. Jeremy previously worked as a systems architect building mission critical supply chain software for a Fortune 100 company and learned agile development practices as a .Net consultant at ThoughtWorks, one of the pioneers of agile development. Jeremy is the author of the open source StructureMap (http://structuremap.sourceforge.net) tool for Dependency Injection with .Net and the forthcoming StoryTeller (http://storyteller.tigris.org) tool for supercharged FIT testing in .Net. Jeremy's thoughts on just about everything software related can be found on his weblog "The Shade Tree Developer" at http://codebetter.com/blogs/jeremy.miller, part of the popular CodeBetter site. Jeremy is a Microsoft MVP for C#. Check out Devlicio.us!

This Blog

Syndication

News

All opinions expressed here constitute my (Jeremy D. Miller's) personal opinion, and do not necessarily represent the opinion of any other organization or person, including (but not limited to) my fellow employees, my employer, its clients or their agents.

About Me

"Best Of" Compendium

StructureMap (Dependency Injection for .Net)

StoryTeller (Supercharged Fit)

Build your own Cab

TestDriven

MVP