Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage my packages page broken #1370

Closed
bhuvak opened this issue Jul 29, 2013 · 1 comment
Closed

Manage my packages page broken #1370

bhuvak opened this issue Jul 29, 2013 · 1 comment
Assignees

Comments

@bhuvak
Copy link
Contributor

bhuvak commented Jul 29, 2013

  1. Log in to nuget.org.
  2. Go to your account page and click on "Manage my packages".
  3. Looks like this happens for specific users account. It happens for my account and the profile page also doesnt open ( as that would also use FindPackagesByOwner internally) : http://www.nuget.org/profiles/bhuvak/

Stack trace from Elmah logs:

System.NullReferenceException: Object reference not set to an instance of an object.
at NuGetGallery.PackageService.FindPackagesByOwner(User user)
at NuGetGallery.UsersController.Packages()
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.b__41()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass81.<BeginSynchronous>b__7(IAsyncResult _) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult1.End()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.b__33()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.b__36(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.b__20()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.b__22(IAsyncResult asyncResult)

@ghost ghost assigned TimLovellSmith Jul 29, 2013
@TimLovellSmith
Copy link
Member

I believe the critical repro step for this bug was simply that you needed to have a package with no listed versions in your account. Of course there is also a slight bug in the code I wrote for this given that we want to show unlisted packages in this list when you are managing your account. Looks like I will be rewriting this function somewhat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants