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 crash when invalid url is entered #7672 #7684

Merged
merged 4 commits into from
Dec 2, 2022

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Dec 1, 2022

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Invoke checkQrCodeLoginCapability() only after the homeserver url has been safely validated.

Motivation and context

Fixes #7672

Screenshots / GIFs

Tests

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@bmarty bmarty requested review from a team and jmartinesp and removed request for a team December 1, 2022 14:37
@ElementBot
Copy link

Fails
🚫

node failed.

Log

Error:  Error: Could not find the Dangerfile at tools/danger/dangerfile-lint.js - does a file exist at dangerfile-lint.js in tools/danger?.
    at /usr/src/danger/distribution/platforms/GitHub.js:166:27
    at step (/usr/src/danger/distribution/platforms/GitHub.js:44:23)
    at Object.next (/usr/src/danger/distribution/platforms/GitHub.js:25:53)
    at fulfilled (/usr/src/danger/distribution/platforms/GitHub.js:16:58)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
danger-results://tmp/danger-results-69a989a1.json

Generated by 🚫 dangerJS against d96ff6e

@bmarty
Copy link
Member Author

bmarty commented Dec 1, 2022

(looking at the failing tests) OK, fixed 🤞

Copy link
Member

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

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

LGTM!

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@bmarty bmarty merged commit 75fabb1 into develop Dec 2, 2022
@bmarty bmarty deleted the feature/bma/fix_onboarding_crash branch December 2, 2022 08:55
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.

Change of server with invalid URL caused crash
3 participants