<%@Language =JScript %> <% /********************************************************************************** Debug Portal - Version 2 PAGE : DBGPortal_ViewBucket.asp DESCRIPTION : Entry point to the debug portal site. MODIFICATION HISTORY: 11/13/2001 - Created ***********************************************************************************/ //Session("Authenticated") = "Yes" //Source: 0 - Command Line // 1 - Auto path // 2 - Cer // 5 - Manual Upload // 6 - Debuggerless stress Response.buffer=false var CurrentDate = new Date() var FrameID = new String( Request.Querystring("FrameID") ) if( FrameID.toString() == "undefined" ) FrameID = 0 if ( Session("Authenticated") != "Yes" ) Response.Redirect("privacy/authentication.asp?../DBGPortal_ViewBucket.asp?" + Request.QueryString() ) %> <% if( SiteDown == 1 ) Responsef.Redirect ("dbgportalv2.asp") var UpdateBugNumber = Request.Form( "UpdateBugNumber" ) var BucketID = new String( Request.QueryString("BucketID") ) var ShowCustomerBuckets = new String( Request( "ShowCustomerBuckets" ) ) var Page = new String( Request("Page") ) var PageSize = new String( Request("PageSize") ) var OpenCustomerData = new String( Request("OpenCustomerData") ) var UserAlias = new String( GetShortUserAlias() ) var iBucket = new String( Request("iBucket") ) if ( Page == "undefined" ) Page="1" if (PageSize == "undefined" ) PageSize = "1000" if ( iBucket != "undefined" && BucketID == "undefined" ) var tmpiBucket = iBucket else var tmpiBucket = parseInt( BucketID, 10 ) var g_DBConn = GetDBConnection( Application("CRASHDB3") ) //tmpiBucket stores an int representation of the BucketID value //lets check and see if it might be an ibucket value if ( (!isNaN( tmpiBucket ) && tmpiBucket != 0) || ( iBucket != "undefined" && BucketID == "undefined" ) ) { try { var Query= "DBGP_GetBucketIDByiBucket " + tmpiBucket var rsBucketID = g_DBConn.Execute( Query ) if ( !rsBucketID.EOF ) BucketID = new String( rsBucketID("BucketID") ) } catch( err ) { ; //Response.Write("Could not get bucket name by iBucket
") } } var URLEBucketID = Server.URLEncode( BucketID ) try { var Query = "DBGPortal_GetBucketData '" + BucketID + "'" var rsBucketData = g_DBConn.Execute( Query ) if ( !rsBucketData.EOF ) { var iBucket = new String( rsBucketData("iBucket") ) var DriverName = new String( rsBucketData("DriverName") ) var FollowUp = new String( rsBucketData("Followup") ) var Crashes = new String( rsBucketData("CrashCount") ) var SolutionID = new String( rsBucketData("SolutionID")) var BugID = new String( rsBucketData("BugID") ) var Area = new String( rsBucketData("Area") ) try { var PoolCorruption = new String( rsBucketData("PoolCorruption" ) ) } catch ( err ) { var PoolCorruption = null } } else { var iBucket = new String( 0 ) var DriverName = new String( "Not available" ) var FollowUp = new String( "Not available" ) var Crashes = new Number( 0 ) var SolutionID = new String( "Not available" ) var BugID = new String( "Not available" ) var Area = new String( "Not available" ) Response.Write( "

WARNING: No Bucket Data could be located for this bucket

" ) Response.Write( "This can be caused by the following reasons:
" ) Response.Write( "" ) } Query = "DBGPortal_GetBucketStatus '" + BucketID + "'" var rsBucketStatus = g_DBConn.Execute( Query ) if ( !rsBucketStatus.EOF ) { var BucketStatus = new String( rsBucketStatus( "BiggestComment" ) ) var BucketStatusString = new String( rsBucketStatus("Action") ) var BucketStatusAlias = new String( rsBucketStatus( "CommentBy" ) ) } else { var BucketStatus = 0 var BucketStatusString = "In progress" } } catch ( err ) { Response.Write("Could not get user buckets:
") Response.Write( "Query: " + Query + "
" ) Response.Write( "[" + err.number + "] " + err.description ) Response.End } var TotalPages = parseInt( Crashes / PageSize ) + 1 %>

<%=BucketID%>

/DBGPortal_ViewBucket.asp?<%=Request.QueryString()%>">
Driver Name iBucket FollowUp Crashes Response Raid data
<%=DriverName%> <%=iBucket%> <%=FollowUp%> <%=Crashes%> <% if ( trim( SolutionID ) == "null" && BucketStatus != "8" ) { Response.Write("No Response") } else { if ( BucketStatus == "8" && SolutionID == "null" ) { Response.Write ("Awaiting Response") BucketStatusString = "Response Requested" } else Response.Write("ResponseID " + SolutionID + "\n" ) //Response.Write( "ID #" + SolutionID + "  - View Solution") } %> <% if ( BugID == "null" ) Response.Write("None assigned") else Response.Write( "RAID #" + BugID + " Area: " + Area ) %>
<% if ( trim( SolutionID) == "null" && BucketStatus != "8" ) { Response.Write("\n" ) } else { if ( BucketStatus == "8" ) { if ( BucketStatusAlias == GetShortUserAlias() ) Response.Write("\n" ) } } %> <% if ( PoolCorruption == "true" ) { Response.Write(" " ) } else { Response.Write("" ) } %>
<% var rsBucketData = g_DBConn.Execute("DBGPortal_GetBucketComments '" + BucketID + "'" ) var altColor = "sys-table-cell-bgcolor2" if ( rsBucketData.EOF ) Response.Write( "") while ( !rsBucketData.EOF ) { if ( altColor == "sys-table-cell-bgcolor2" ) altColor = "sys-table-cell-bgcolor1" else altColor = "sys-table-cell-bgcolor2" Response.Write("") Response.Write("") Response.Write("") Response.Write("") Response.Write("") Response.Write("") rsBucketData.MoveNext() } %>
Date Email Action Comment
No comments have been made for this bucket
" + rsBucketData("EntryDate") + "" + rsBucketData("CommentBy") + "" + rsBucketData("Action") + "" + rsBucketData("Comment") + "

Loading data, please wait . . .

Create Logfile during debug sessions If a crash does not belong in this bucket, send mail to AndreVa
<% try { var rsCrashData = g_DBConn.Execute("DBGPortal_GetBucketCrashes '" + BucketID + "'" ) var altColor = "sys-table-cell-bgcolor2" var ReplaceString = /\\/g while ( !rsCrashData.EOF ) { if ( altColor == "sys-table-cell-bgcolor2" ) altColor = "sys-table-cell-bgcolor1" else altColor = "sys-table-cell-bgcolor2" Response.Write("\n") var newPath = new String(rsCrashData("FilePath") ) newPath = newPath.replace( ReplaceString, "\\\\" ) Response.Write("\n") var FullDmp = new String( rsCrashData("bFullDump" ) ) if ( FullDmp == "1" ) Response.Write("\n") else Response.Write("\n") var Source = new String( rsCrashData("Source") ) if ( Source == "1" ) Response.Write("\n") else if ( Source == "2" ) Response.Write("\n") else if ( Source == "0" ) Response.Write("\n") else if ( Source == "5" ) Response.Write("\n") else if ( Source == "6" ) Response.Write("\n") else Response.Write("\n") var EntryDate = new Date( rsCrashData("EntryDate") ) var EntryDate = ( EntryDate.getMonth() + 1 ) + "/" + EntryDate.getDate() + "/" + EntryDate.getFullYear() Response.Write("\n") var BuildNumber = new String( rsCrashData("BuildNo" ) ) var SP = BuildNumber.substr( 4, 4 ) var BuildNumber = BuildNumber.substr( 0, 4 ) Response.Write("\n") Response.Write("\n") Response.Write("\n") Response.Write("\n") Response.Write("\n") rsCrashData.MoveNext() } } catch( err ) { Response.Write("" ) } %>
Debug FullDMP Source Entry Date Build SP Email Crash Cab Path
Launch debugger for this crash dumpYes! Web SiteCER ReportCMD DBGManual UploadStress UploadUnknown[" + Source + "]" + EntryDate + "" + BuildNumber + "" + SP + "" + rsCrashData("Email") + "" + rsCrashData("FilePath") + "
An error occurred trying to retrive the bucket crashes, please try this task again
" + err.description + "