No results displayed because special chars in Url not properly encoded

Bug #1504805 reported by Sugo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCS Inventory: OCSReports
Invalid
Undecided
Unassigned

Bug Description

System: Debian GNU/Linux 7 (wheezy)
OCS Version: 2.1.2
Client Browser: IE11 on Windows 8.1

When you filter by a custom accountinfo-field, and then in the results try to click on one of the number-links in the "count"-column, often no results are shown. I am quite sure that this happens because the "value"-part of the links is not properly url-encoded.
Sometimes it works anyway - probably depending on the browser, but f.e. if the field contains german umlaut-characters, quotes etc., no results are returned.

By manually changing non-ascii characters in a url to their corresponding encoded form and entering the url in the browsers address bar, the results page works without problems.

Also see attached screenshots, which show resulting wrong sql-queries.

Not properly encoded URL example:
https://xxxx/ocsreports/index.php?function=visu_computers&filtre=a.fields_3&value=BBZ Bruneck Hauptgebäude

Working manually corrected URL:
https://xxxx/ocsreports/index.php?function=visu_computers&filtre=a.fields_3&value=BBZ%20Bruneck%20Hauptgeb%C3%A4ude

Steps to reproduce
- Add a custom Accountinfo-Field via Administative Data icon
- Enter some info for that field, containing some special characters like german umlauts (spaces seem to work even if not encoded, at least in IE11), in at least one entry
- Click on filter icon and filter by custom field
- Hover over a number-link in "count"-column and notice that last part of url in browser's status bar is not properly encoded
- Click on number-link and notice that no info is displayed

Revision history for this message
Sugo (sugo78) wrote :
description: updated
Revision history for this message
Philippe BEAUMONT (kapouik) wrote :

The project OCS Inventory NG is now on Github => https://github.com/OCSInventory-NG

Launchpad is not used anymore

Changed in ocsinventory-ocsreports:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.