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

"Error: Validation failed: Locations is invalid" will reset subject locations to [] #1885

Closed
eatyourgreens opened this issue Aug 2, 2016 · 0 comments · Fixed by #1893
Closed
Assignees
Labels

Comments

@eatyourgreens
Copy link
Contributor

Came across this today while playing around with updates to metadata for Diagnosis London subjects in subject set 3492, which have text/plain files in the locations array.

Updating a subject without setting the admin flag returns Error: Validation failed: Locations is invalid, which I'm pretty sure is correct because we don't officially support text subjects yet?

Anyway, inspecting those subjects after the failed update, the locations array had been reset to [], which I'm pretty sure is a bug. I had a back up of the subject set data, so I was able to update the subject locations manually in admin mode, but this seems like a dangerous bug for any project that needs to update subject metadata.

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.

2 participants