drodil/backstage-plugin-toolbox

Bug Report: Encode/Decode URL - URI malformed error occurs when URI encoding or decoding wasn't successful.

Ma11hewThomas opened this issue · 0 comments

Hello,

Thank you for creating a very useful plugin!!

Tool: Encode/Decode - URL
Error: URIError: URI malformed

Description:
I encountered an error while using the Encode/Decode - URL tool. When I try to encode or decode a URL by typing, if the encodeURI / decodeURI is unable encode or decode properly, it returns a URI malformed error that isn't handled.

Steps to reproduce:

  1. Go to the Encode/Decode - URL tool.
  2. Click on the "Decode" button.
  3. Click the "Sample" button.
  4. Add % character to the end of the sample URL
  5. URIError: URI malformed occurs

image