Anonymous | Login | 2024-12-22 00:23 MST |
Main | My View | View Issues | Change Log | Roadmap | Repositories |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0004742 | ClearOS | app-network - Network Settings | public | 2015-09-01 09:54 | 2019-02-22 21:48 | ||||
Reporter | dloper | ||||||||
Assigned To | tracker | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | suspended | ||||||
Platform | OS | OS Version | |||||||
Product Version | 6.6.0 Updates | ||||||||
Target Version | 6.10 Updates | Fixed in Version | |||||||
Summary | 0004742: /usr/sbin/network fails to properly enumerate mon.wlanX | ||||||||
Description | When a device exists like 'mon.wlan0' the /usr/sbin/network program throws and exception: PHP warning: ifconfig_flags: No such device - /usr/clearos/apps/network/libraries/Iface_Manager.php (469) It cause here seems to be in triggered by /usr/clearos/apps/network/libraries/Iface_Manager.php which enumerates the devices by ignoring or splitting the portion after a period '.wlan0' part and will fail to enumerate a simple 'mon'. This may be the result of trimming that is done for VLAN interfaces but the case match is too aggressive and will match letter/number combinations instead of numbers only. Consequently, if a user is using mon.wlanX for any purpose, apps which enumerate interfaces using this method (like LDAP) will fail to start due to the exception that is thrown. | ||||||||
Steps To Reproduce | Create an interface like mon.wlan0 then run /usr/sbin/network --get-lan-ips | grep -v debug | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Notes | |
(0001912) dloper (administrator) 2015-09-01 10:05 |
Another thing to add as an effective workaround and may be useful for the init script is to change the following in /etc/init.d/slapd: for LANIP in `/usr/sbin/network --get-lan-ips | grep -v debug`; do to: for LANIP in `/usr/sbin/network --get-lan-ips | grep -v debug | grep -v warn`; do |
(0001922) user2 2015-09-01 14:06 |
The root cause is from the issue described in 0003171. The developer explicitly suppresses warnings in the ifconfig_flags() call (and other calls), but that suppression is ignored. The fix was a small but significant change that was pushed out in ClearOS 7 Beta 3. We can definitely backport post ClearOS 7. |
(0007881) user2 2018-08-15 06:00 |
Still waiting on access to a test device. On hold. |
(0008861) dloper (administrator) 2019-02-22 21:48 |
Migrated to: https://gitlab.com/clearos/clearfoundation/app-network/issues/3 [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2015-09-01 09:54 | dloper | New Issue | |
2015-09-01 10:05 | dloper | Note Added: 0001912 | |
2015-09-01 11:24 | user2 | Status | new => confirmed |
2015-09-01 14:00 | user2 | Target Version | 6.7.0 => 6.7.0 Updates |
2015-09-01 14:01 | user2 | Relationship added | related to 0003171 |
2015-09-01 14:06 | user2 | Note Added: 0001922 | |
2016-02-16 21:33 | user2 | Target Version | 6.7.0 Updates => 6.8.0 Updates |
2017-03-21 08:42 | user2 | Target Version | 6.8.0 Updates => 6.9.0 Updates |
2018-01-16 04:59 | user2 | Target Version | 6.9.0 Updates => 6.10 |
2018-08-15 06:00 | user2 | Note Added: 0007881 | |
2018-08-15 06:00 | user2 | Assigned To | => user2 |
2018-08-15 06:00 | user2 | Status | confirmed => feedback |
2018-08-15 06:00 | user2 | Target Version | 6.10 => 6.10 Updates |
2018-12-14 12:10 | user2 | Status | feedback => assigned |
2018-12-14 12:10 | user2 | Assigned To | user2 => tracker |
2019-02-22 21:48 | dloper | Note Added: 0008861 | |
2019-02-22 21:48 | dloper | Status | assigned => closed |
2019-02-22 21:48 | dloper | Resolution | open => suspended |