gioboa / jira-plugin

Jira plugin for VsCode
https://marketplace.visualstudio.com/items?itemName=gioboa.jira-plugin
MIT License
266 stars 41 forks source link

issue: Splitting on CREDENTIALS_SEPARATOR can Break Authentication #106

Closed aglensmith closed 5 years ago

aglensmith commented 5 years ago

Describe the issue

Its possible for password or username to contain CREDENTIALS_SEPARATOR. When this happens, authentication breaks.

To Reproduce Steps to reproduce the behavior:

  1. During configuration, enter password or username that contains CREDENTIALS_SEPARATOR.
  2. place breakpoint here
  3. Run
  4. username or password missing characters

Recommendation

gioboa commented 5 years ago

Hi, nice catch. :+1: If you want you can create a PR or if you prefer I will solve the issue. Thanks. :+1:

gioboa commented 5 years ago

I solved the issue. The plugin stored credentials in JSON format. If JSON.parse fail I assume the credentials were store by a previous version.

gioboa commented 5 years ago

@aglensmith
I solved the issue by my own, but if you want to contribute in something, you are welcome. 😄 👍