FusionAuth / fusionauth-issues

FusionAuth issue submission project
https://fusionauth.io
89 stars 12 forks source link

License key activation fails if you have spaces in the field #815

Open mooreds opened 4 years ago

mooreds commented 4 years ago

License key activation fails if you have spaces in the field

Description

I go to FUSIONAUTH_HOST/admin/reactor/ and try to enter my copied license key. It has spaces. The key is treated as invalid. I delete the spaces. It is valid.

Affects versions

1.17.0 but I think I've seen it in 1.18 too.

Steps to reproduce

Steps to reproduce the behavior:

  1. go to FUSIONAUTH_HOST/admin/reactor/
  2. enter my copied license key. It has spaces from the clipboard copy.
  3. The key is treated as invalid.
  4. I delete the spaces.
  5. It is valid.

Expected behavior

Whitespace is ignored for license key validation.

Platform

Firefox.

robotdan commented 4 years ago

In general we don't do any trimming on input as far as validation is concerned.

We could discuss adding this to fields in general - where it makes sense, or adding it to this field in particular since it is more prone to copy/paste issues such as this.