Bug 11494

Summary: GUI for 'SERVICES / ExtraHD' won't open under Apache 2.4.27
Product: IPFire Reporter: Matthias Fischer <matthias.fischer>
Component: ---Assignee: Matthias Fischer <matthias.fischer>
Status: CLOSED FIXED QA Contact:
Severity: Minor Usability    
Priority: Will affect all users    
Version: 2   
Hardware: all   
OS: Linux   

Description Matthias Fischer 2017-09-30 14:13:44 UTC
Hi,

upgrading 'apache' to 2.4.27 leads to an internal server error when trying to open  '/srv/web/ipfire/cgi-bin/extrahd.cgi':

[Sat Sep 30 13:46:56.737124 2017] [http:error] [pid 823:tid 2841959232] [client 192.168.XXX.YYY:50535] AH02429: Response header name 'scanhd idescanhd partitionsCache-control' contains invalid characters, aborting request, referer: https://192.168.100.254:444/cgi-bin/connections.cgi?sort_field=1&sort_order=a

Reference:
https://forum.ipfire.org/viewtopic.php?f=27&t=19550&p=111033#p111030

Best,
Matthias
Comment 1 Matthias Fischer 2017-09-30 22:09:00 UTC
Hi,

I made some tests and found that GUI opens if I comment these two lines in 'extrahd.cgi':

...
system("/usr/local/bin/extrahdctrl scanhd ide");
system("/usr/local/bin/extrahdctrl scanhd partitions");
...

For details see:
https://forum.ipfire.org/viewtopic.php?f=27&t=19550&p=111044#p111040

IMHO the culprit could be 'extrahdctrl.c' or 'extrahd.pl'(?)

Perhaps this helps.

Best,
Matthias
Comment 2 Matthias Fischer 2017-10-01 01:31:27 UTC
Hi,

After some research I hopefully found a solution - the problem was 

https://forum.ipfire.org/viewtopic.php?f=22&t=19563

Edit '/var/ipfire/extrahd/bin/extrahd.pl' and comment line 51:

...
# print "$ARGV[0] $ARGV[1]";
...

Please test and report.

Best,
Matthias
Comment 3 Matthias Fischer 2017-10-08 16:14:00 UTC
Hi,

Fixed with:

https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=d5f061e9e7401c2f88483a7bbc48344a412fef3b

And:

http://patchwork.ipfire.org/patch/1435/ (needs merge)

Best,
Matthias