You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reports have the capability to add form filters via the parameterFields() method. These fields will be shown via the Reports admin UI. The values of the filter fields are collected via JavaScript and appended to URL as GET params. This process applies url encoding. The form gets populated by these encoded values which has side effects.
Test scenario
This causes a problem with some characters. Example below shows what happens if string A B is used to filter.
After clicking filter
Expected result
A B filter value is retained
Actual result
A B gets transformed into A+B
Possible solution
Applying urldecode to Form population seems to do the trick.
The text was updated successfully, but these errors were encountered:
Reports admin URL encoding issue
Affected version:
4.5.1
Reports have the capability to add form filters via the
parameterFields()
method. These fields will be shown via the Reports admin UI. The values of the filter fields are collected via JavaScript and appended to URL as GET params. This process applies url encoding. The form gets populated by these encoded values which has side effects.Test scenario
This causes a problem with some characters. Example below shows what happens if string
A B
is used to filter.After clicking filter
Expected result
A B
filter value is retainedActual result
A B
gets transformed intoA+B
Possible solution
Applying
urldecode
to Form population seems to do the trick.The text was updated successfully, but these errors were encountered: