InvalidOperationException during resend confirmation when duplicate address #633

Closed
deepakverma opened this Issue Nov 8, 2012 · 1 comment

Comments

Projects
None yet
2 participants

there is a resend confirmation action https://nuget.org/account/RESENDCONFIRMATION which is not discoverable and doesn't seem to work

Expected:

  1. resend confirmation should be linked from somewhere in the website (to be easily discoverable)
  2. currently it throws the following error that needs to be fixed. I think it;s because I have two userIDS with the same email address (then it should not allow duplicate ids with the same email address)

System.InvalidOperationException: Sequence contains more than one element
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source) at System.Linq.Queryable.SingleOrDefault[TSource](IQueryable1 source)
at NuGetGallery.UsersController.ResendConfirmation(ResendConfirmationEmailViewModel model) in c:\Ops\NuGetGallery\Website\Controllers\UsersController.cs:line 210
at lambda_method(Closure , ControllerBase , Object[] )
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.ControllerActionInvoker.<>c__DisplayClass15.b__12()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList1 filters, ActionDescriptor actionDescriptor, IDictionary2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)

Member

TimLovellSmith commented Mar 18, 2013

You will see resend confirmation if you have an unconfirmed email address only, when you log in, which I think is sufficiently discoverable.
I'm going to rename your bug to reflect the InvalidOperationException issue.

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