Bug 11494 - GUI for 'SERVICES / ExtraHD' won't open under Apache 2.4.27
Summary: GUI for 'SERVICES / ExtraHD' won't open under Apache 2.4.27
Status: CLOSED FIXED
Alias: None
Product: IPFire
Classification: Unclassified
Component: --- (show other bugs)
Version: 2
Hardware: all Linux
: Will affect all users Minor Usability
Assignee: Matthias Fischer
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-30 14:13 UTC by Matthias Fischer
Modified: 2017-10-08 16:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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