Bug 1509380

Summary: corrupted source
Product: [Fedora] Fedora EPEL Reporter: Jiří Sléžka <jiri.slezka>
Component: RackTablesAssignee: Colin Coe <colin.coe>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: epel7CC: colin.coe
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-03 23:44:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiří Sléžka 2017-11-03 16:26:03 UTC
Description of problem:

at least file /usr/share/RackTables/wwwroot/inc/exceptions.php is corrupted (not valid) php source.

Version-Release number of selected component (if applicable):

RackTables-0.20.13-1.el7.noarch

How reproducible:

Steps to Reproduce:
1. install lamp stack, RackTables, make dir in webroot and symlink to RackTables as mentioned in README

2. try access web interface

Actual results:

Empty screen is displayed and in http error log is message

PHP Parse error:  syntax error, unexpected '}', expecting end of file in /usr/share/RackTables/wwwroot/inc/exceptions.php on line 160

Expected results:

accessible web interface

Additional info:

php -l /usr/share/RackTables/wwwroot/inc/exceptions.php

PHP Parse error:  syntax error, unexpected '}', expecting end of file in /usr/share/RackTables/wwwroot/inc/exceptions.php on line 160
Errors parsing /usr/share/RackTables/wwwroot/inc/exceptions.php

I am using php7.1 and apache2.4 from IUS repo, but source looks really corrupted.

Comment 1 Jiří Sléžka 2017-11-03 16:30:27 UTC
it looks like this is only corupted file here...

find /usr/share/RackTables/ -name "*\.php" -exec php -l '{}' \;

No syntax errors detected in /usr/share/RackTables/scripts/cleanup_ldap_cache.php
No syntax errors detected in /usr/share/RackTables/scripts/syncdomain.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/ajax-interface.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/auth.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/caching.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/code.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/config.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/database.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/deviceconfig.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/dictionary.php
PHP Parse error:  syntax error, unexpected '}', expecting end of file in /usr/share/RackTables/wwwroot/inc/exceptions.php on line 160
Errors parsing /usr/share/RackTables/wwwroot/inc/exceptions.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/functions.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/init.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/install.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/interface-8021q.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/interface-cables.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/interface-config.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/interface-lib.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/interface-reports.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/interface.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/navigation.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/ophandlers.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/popup.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/pre-init.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/remote.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/slb-interface.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/slb.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/slb2-interface.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/slbv2.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/snmp.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/solutions.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/triggers.php
No syntax errors detected in /usr/share/RackTables/wwwroot/inc/upgrade.php
No syntax errors detected in /usr/share/RackTables/wwwroot/index.php

Comment 2 Colin Coe 2017-11-03 23:44:59 UTC

*** This bug has been marked as a duplicate of bug 1492171 ***