SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=header): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_topmenu.inc' line 5

ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000680ClearOSapp-syswatch - System Watchpublic2012-07-12 11:562012-09-19 14:40
Reporterbchambers 
Assigned Touser2 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version6.2.0 
Target Version6.2.0 UpdatesFixed in Version 
Summary0000680: Dynamic DNS update fails if system is on a LAN segment
DescriptionIf ClearOS is not the gateway, receiving a public IP address, dynamic DNS updates will fail.

sub GetIp()...
..
.
if ( (defined($g_extifs{$extif}->{status}) && ($g_extifs{$extif}->{status} == $STATUS_OK)) &&
         (defined($g_extifs{$extif}->{use_get_ip}) && ($g_extifs{$extif}->{use_get_ip} eq $STATE_ENABLED)) &&
         ($config{use_get_ip} eq $STATE_ENABLED)
        ) {

Should be (please verify):

if ( (defined($g_extifs{$extif}->{status}) && ($g_extifs{$extif}->{status} == $STATUS_OK)) &&
         ((defined($g_extifs{$extif}->{use_get_ip}) && ($g_extifs{$extif}->{use_get_ip} eq $STATE_ENABLED)) ||
         ($config{use_get_ip} eq $STATE_ENABLED))
        ) {

Second two conditions should be grouped by paranthesis, and condition should be OR, not AND.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000564)
user2
2012-09-19 14:39

That's a tortured "if" statement! The "and" logic is intended. Both the interface and the configuration must have "getip" enabled. If the interface is on a public IP, syswatch won't bother using the getip tool. Yes, some folks may use real IPs behind NAT, but that's rare. Covering up for that bad practice would put a lot more stress on the SDN IP referrer tool. Ideally, the "or" logic would be in there though.

- Issue History
Date Modified Username Field Change
2012-07-12 11:56 bchambers New Issue
2012-07-12 11:56 bchambers Status new => assigned
2012-07-12 11:56 bchambers Assigned To => user2
2012-07-12 12:01 bchambers Status assigned => confirmed
2012-09-19 14:39 user2 Note Added: 0000564
2012-09-19 14:40 user2 Status confirmed => resolved
2012-09-19 14:40 user2 Resolution open => no change required
2012-09-19 14:40 user2 Status resolved => closed

SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=footer): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_footer.inc' line 7