Importing for others creates work with blank byline and external author with email address for name

Description

Steps to reproduce:

  1. Log in as an archivist and Open Doors user

  2. Post > Import Work

  3. Fill in a URL, but make sure to use a site where we aren't set up to detect the author info automatically (this rules out slashdom.net and any journal site) – something random like JIRA is a good bet

  4. Check "Import for others ONLY with permission"

  5. Fill in "Author Email Address" with an address that does not belong to an Archive user

  6. Press "Import"

What happens:

  • The work is imported successfully.

  • The byline on posted work is " [archived by ARCHIVIST NAME]" with no visible author name.

  • The external authors page at http://test.ao3.org/opendoors/external_authors lists the email address as the external author name. (You'll need Open Doors privileges to access this page.)

What should happen:
The work should not be imported. I should be redirected back to the import page with a red flash error that says something like, "Author Name cannot be blank when importing for others." (If there's existing error message text in the code, please use that instead.)

Assignee

Unassigned

Reporter

Sarken

Roadmap

Work Importing

Priority

Medium

Affects versions

Fix versions

None

Components

BackEnd

Difficulty

Medium

Required Access Level

Archivist

Milestone

Internal 0.9