several reports will not allow submitting parameters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nagios3 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: nagios3
Ubuntu Release: 8.10 (Intrepid Ibex)
Package Version: 3.0.2-1ubuntu1.1
This occurs on certain reports, namely Trends, Notifications, History, and Histogram.
To reproduce:
1. Select a host or service with a character that requires URL-encoding (like a space).
2. Select one of the affected reports (i.e. 'View Trends for the Service')
3. Click "Update". (Whether or not the parameters actually change is irrelevant.)
4. Nagios will report that you do not have the correct permissions to view that report.
The reason Nagios reports this is because the service name or host name is being double url-encoded. For example, 'Check Load' becomes 'Check+Load' which turns into 'Check%2BLoad' on submit. Nagios doesn't have a service called 'Check+Load', only one called 'Check Load', so it fails.
Here's a diff for the changes necessary. I apologize if this isn't in the preferred format; I couldn't find clear documentation detailing how patches like this should be submitted.