Admin Undo Checkout Does nothing

If you are having a problem using Vault, post a message here.
Post Reply
TrendyTim
Posts: 15
Joined: Thu Mar 01, 2012 12:33 pm

Admin Undo Checkout Does nothing

Post by TrendyTim » Tue May 15, 2012 8:20 pm

I was originally going to post asking for help because the much loathed (by me anwyay) web based admin client would not undo checkout on any files, after a lot of head scratching i wrote up a post, then as i was explaining it i had a theory and solved it.

I had 1075 files that were checked out (90% of them are orphaned due to rebuilds of machines while files were checked out, and mostly files that were never updated but had to be there, accumulated over 6+ years of neglect of the repository).

Vault admin client has 4 html input fields per file, which meant 4300 items to postback (also that many were posted back when navigating on the side menu which ended up giving me the error message that led me to a solution). When i thought to check the system log, i saw some from asp.net with unhandled exceptions, "The URL-encoded form data is not valid".

TO cut a long story short, In december the geniuses at MS in their infinite wisdom released a patch that threw exceptions if there were more than 1000 items in the HTTP collection.

So if anyone has this issue of the undo checkout not doing anything (not even an error message response). Then they can add this to their web.config for vault in the appSettings area.

Code: Select all

<add key="aspnet:MaxHttpCollectionKeys" value="10000" />
That will let you have ~2500 files checked out until you have a problem. Of course SourceGear could vastly improve that UI to have options like undo checkout recursive from a certain path, undo checkout of certain users etc, but until that is a reality there is a workaround.

Im sure MS had a good reason but 1000 seems quite arbitary and relatively small, but they also could have publicised it, the amount of time its cost developers since december is more than it should have been.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Admin Undo Checkout Does nothing

Post by Beth » Wed May 16, 2012 7:50 am

Thank you for your post and the additional information.
Beth Kieler
SourceGear Technical Support

Post Reply