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

Null value in Roles-file causes issue during update #803

Open
lafe opened this issue Apr 29, 2018 · 0 comments
Open

Null value in Roles-file causes issue during update #803

lafe opened this issue Apr 29, 2018 · 0 comments

Comments

@lafe
Copy link

lafe commented Apr 29, 2018

When I tried to update from 5.2 to 6.3, I encountered the following issue during migration:

System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at Bonobo.Git.Server.Data.Update.ADBackendUpdate.Pre600UpdateTo600.UpdateRoles(String dir, Dictionary`2 users)
at Bonobo.Git.Server.Data.Update.ADBackendUpdate.Pre600UpdateTo600.UpdateADBackend()
at Bonobo.Git.Server.MvcApplication.Application_Start()

Reason for this error was that the roles JSON file contained the null value in the members array. As I never edited the files in "App_Data" manually, I suspect that there was an issue in a previous version that caused this.

lafe added a commit to lafe/Bonobo-Git-Server that referenced this issue Apr 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant