Code Fix: Unable to log on to K2 if your password contains a semicolon character

Issue Description

When you have a semicolon character in the user password, you are unable to log on to K2.

Error Message

The following error occurs: “Username and Password is incorrect”.

Resolution

The fix is available in the following K2 versions:

K2 4.7 December 2019 Cumulative Update K2 Five (5.0) December 2019 Cumulative Update K2 Five (5.1) November 2018 Cumulative Update K2 Five (5.2) May 2019 Cumulative Update K2 Five (5.3)
X X X Fix Pack 34 Fix Pack 40
  1. Ensure you have the correct K2 version and/or Cumulative Update installed. See KB001893 to see what Fix Pack level you have installed.
  2. Download the latest Fix Pack using the links in the table above for the version you require.
  3. Install the Fix Pack to apply the fix.
  4. It is recommended to refresh the browser cache.

Consideration

Take note of the following known issue after installing this Fix Pack: If the password is at the end of a connection string and ends with a semicolon, the semicolon at the end will be removed. The reason being is that the semicolon at the end is not known to be part of the password value or an actual connection string delimiter, therefor we will treat the semicolon as a connection string delimiter.