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

Fix registration URL #275

Merged
merged 6 commits into from
Nov 9, 2023
Merged

Fix registration URL #275

merged 6 commits into from
Nov 9, 2023

Conversation

mgdaily
Copy link
Contributor

@mgdaily mgdaily commented Nov 8, 2023

I really don't understand this one, but apparently urllb stopped playing nicely with us when we had double-slashes. Perhaps this never worked?

Users were getting URLs of the form https://observe.lco.global/[email protected] instead of https://observe.lco.global/accounts/register/[email protected]

In any case, I've updated a test too. I'm a little busy today but can we coordinate a deploy sometime?

urllib chokes on this, and does not include the prefix needed. see redmine https://lcoglobal.redmineup.com/issues/1934
…he url

This checks that /accounts/register exists within the email text.
Copy link
Member

@jnation3406 jnation3406 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Clearly our understanding of how urljoin works is wrong but this seems to fix it in this case. I think the query param with the slash before is what confuses it - not that it is a urljoin bug, more like we are misusing it...

It seems we need this when running a matrix of different python versions, as coveralls errors out when we send multiple reports for the same job.
@mgdaily mgdaily merged commit 3c81d9b into main Nov 9, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants