1.0.0.855 - Error access log as plain text

link went to http://build2/New_Project/ci/builds/exportlog/log

Server Error in '/' Application.

The parameters dictionary contains a null entry for parameter 'id' ofnon-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResultExportLog(Int32)' in 'Continua.Web.Builds.Controllers.BuildsController'. Anoptional parameter must be a reference type, a nullable type, or be declared asan optional parameter.
Parameter name: parameters

Description:An unhandled exception occurred during the execution of the current webrequest. Please review the stack trace for more information about the error andwhere it originated in the code.

Exception Details:System.ArgumentException: The parameters dictionary contains a null entryfor parameter 'id' of non-nullable type 'System.Int32' for method'System.Web.Mvc.ActionResult ExportLog(Int32)' in'Continua.Web.Builds.Controllers.BuildsController'. An optional parameter mustbe a reference type, a nullable type, or be declared as an optionalparameter.
Parameter name: parameters

Source Error:

c__DisplayClass15.b__12()at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters)at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)at System.Web.Mvc.Controller.ExecuteCore()at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.b__5()at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.b__0()at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)-->

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult ExportLog(Int32)' in 'Continua.Web.Builds.Controllers.BuildsController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.Parameter name: parameters]   System.Web.Mvc.ActionDescriptor.ExtractParameterFromDictionary(ParameterInfo parameterInfo, IDictionary`2 parameters, MethodInfo methodInfo) +666   System.Linq.WhereSelectArrayIterator`2.MoveNext() +110   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +488   System.Linq.Enumerable.ToArray(IEnumerable`1 source) +104   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +165   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39   System.Web.Mvc.<>c__DisplayClass15.b__12() +125   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +640   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +312   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +691   System.Web.Mvc.Controller.ExecuteCore() +162   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +305   System.Web.Mvc.<>c__DisplayClassb.b__5() +62   System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +20   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +469   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +375

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NETVersion:4.0.30319.272

Hi redwyre,
The reason for that error is the URL does not contain a build ID. The ID is the unique identifier for a build so the link you’ve provided is trying to export the log for build (ie. no build). The last part of that URL should contain a build id (positive integer). Did you manually type that URL in or did you click a link from somewhere else that brought the error page up?

If you were brought to that error page by clicking a link somewhere in Continua, could you please tell us which page it was?

Thanks,

Vinnie.

From the home page, I click on the number in the version column which takes me to the build page, then I click on the Log tab, and click “Plain Text”

The URL of the link is “http://localhost/SharedTestbed/ci/builds/exportlog/3”, but I end up getting redirected to “http://localhost/SharedTestbed/ci/builds/exportlog/log

Is that happening all the time? I briefly tried reproducing this but couldn’t. I’ll need to look into it further

It seems to only happen with a new job, before anything has actually been logged

ah yes, I can reproduce it now. Thanks, will look into it.