Asset store cannot import an asset with null created_by

Description

This was discovered because the video upload feature in Studio does not set created_by. On export, the created_by element for the asset contains the text None. On importing, an error is raised when the asset store tries to parse "None" as an int. A file that triggers the exception is attached.

On a more general note, we shouldn't be importing edit_info for assets, because it contains user information that is specific to a particular deployment. Rather, the edit_info should contain the information of the importing user. Given that, it seems like it would make more sense to not export the contents of edit_info.

1 2 3 4 5 6 Traceback (most recent call last): File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/xml_importer.py", line 279, in import_asset_metadata asset_md.from_xml(asset) File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/assetstore/__init__.py", line 203, in from_xml value = int(value) ValueError: invalid literal for int() with base 10: 'None'

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Status

Assignee

Unassigned

Reporter

Greg Price

Labels

Reach

None

Impact

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Stakeholders

None

Story Points

2

Priority

CAT-3
Configure