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

fix: support successful import/export with user id 0 #6842

Merged
merged 1 commit into from May 17, 2016

Conversation

kirrg001
Copy link
Contributor

@kirrg001 kirrg001 commented May 16, 2016

When we export blog data via the Ghost Admin interface, then import again and the JSON file contains 0 for a user_id reference (for example in updated_by field), the importer logic will throw the following exception:

ERROR: Attempting to import data linked to unknown user id
 Error
    at Error.DataImportError (/core/server/errors/data-import-error.js:6:18)
    at /core/server/data/import/utils.js:84:23

no issue

  • support successful import/export with user id 0
  • tested with sqlite3 and mysql

@kirrg001 kirrg001 changed the title [WIP] fix: support successful import/export with user id 0 fix: support successful import/export with user id 0 May 16, 2016
@ErisDS ErisDS merged commit 7d7bfc3 into TryGhost:master May 17, 2016
@kirrg001 kirrg001 deleted the fix/import-when-userid-is-0 branch May 26, 2016 13:48
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

Successfully merging this pull request may close these issues.

None yet

2 participants