gbif / portal-feedback

User feedback for the GBIF API, website and published data. You can ask questions here. 🗨❓
30 stars 16 forks source link

Improve error feedback: 2 URLs in "Home page" field cause "Submission failed" error without further detail #797

Open gbif-portal opened 6 years ago

gbif-portal commented 6 years ago

Improve error feedback: 2 URLs in "Home page" field cause "Submission failed" error without further detail

An institution (The Mauritius Herbarium) attempted registration through the form, which consistently failed with the error message "Submission failed. For some reason, your submission failed. Please contact us about your interest at helpdesk@gbif.org." On investigation, the reason for the failure was that the field for "home page" contained more than one URL, separated through a semicolon. The unspecific error message did not allow the registering publisher to find the cause for the failed submission.

It would be very helpful, also for helpdesk, if in the submission process the error message could be a bit more specific, or if critical fields could be either validated before submission, or omitted from the registration process if they are not mandatory fields.


fbitem-ab3ccb02d409d7c1b6652ceee60e3937ce068b3e User provided contact info: @ahahn-gbif System: Firefox 58.0.0 / Windows 10 0.0.0 Referer: https://www.gbif.org/become-a-publisher Window size: width 1207 - height 716 API log&_a=(columns:!(_source),index:'prod-varnish-',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'response:%3E499')),sort:!('@timestamp',desc))) Site log&_a=(columns:!(_source),index:'prod-portal-',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'response:%3E499')),sort:!('@timestamp',desc))) System health at time of feedback: CRITICAL

thomasstjerne commented 6 years ago

Action points:

Portal:

  1. Strengthen regex for url input (don´t rely on input type="url").
  2. Add a timestamp to the log msg

Registry:

  1. Give human readable error messages that the portal can display to the user when a submission fails https://github.com/gbif/registry/issues/38