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

'System.Dynamic.ExpandoObject' does not contain a definition for 'propertiesToUpdate' #16431

Closed
MikeAlhayek opened this issue Jul 11, 2024 · 1 comment · Fixed by #16432
Closed
Labels
Milestone

Comments

@MikeAlhayek
Copy link
Member

Describe the bug

if we use UseScriptToSyncRoles option in the login settings and provide a script that does not use propertiesToUpdate property, we get the following exception.

eUserAsync threw an exception Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'System.Dynamic.ExpandoObject' does not contain a definition for 'propertiesToUpdate'
   at CallSite.Target(Closure, CallSite, Object)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at CallSite.Target(Closure, CallSite, Object)
   at OrchardCore.Users.Handlers.ScriptExternalLoginEventHandler.UpdateUserInternal(UpdateUserContext context, LoginSettings loginSettings)
   at OrchardCore.Users.Handlers.ScriptExternalLoginEventHandler.UpdateUserAsync(UpdateUserContext context)
   at OrchardCore.Users.Controllers.AccountController.ExternalLoginSignInAsync(IUser user, ExternalLoginInfo info)    at CallSite.Target(Closure, CallSite, Object)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at CallSite.Target(Closure, CallSite, Object)
   at OrchardCore.Users.Handlers.ScriptExternalLoginEventHandler.UpdateUserInternal(UpdateUserContext context, LoginSettings loginSettings)
   at OrchardCore.Users.Handlers.ScriptExternalLoginEventHandler.UpdateUserAsync(UpdateUserContext context)
   at OrchardCore.Users.Controllers.AccountController.ExternalLoginSignInAsync(IUser user, ExternalLoginInfo info)

Orchard Core version

main

@MikeAlhayek MikeAlhayek added this to the 2.0 milestone Jul 11, 2024
Copy link

We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues).

This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here.

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

Successfully merging a pull request may close this issue.

1 participant