[Bug 1595071] [NEW] Self Registration Captcha not working

Public bug reported:

When self registration Captcha is on, the create button goes grey after
pressing the create button and nothing is being processed and only stays
on that screen.

When self registration Captcha is turned off the create button works
fine.

** Affects: dhis2
     Importance: Undecided
         Status: New

** Attachment added: "Captcha 2.23 After Pressing Create.png"
   https://bugs.launchpad.net/bugs/1595071/+attachment/4688348/+files/Captcha%202.23%20After%20Pressing%20Create.png

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1595071

Title:
  Self Registration Captcha not working

Status in DHIS:
  New

Bug description:
  When self registration Captcha is on, the create button goes grey
  after pressing the create button and nothing is being processed and
  only stays on that screen.

  When self registration Captcha is turned off the create button works
  fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1595071/+subscriptions

I am not able to reproduce this on 2.23 or 2.24 (development branch).

What browser are you using? Could you perhaps open the browser console
and check if anything happens in the "console" or "network" tab? Any
errors should be marked in read (at least in Firefox and Chrome).

If you are unsure about how to open the console please refer to

javascript-console-in-different-browsers

Thanks!

** Changed in: dhis2
       Status: New => Incomplete

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1595071

Title:
  Self Registration Captcha not working

Status in DHIS:
  Incomplete

Bug description:
  When self registration Captcha is on, the create button goes grey
  after pressing the create button and nothing is being processed and
  only stays on that screen.

  When self registration Captcha is turned off the create button works
  fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1595071/+subscriptions

Thank you Halvdan Hoem Grelland (halvdanhg),

We are using both Chrome and Mozilla and both are giving the same
issues.

These are the following errors that I receive once I click the create
button:

jquery.min.js:2 POST http://197.189.252.38:8080/cserv/api/account 500
(Internal Server Error)send @ jquery.min.js:2ajax @
jquery.min.js:2accountSubmitHandler @ account.js:85handle @
jquery.validate.js:72(anonymous function) @
jquery.validate.js:92dispatch @ jquery.min.js:2h @ jquery.min.js:2

VM702:1 Uncaught SyntaxError: Unexpected token < in JSON at position
0error @ account.js:93k @ jquery.min.js:2fireWith @ jquery.min.js:2y @
jquery.min.js:2d @ jquery.min.js:2

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1595071

Title:
  Self Registration Captcha not working

Status in DHIS:
  Incomplete

Bug description:
  When self registration Captcha is on, the create button goes grey
  after pressing the create button and nothing is being processed and
  only stays on that screen.

  When self registration Captcha is turned off the create button works
  fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1595071/+subscriptions

I tried self-registering on that URL and got the same issue. It spits
out a stack trace in the response which contains a Java security error.

In short: your Tomcat is misconfigured and it cannot resolve the Java
keystore to use for the HTTPS connection to Google's recaptcha servers.
This causes the request to fail, which is why the registration screen is
unresponsive.

For you reference, here's the interesting part (the full error you will
find in your server logs):

java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty

Though the error could be handled better for the user, this is a Tomcat
issue and not a DHIS2 bug. Will close this one.

** Changed in: dhis2
       Status: Incomplete => Invalid

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1595071

Title:
  Self Registration Captcha not working

Status in DHIS:
  Invalid

Bug description:
  When self registration Captcha is on, the create button goes grey
  after pressing the create button and nothing is being processed and
  only stays on that screen.

  When self registration Captcha is turned off the create button works
  fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1595071/+subscriptions

Dear Halvdan,

We have deployed ssl and tested.We can access data visualizer and it works on ssl.
We do not see any issues with our Tomcat setup and we are still having issues with this.
We would like to know what is causing this problem. I can give you login details to our server, are you willing to have a look for us.

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1595071

Title:
  Self Registration Captcha not working

Status in DHIS:
  Invalid

Bug description:
  When self registration Captcha is on, the create button goes grey
  after pressing the create button and nothing is being processed and
  only stays on that screen.

  When self registration Captcha is turned off the create button works
  fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1595071/+subscriptions

Hi Evert,

yes it does seem like you have an issue with the Tomcat setup - have a look
at this thread:

invalidalgorithmparameterexception-the-trustanchors-parameter-mus

Lars

···

On Thu, Jun 23, 2016 at 1:37 PM, evert.bothma <evert@hisp.org> wrote:

Dear Halvdan,

We have deployed ssl and tested.We can access data visualizer and it works
on ssl.
We do not see any issues with our Tomcat setup and we are still having
issues with this.
We would like to know what is causing this problem. I can give you login
details to our server, are you willing to have a look for us.

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1595071

Title:
  Self Registration Captcha not working

Status in DHIS:
  Invalid

Bug description:
  When self registration Captcha is on, the create button goes grey
  after pressing the create button and nothing is being processed and
  only stays on that screen.

  When self registration Captcha is turned off the create button works
  fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1595071/+subscriptions

_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help

--
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
lars@dhis2.org
http://www.dhis2.org <https://www.dhis2.org/&gt;

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1595071

Title:
  Self Registration Captcha not working

Status in DHIS:
  Invalid

Bug description:
  When self registration Captcha is on, the create button goes grey
  after pressing the create button and nothing is being processed and
  only stays on that screen.

  When self registration Captcha is turned off the create button works
  fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1595071/+subscriptions

I am not referring to SSL for your domain.

The recaptcha functionality is dependent on doing a server-to-server web
request to Google's recaptcha servers. Your Tomcat instance fails to set up
the HTTPS connection to said server because it cannot resolve any root
certificates (which would be in the aforementioned keystore) from which to
establish trust (aka. trust anchors).

The link in Lars' reply should explain this in more detail.

···

On Thu, Jun 23, 2016 at 1:37 PM, evert.bothma <evert@hisp.org> wrote:

Dear Halvdan,

We have deployed ssl and tested.We can access data visualizer and it works
on ssl.
We do not see any issues with our Tomcat setup and we are still having
issues with this.
We would like to know what is causing this problem. I can give you login
details to our server, are you willing to have a look for us.

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1595071

Title:
  Self Registration Captcha not working

Status in DHIS:
  Invalid

Bug description:
  When self registration Captcha is on, the create button goes grey
  after pressing the create button and nothing is being processed and
  only stays on that screen.

  When self registration Captcha is turned off the create button works
  fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1595071/+subscriptions

_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help

--
Halvdan Hoem Grelland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/&gt;

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1595071

Title:
  Self Registration Captcha not working

Status in DHIS:
  Invalid

Bug description:
  When self registration Captcha is on, the create button goes grey
  after pressing the create button and nothing is being processed and
  only stays on that screen.

  When self registration Captcha is turned off the create button works
  fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1595071/+subscriptions

Dear Halvdan and Lars,

Thank you very very much for your assistance. We managed to get a solution from the link that Lars gave us.
We ran the command update-ca-certificates -f. This updates and refreshes the certificates in /etc/ssl/certs.
It is working 100%.

Again I want to say thank you.

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1595071

Title:
  Self Registration Captcha not working

Status in DHIS:
  Invalid

Bug description:
  When self registration Captcha is on, the create button goes grey
  after pressing the create button and nothing is being processed and
  only stays on that screen.

  When self registration Captcha is turned off the create button works
  fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1595071/+subscriptions