Issue 17725

Publisher self-registration page not working

17725
Reporter: ahahn
Assignee: bko
Type: Bug
Summary: Publisher self-registration page not working
Description: Received report from GBIF Spain that a publisher registration through http://www.gbif.org/publishing-data/how-to-publish#/intro had not resulted in any response or effect within more than a week. Checking the list at http://drupaledit.gbif.org/admin/config/gbif/registry/eoi, there was no corresponding entry in the list waiting for manual sign-off. On follow-up (retry), the issue was that the "submit" button was not functional on the page. 
Priority: Critical
Resolution: Fixed
Status: Closed
Created: 2015-07-26 12:55:23.561
Updated: 2015-08-05 16:09:30.65
Resolved: 2015-08-05 16:09:30.507


Author: ahahn@gbif.org
Comment: A second contact to helpdesk (CRIA) reports the same issue.
Created: 2015-07-27 11:03:27.871
Updated: 2015-07-27 11:03:27.871


Author: trobertson@gbif.org
Created: 2015-07-27 11:22:43.504
Updated: 2015-07-27 11:25:15.439
        
This is reproducable on the GBIF-uat environment.  My browser posted the following and received a {{500 Internal Server Error}}
{code}
{"contact":{"title":"Mr.","firstName":"Test","lastName":"Tester","email":"trobertson@gbif.org","phone":"+45-21288633"},"org":{"title":"GBIF Test By Tim","url":"http://ingore.com","address":"123 tweed","city":"tweed","province":"","zip":"2300","country":{"title":"Denmark","enumName":"DENMARK","official":"true","iso3":"DNK","isoNumerical":"208","iso2":"DK"},"desc":"This is a test in the UAT system only - IGNORE IT","isIntlOrg":"no","isAdminContact":"yes","adminContact":{},"isTechContact":"yes","techContact":{},"countrySelected":true},"endorsement":{"nationalParticipant":{"key":"4ddd294f-02b7-4359-ac33-0806a9ca9c6b","type":"COUNTRY","participationStatus":"VOTING","participantSince":2001,"gbifRegion":"EUROPE","continent":"EUROPE","title":"DanBIF - Danish Biodiversity Information Facility","participantTitle":"Denmark","abbreviation":"Denmark","description":"","email":[],"phone":[],"homepage":["http://www.danbif.dk"],"organization":"DanBIF","address":["Natural History Museum of Denmark","University of Copenhagen (Denmark)","Universitetsparken 15,"],"city":"Copenhagen Ø","province":"","country":"DK","postalCode":"DK-2100","createdBy":"registry-migration.gbif.org","modifiedBy":"ims-updater.gbif.org","created":"2010-05-03T22:02:00.000+0000","modified":"2010-05-03T22:02:00.000+0000","contacts":[{"key":49,"type":"ADDITIONAL_DELEGATE","primary":false,"userId":[],"firstName":"Isabel","lastName":"Calabuig","position":["Node Manager & Data Curator at DanBIF"],"description":"","email":["icalabuig@snm.ku.dk"],"phone":["+45 35 32 11 03"],"homepage":[""],"organization":"University of Copenhagen","address":["Natural History Museum of Denmark","Universitetsparken 15"],"city":"Copenhagen Ø","country":"DK","postalCode":"DK-2100"},{"key":2825,"type":"ADDITIONAL_DELEGATE","primary":false,"userId":[],"firstName":"Finn","lastName":"Borchsenius","position":["Associate Professor, Leader of DanBIF"],"description":"","email":["finn.borchsenius@sm.au.dk"],"phone":["+45 87 15 65 79"],"homepage":[""],"organization":"Aarhus University","address":["Aarhus University","Science Museums","Ole Worms Allé 1, Building 1137"],"city":"Aarhus C","country":"DK","postalCode":"DK-8000 "},{"key":1945,"type":"HEAD_OF_DELEGATION","primary":false,"userId":[],"firstName":"Katherine","lastName":"Richardson","position":["Professor, Head of DanBIF Board"],"description":"","email":["kari@science.ku.dk"],"phone":[],"homepage":[""],"organization":"University of Copenhagen","address":["University of Copenhagen","Natural History Museum of Denmark","Universitetsparken 15, Building 3, 2nd floor"],"city":"Copenhagen Ø","country":"DK","postalCode":"DK-2100 "},{"key":49,"type":"NODE_MANAGER","primary":false,"userId":[],"firstName":"Isabel","lastName":"Calabuig","position":["Node Manager & Data Curator at DanBIF"],"description":"","email":["icalabuig@snm.ku.dk"],"phone":["+45 35 32 11 03"],"homepage":[""],"organization":"University of Copenhagen","address":["Natural History Museum of Denmark","Universitetsparken 15"],"city":"Copenhagen Ø","country":"DK","postalCode":"DK-2100"},{"key":524,"type":"NODE_STAFF","primary":false,"userId":[],"firstName":"Lotte","lastName":"Endsleff","position":["Scientific Communications Officer & Web Editor at DanBIF"],"description":"","email":["lendsleff@snm.ku.dk"],"phone":["+45 35 32 10 24"],"homepage":[""],"organization":"University of Copenhagen","address":["Natural History Museum of Denmark","Universitetsparken 15"],"city":"Copenhagen Ø","country":"DK","postalCode":"DK-2100 "}],"endpoints":[{"key":38126,"type":"FEED","url":"http://danbif.dk/rightbox/nyheder/?get_rss=1","description":"News from Node","createdBy":"Andrea","modifiedBy":"Andrea","created":"2014-01-29T13:38:05.871+0000","modified":"2014-01-29T13:38:05.871+0000","machineTags":[]}],"machineTags":[],"tags":[],"identifiers":[{"key":13590,"type":"GBIF_PARTICIPANT","identifier":"2","createdBy":"registry-migration.gbif.org","created":"2013-10-24T09:06:08.312+0000"}],"comments":[]},"endorsingParticipant":{"key":"4ddd294f-02b7-4359-ac33-0806a9ca9c6b","type":"COUNTRY","participationStatus":"VOTING","participantSince":2001,"gbifRegion":"EUROPE","continent":"EUROPE","title":"DanBIF - Danish Biodiversity Information Facility","participantTitle":"Denmark","abbreviation":"Denmark","description":"","email":[],"phone":[],"homepage":["http://www.danbif.dk"],"organization":"DanBIF","address":["Natural History Museum of Denmark","University of Copenhagen (Denmark)","Universitetsparken 15,"],"city":"Copenhagen Ø","province":"","country":"DK","postalCode":"DK-2100","createdBy":"registry-migration.gbif.org","modifiedBy":"ims-updater.gbif.org","created":"2010-05-03T22:02:00.000+0000","modified":"2010-05-03T22:02:00.000+0000","contacts":[{"key":49,"type":"ADDITIONAL_DELEGATE","primary":false,"userId":[],"firstName":"Isabel","lastName":"Calabuig","position":["Node Manager & Data Curator at DanBIF"],"description":"","email":["icalabuig@snm.ku.dk"],"phone":["+45 35 32 11 03"],"homepage":[""],"organization":"University of Copenhagen","address":["Natural History Museum of Denmark","Universitetsparken 15"],"city":"Copenhagen Ø","country":"DK","postalCode":"DK-2100"},{"key":2825,"type":"ADDITIONAL_DELEGATE","primary":false,"userId":[],"firstName":"Finn","lastName":"Borchsenius","position":["Associate Professor, Leader of DanBIF"],"description":"","email":["finn.borchsenius@sm.au.dk"],"phone":["+45 87 15 65 79"],"homepage":[""],"organization":"Aarhus University","address":["Aarhus University","Science Museums","Ole Worms Allé 1, Building 1137"],"city":"Aarhus C","country":"DK","postalCode":"DK-8000 "},{"key":1945,"type":"HEAD_OF_DELEGATION","primary":false,"userId":[],"firstName":"Katherine","lastName":"Richardson","position":["Professor, Head of DanBIF Board"],"description":"","email":["kari@science.ku.dk"],"phone":[],"homepage":[""],"organization":"University of Copenhagen","address":["University of Copenhagen","Natural History Museum of Denmark","Universitetsparken 15, Building 3, 2nd floor"],"city":"Copenhagen Ø","country":"DK","postalCode":"DK-2100 "},{"key":49,"type":"NODE_MANAGER","primary":false,"userId":[],"firstName":"Isabel","lastName":"Calabuig","position":["Node Manager & Data Curator at DanBIF"],"description":"","email":["icalabuig@snm.ku.dk"],"phone":["+45 35 32 11 03"],"homepage":[""],"organization":"University of Copenhagen","address":["Natural History Museum of Denmark","Universitetsparken 15"],"city":"Copenhagen Ø","country":"DK","postalCode":"DK-2100"},{"key":524,"type":"NODE_STAFF","primary":false,"userId":[],"firstName":"Lotte","lastName":"Endsleff","position":["Scientific Communications Officer & Web Editor at DanBIF"],"description":"","email":["lendsleff@snm.ku.dk"],"phone":["+45 35 32 10 24"],"homepage":[""],"organization":"University of Copenhagen","address":["Natural History Museum of Denmark","Universitetsparken 15"],"city":"Copenhagen Ø","country":"DK","postalCode":"DK-2100 "}],"endpoints":[{"key":38126,"type":"FEED","url":"http://danbif.dk/rightbox/nyheder/?get_rss=1","description":"News from Node","createdBy":"Andrea","modifiedBy":"Andrea","created":"2014-01-29T13:38:05.871+0000","modified":"2014-01-29T13:38:05.871+0000","machineTags":[]}],"machineTags":[],"tags":[],"identifiers":[{"key":13590,"type":"GBIF_PARTICIPANT","identifier":"2","createdBy":"registry-migration.gbif.org","created":"2013-10-24T09:06:08.312+0000"}],"comments":[]},"beEndorsedByType":"cp"},"dataHosting":{"serverCapable":"yes","helpNeeded":"no","toolPlanned":"yes"},"recaptcha":{"response":"7445","challenge":"03AHJ_VusJtGIhSS2YhjcyzaSQ88UhyEz91Qbdhs0qlE2MMb4A5XWl2g9oLoEB_MjKDK2p-3EReYi3uyv0gDfZsazuMM-naVTlfQ7juiDF_h1x-d3bPGlJA2ZOuM6YUgNw5vobxVQE7B_IPxZMPOn25pZpz4xykVIROqKQw1Ow4Z-q4gxVhj-3Oh0crpZGaz2zfH_Gz9_pSb2jqq8sHNg_eSTCoiEhbOUkv17_zSvutwj5TNYrrbeUsPoqMOMaEELQXCWfSC9eeTmsvWbmW-PUcV8jAuevL30SjQ"},"terms":{"duaRead":true,"onBehalf":true,"madePublic":true}}
{code}

The response headers are:
{code}
Accept-Ranges:bytes
Access-Control-Allow-Origin:*
Age:0
Connection:keep-alive
Content-Length:0
Content-Type:text/html; charset=UTF-8
Date:Mon, 27 Jul 2015 09:19:18 GMT
Expires:Sun, 19 Nov 1978 05:00:00 GMT
Server:Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.4.16
Via:1.1 varnish
x-api-url:/eoi/form-data-submit?XDEBUG_SESSION_START=11182
X-Drupal-Cache:MISS
X-Powered-By:PHP/5.4.16
X-Varnish:1067288894
{code}

Trying to view the {{recent log messages}} on http://drupaledit.gbif-uat.org/admin/reports/dblog also gives {{Error  The website encountered an unexpected error. Please try again later.}} which makes it difficult to debug
    


Author: bko@gbif.org
Comment: Thanks [~trobertson@gbif.org] for initial debugging. I am taking over. I'll also provide more verbose debug information via dblog.
Created: 2015-08-03 14:38:59.237
Updated: 2015-08-03 14:38:59.237


Author: bko@gbif.org
Created: 2015-08-05 16:09:30.648
Updated: 2015-08-05 16:09:30.648
        
The problem was that the form uses reCAPTCHA 1.x API which as a Drupal module had been giving difficulties for visitors and was disabled.

As a solution I've upgraded to use reCAPTCHA 2.0 API as well as the Drupal module. Both user registration and this form submission are now working properly and securely.

https://github.com/gbif/gbif-drupal/commit/7ec80b736d05928f46faef88ffa9e7068a2150f1