ClearFoundation Tracker - ClearOS |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0000011 | ClearOS | deprecated - ClearOS 5 Protocol Filter | public | 2010-01-18 16:47 | 2010-07-15 12:01 |
|
Reporter | Vejlefjordskolen | |
Assigned To | dsokoloski | |
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | 5.1 | |
Target Version | 5.2 | Fixed in Version | 5.2 | |
|
Summary | 0000011: Protocol Filter report does not show number of packets or bytes over 100,000 |
Description | In the API, /var/webconfig/api/Layer7Filter.class.php, you match only digits in the output from iptables where the number of packets and bytes are shown, but when there are more than 100,000 packets or bytes, the number also contains letters, e.g. 100K instead of 100000. This causes your matching to fail, resetting the counters to zero. |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | counter-fix.tgz (979) 2010-04-18 15:58 https://tracker.clearos.com/file_download.php?file_id=8&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2010-01-18 16:47 | Vejlefjordskolen | New Issue | |
2010-01-19 08:16 | user2 | Severity | minor => tweak |
2010-01-19 08:16 | user2 | Status | new => acknowledged |
2010-01-19 08:16 | user2 | Target Version | => 5.2 |
2010-03-25 20:29 | user2 | Status | acknowledged => assigned |
2010-03-25 20:29 | user2 | Assigned To | => dsokoloski |
2010-04-15 16:13 | dsokoloski | Checkin | |
2010-04-15 16:13 | dsokoloski | Note Added: 0000080 | |
2010-04-15 16:13 | dsokoloski | Status | assigned => resolved |
2010-04-15 16:13 | dsokoloski | Resolution | open => fixed |
2010-04-18 15:58 | Vejlefjordskolen | Note Added: 0000081 | |
2010-04-18 15:58 | Vejlefjordskolen | Status | resolved => feedback |
2010-04-18 15:58 | Vejlefjordskolen | Resolution | fixed => reopened |
2010-04-18 15:58 | Vejlefjordskolen | File Added: counter-fix.tgz | |
2010-04-18 16:03 | Vejlefjordskolen | Note Edited: 0000081 | |
2010-04-18 16:09 | dsokoloski | Checkin | |
2010-04-18 16:09 | dsokoloski | Note Added: 0000082 | |
2010-04-18 16:09 | dsokoloski | Status | feedback => resolved |
2010-04-18 16:09 | dsokoloski | Resolution | reopened => fixed |
2010-04-18 16:23 | dsokoloski | Checkin | |
2010-04-18 16:23 | dsokoloski | Note Added: 0000083 | |
2010-05-19 11:30 | user2 | Fixed in Version | => 5.2 |
2010-07-15 12:01 | user2 | Status | resolved => closed |
2018-01-15 16:31 | user2 | Category | app-protocol-filter - Protocol Filter Manager => app-protocol-filter - ClearOS 5 |
2018-01-15 16:32 | user2 | Category | app-protocol-filter - ClearOS 5 => deprecated - ClearOS 5 Protocol Filter |
Notes |
|
|
Source Code Changelog
---------------------------------------------------
- Fix for packet/byte counters with M/K/G postfix. [fixed tracker 0000011]
File Changes
---------------------------------------------------
U legacy/webconfig/trunk/api/Layer7Filter.class.php
|
|
|
|
The fix checked in will not work correctly, as the protocol-filter-report pages do not support strings in the fields for the counters, only numbers.
I have attached my fix as patch sets from the current SVN trunk. (I hope I did it right, I've never made patch sets before). It has an extra case for handling the possibility of no counter, as the JavaScript on the protocol-filter-report page does not support empty strings in the XML.
|
|
|
|
Source Code Changelog
---------------------------------------------------
- Changed layer-7 protocol format string from decimal to string. [fixed tracker 0000011]
File Changes
---------------------------------------------------
U legacy/webconfig/trunk/htdocs/admin/protocol-filter-report.php
|
|
|
|
Source Code Changelog
---------------------------------------------------
- Changed layer-7 protocol format string from decimal to string. [fixed tracker 0000011]
File Changes
---------------------------------------------------
U legacy/webconfig/trunk/htdocs/admin/protocol-filter-report.xml.php
|
|