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

URI validation errors wipe out fileset uploads when creating a work #2070

Open
eporter23 opened this issue Dec 20, 2022 · 0 comments
Open

URI validation errors wipe out fileset uploads when creating a work #2070

eporter23 opened this issue Dec 20, 2022 · 0 comments
Labels
bug Something isn't working Software Engineering Flag work for software engineering team

Comments

@eporter23
Copy link
Contributor

eporter23 commented Dec 20, 2022

Describe the bug
A clear and concise description of what the bug is.

Our form validation for URI entries seems to wipe out fileset uploads during an editing or creating session in which new filesets have been added. These seems to occur in all environments, and may be a longstanding bug that is unlikely to occur often.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new work
  2. Fill out required metadata in the Descriptions tab
  3. Enter an incomplete URL in a url-validated field (e.g. rights documentation)
  4. Click over to the Files tab and upload a file
  5. Click on the deposit agreement checkbox
  6. Click save
  7. See the invalid URL alert message
  8. View the Files tab and note that the file upload has disappeared

Expected behavior
A clear and concise description of what you expected to happen.

The URL validation error message should appear when a form field entry does not validate, but should not remove uploaded Filesets.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Browser: Mac Safari

Additional context
Add any other context about the problem here.

Replicated this behavior in both test (abel-add_keyword_matches_to_search_results@869c5bf71057bb4d33a5b25276946afe1e5aba28 ) and arch (correct_importer_index_sorting@7780b4e8144ce09400f150dff6dc9e962bcca258) and prod (v2.0.8@32abdcef68a4a2239cfdd018056d808fc7c6a446)

@eporter23 eporter23 added bug Something isn't working Software Engineering Flag work for software engineering team labels Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Software Engineering Flag work for software engineering team
Projects
None yet
Development

No branches or pull requests

1 participant