Malformed LBRY URL causes app to show blank green screen #959

Closed
opened 2018-01-23 21:37:36 +01:00 by tzarebczan · 3 comments
tzarebczan commented 2018-01-23 21:37:36 +01:00 (Migrated from github.com)

The Issue

If a user clicks a hyperlink such as lbry://badlink, (with a comma, or possibly other characters), the LBRY app shows a blank green screen. Need to refresh the app with ctrl-shift-R to reload.

Steps to reproduce

  1. Click https://open.lbry.io/badlink%2C and open with LBRY app
  2. Notice blank green screen

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

System Configuration

  • LBRY Daemon version: 018.0
  • LBRY App version: 0.19.4
  • LBRY Installation ID:
  • Operating system:

Anything Else

Screenshots

<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. - App releases: https://github.com/lbryio/lbry-app/releases - Standalone daemon: https://github.com/lbryio/lbry/releases We are also available on live chat at https://chat.lbry.io --> ## The Issue If a user clicks a hyperlink such as lbry://badlink, (with a comma, or possibly other characters), the LBRY app shows a blank green screen. Need to refresh the app with ctrl-shift-R to reload. ### Steps to reproduce 1. Click https://open.lbry.io/badlink%2C and open with LBRY app 2. Notice blank green screen ### Expected behaviour Tell us what should happen ### Actual behaviour Tell us what happens instead ## System Configuration <!-- For the app, this info is in the About section at the bottom of the Help page. You can include a screenshot instead of typing it out --> <!-- For the daemon, run: curl 'http://localhost:5279' --data '{"method":"version"}' and include the full output --> - LBRY Daemon version: 018.0 - LBRY App version: 0.19.4 - LBRY Installation ID: - Operating system: ## Anything Else <!-- Include anything else that does not fit into the above sections --> ## Screenshots <!-- If a screenshot would help explain the bug, please include one or two here -->
liamcardenas commented 2018-01-30 16:38:56 +01:00 (Migrated from github.com)

@IGassmann im going to take this for grooming because i need a few more issues, feel free to work on it, though

@IGassmann im going to take this for grooming because i need a few more issues, feel free to work on it, though
miikkatu commented 2018-02-25 12:13:46 +01:00 (Migrated from github.com)

Commenting out this bit in lbryURI.js prevents the green screen. It seems that a URL is handled correctly, the thrown exception shows in the console, but the processing stops there.

Without this bit below, a bad URL just leads to the search page with "There's nothing at this location." message.

const nameBadChars = (channelName || name).match(regexInvalidURI); if (nameBadChars) { throw new Error( __( Invalid character %s in name: %s., nameBadChars.length === 1 ? '' : 's', nameBadChars.join(', ') ) ); }

Commenting out this bit in lbryURI.js prevents the green screen. It seems that a URL is handled correctly, the thrown exception shows in the console, but the processing stops there. Without this bit below, a bad URL just leads to the search page with "There's nothing at this location." message. `const nameBadChars = (channelName || name).match(regexInvalidURI); if (nameBadChars) { throw new Error( __( `Invalid character %s in name: %s.`, nameBadChars.length === 1 ? '' : 's', nameBadChars.join(', ') ) ); }`
kauffj commented 2018-02-27 22:58:46 +01:00 (Migrated from github.com)

Great research @miikkatu! We'd be happy to send you a tip for this. See: https://lbry.io/faq/tips

Additionally, I see you're a React dev. If you're interested in contributing more regularly, you learn more here: https://lbry.io/faq/contributing

Great research @miikkatu! We'd be happy to send you a tip for this. See: https://lbry.io/faq/tips Additionally, I see you're a React dev. If you're interested in contributing more regularly, you learn more here: https://lbry.io/faq/contributing
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#959
No description provided.