Openfoodnetwork: Links in confirmation emails not working for SOME users

Created on 30 Mar 2018  路  20Comments  路  Source: openfoodfoundation/openfoodnetwork

When a new user registers they receive an email asking them to confirm their registration. For most user this works fine. However about 8 UK users have reported that the link in the email does not work for them.

If I click on the link it works fine and does the job of confirming the registration.

This is a serious bug because we suspect that for every user who reports this issue there are many more who just give up and do not register.

This issue also happens for some users when they get the password reset email (the link doesnt work)

In this trello card we have listed details of all the users who reported this issue. Here is one example:
From: Jill Pidgeon [mailto:[email protected]]
Sent: 27 March 2018 11:07
To: [email protected]
Subject: Re: Please confirm your OFN account

It was gmail
I was using and on my iPhone so not sure of anti virus software!

Sorry

Sent from my iPhone

On Tue, Mar 27, 2018 at 7:05 AM, Jill Pidgeon [email protected] wrote:
Hi there,

I am trying to register but when I click on the link to confirm my email it goes blank and says safari can't open the page... can you help? This is the third time since the weekend I ha e tried to open this!

Many thanks,

Jill

Sent from my iPhone

From: [email protected] [mailto:[email protected]]
Sent: 27 March 2018 07:04
To: [email protected]
Subject: Please confirm your OFN account

OPEN FOOD NETWORK UK

Hello!
Welcome to Open Food Network UK!
Before we can activate your new account, we need to confirm your email address.
Please click the link below to confirm your email and to continue setting up your profile.
Confirm this email address 禄

Cheers,
Open Food Network UK Team

Connect with Us:
Facebook Twitter

Email us:
[email protected]

Mar 27 at 9:07 AM - Edit - Add Link as Attachment - Delete -

Sinead Fenton
Jill Pidgeon - 27/03 - confirmed by sinead on 27/03 by clicking this link sent to Jill on the 24th March:
https://u2720784.ct.sendgrid.net/wf/click?upn=xFBGS0monMFzX-2FqZT940KkIv9e1v2-2B4bVloQEQGLPesDxcfV-2F33pWU2RhxA0Qle6EH-2FcLNtgKtX-2FrGNLfFT3GyVbwL4vMEr5DnQBAfYc535PKbc2-2BrJ82G1DdT49EizL-2BDuW6IasGotXrwz5uILg0w-3D-3D_xrz9Osm27fmSTEjXaSqgiraY8dFtcPtl7Pt-2FAIpayk9-2F8P0UEIWcV-2BCcTLoGxLXJyszEVsVi1uZNyHPQE79wO4INsWpoy1yTD283Z-2Fwf5AEYsDm6jDys6E56yXGRa5Dpxg-2FGQWTFILa-2FTUGeMkPwZqo2gJNOTTgSZmqap2vZYqZLJOe642IzdtBnAkYyE7DwxsxKUwCpfIr28eaGmNPG7qmY4emJllDPxo3i6LSeLuE-3D

If you need access to the Trello card please ask @lin-d-hop as I am away until 7th APril.

Thanks for looking at this

bug-s2

All 20 comments

Please folks we have set up a template for reporting issues would be great to follow it! @NickWeir63 when you create a new issue you have the template to fill, so you can just follow it. It makes dev work much more easier then to understand the problem. You can also set up a severity for the bug which then allow the pipeline team to prioritize and react accordingly. So in this case it is definitely a S2 as some users don't even manage to register on the platform.

@mkllnk @Matt-Yorkley @sauloperez do you have any clue where that could come from? Who wants to take that on? Can it be link more to sys admin UK things or does it sound more like code related? Seems like a pretty urgent s2 bug...

Does anyone have a Mac with Safari that could give this a quick test by signing up on UK production and clicking the validation link?

just did it - worked just fine :)

Thanks @kirstenalarsen! It seems this has appeared at the same time as UK production SSL certificate issues, which may have been fixed now by @mkllnk? And from some of these email error reports it looks like SSL related issues regarding addresses not resolving properly were the cause of the blank screen... so I think this might be resolved, but we can keep an eye on it.

Ok I put that in testing then so that we can just wait a bit and observe, and we can close in a few days if all is green :-)

Just to note this definitely didn't correlate with SSL issues. This has been happening since v1.11 2 weeks ago. SSL was a problem for 3hrs this morning. The problem is not specific to OS or mail client.

I'm sorry I've had no capacity to look into it yet.

In Slack Lynne posted:

This site can鈥檛 be reached
https鈥檚 server IP address could not be found.
Search Google for https openfoodnetwork org user spree password edit
ERR_NAME_NOT_RESOLVED

That sounds like the DNS server failed. Unfortunately, the emails above don't show the URL people tried to visit.

I can't see any problem in you DNS setup. Maybe your DNS server was just not reliable.

@mkllnk is right, we need the actual URL these users clicked on. I'd ask them to copy the URL next time.

Hi there, not sure why this issue is sitting in testing - there's no PR attached. Am moving this back to the in progress column until we know what is being testing/fixed. Feel free to move it back along the train if this isn't correct. Ta 馃槃

I guess they are "testing" the current code on UK production. But yes, In Dev is probably a better description.

That URL responds:

< HTTP/1.1 302 Found
< Server: nginx
< Date: Mon, 09 Apr 2018 13:25:56 GMT
< Content-Type: text/html; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Location: http://openfoodnetwork.org.uk/user/spree_user/confirmation?confirmation_token=cBB0rLKFBHu_EY47qdkC
< X-Robots-Tag: noindex, nofollow
< 

We need to check both URL and token in Location

And that gets redirected to the https version of that URL. I'm wondering why it's not using https straight away, but that's not the problem here.

Is there an option in your Sendgrid account to deactivate URL rewriting and tracking? Maybe these Sendgrid URLs are causing an issue. We are sending direct links to the OFN.

Hi everyone, @mkllnk
Thanks everyone for looking into this and sorry for not being available to be more present. It did occur to me that this was possibly a sendgrid setting problem and I'm so sorry that I didn't get to look before this was escalated to the international community.
Sendgrid have recently added Whitelabelled email links as a feature, and I've now enabled this.
@NickWeir63 would you please monitor to see if this fixes the issue.
Thanks everyone!

Where's this at everybody? @NickWeir63 has the issue been fixed? Can we consider this closed?

If yes, then @NickWeir63 can you please close this issue. If no, then let's get to figuring out a plan B 馃榾

I have had no more reports of problems so will close. Thanks all

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sauloperez picture sauloperez  路  3Comments

andrewpbrett picture andrewpbrett  路  3Comments

sauloperez picture sauloperez  路  3Comments

RachL picture RachL  路  3Comments

lin-d-hop picture lin-d-hop  路  3Comments