Project

General

Profile

Bug #2936

Error in mod_secdownload test

Added by vissenkom123 5 months ago. Updated 5 months ago.

Status:
Invalid
Priority:
Low
Assignee:
-
Category:
-
Target version:
Start date:
2019-02-26
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

Expected behaviour:

All tests succeed

Seen behaviour:

One test fails

Steps to reproduce:

  • Download v1.4.53 source code
  • Unpack
  • mkdir build && cd build && cmake ..
  • make test

Software versions:

  • lighttpd v1.4.53
  • cmake version 3.10.2
  • ubuntu linux 18.04

Error log:

      Start  1: test_array
 1/32 Test  #1: test_array .......................   Passed    0.00 sec
      Start  2: test_buffer
 2/32 Test  #2: test_buffer ......................   Passed    0.00 sec
      Start  3: test_burl
 3/32 Test  #3: test_burl ........................   Passed    0.00 sec
      Start  4: test_base64
 4/32 Test  #4: test_base64 ......................   Passed    0.03 sec
      Start  5: test_configfile
 5/32 Test  #5: test_configfile ..................   Passed    0.00 sec
      Start  6: test_keyvalue
 6/32 Test  #6: test_keyvalue ....................   Passed    0.00 sec
      Start  7: test_mod_access
 7/32 Test  #7: test_mod_access ..................   Passed    0.00 sec
      Start  8: test_mod_evhost
 8/32 Test  #8: test_mod_evhost ..................   Passed    0.00 sec
      Start  9: test_mod_simple_vhost
 9/32 Test  #9: test_mod_simple_vhost ............   Passed    0.00 sec
      Start 10: test_request
10/32 Test #10: test_request .....................   Passed    0.00 sec
      Start 11: prepare.sh
11/32 Test #11: prepare.sh .......................   Passed    0.02 sec
      Start 12: cachable.t
12/32 Test #12: cachable.t .......................   Passed    0.08 sec
      Start 13: core-404-handler.t
13/32 Test #13: core-404-handler.t ...............   Passed    0.08 sec
      Start 14: core-condition.t
14/32 Test #14: core-condition.t .................   Passed    0.10 sec
      Start 15: core-keepalive.t
15/32 Test #15: core-keepalive.t .................   Passed    0.09 sec
      Start 16: core-request.t
16/32 Test #16: core-request.t ...................   Passed    0.08 sec
      Start 17: core-response.t
17/32 Test #17: core-response.t ..................   Passed    0.08 sec
      Start 18: core-var-include.t
18/32 Test #18: core-var-include.t ...............   Passed    0.08 sec
      Start 19: lowercase.t
19/32 Test #19: lowercase.t ......................   Passed    0.08 sec
      Start 20: mod-auth.t
20/32 Test #20: mod-auth.t .......................   Passed    0.09 sec
      Start 21: mod-cgi.t
21/32 Test #21: mod-cgi.t ........................   Passed    0.11 sec
      Start 22: mod-compress.t
22/32 Test #22: mod-compress.t ...................   Passed    0.09 sec
      Start 23: mod-extforward.t
23/32 Test #23: mod-extforward.t .................   Passed    0.08 sec
      Start 24: mod-fastcgi.t
24/32 Test #24: mod-fastcgi.t ....................   Passed    0.06 sec
      Start 25: mod-proxy.t
25/32 Test #25: mod-proxy.t ......................   Passed    0.10 sec
      Start 26: mod-secdownload.t
26/32 Test #26: mod-secdownload.t ................***Failed    0.11 sec
      Start 27: mod-setenv.t
27/32 Test #27: mod-setenv.t .....................   Passed    0.08 sec
      Start 28: mod-ssi.t
28/32 Test #28: mod-ssi.t ........................   Passed    0.08 sec
      Start 29: mod-userdir.t
29/32 Test #29: mod-userdir.t ....................   Passed    0.08 sec
      Start 30: request.t
30/32 Test #30: request.t ........................   Passed    0.62 sec
      Start 31: symlink.t
31/32 Test #31: symlink.t ........................   Passed    0.10 sec
      Start 32: cleanup.sh
32/32 Test #32: cleanup.sh .......................   Passed    0.00 sec

97% tests passed, 1 tests failed out of 32

Total Test time (real) =   2.36 sec

The following tests FAILED:
     26 - mod-secdownload.t (Failed)
Errors while running CTest
Makefile:72: recipe for target 'test' failed
make: *** [test] Error 8

History

#1

Updated by vissenkom123 5 months ago

Relevant section from LastTest.log:

26/32 Testing: mod-secdownload.t
26/32 Test: mod-secdownload.t
Command: "/home/vissenkom/Downloads/lighttpd-1.4.53/tests/wrapper.sh" "/home/vissenkom/Downloads/lighttpd-1.4.53/tests" "/home/vissenkom/Downloads/lighttpd-1.4.53/build" "/home/vissenkom/Downloads/lighttpd-1.4.53/tests/mod-secdownload.t" 
Directory: /home/vissenkom/Downloads/lighttpd-1.4.53/build/tests
"mod-secdownload.t" start time: Feb 26 20:34 CET
Output:
----------------------------------------------------------
1..16
ok 1 - Starting lighttpd
ok 2 - skipping secdownload - direct access
ok 3 - secdownload (md5)
ok 4 - secdownload - gone (timeout) (md5)
ok 5 - secdownload - direct access (md5)
ok 6 - secdownload - timeout (md5)
# 
# status failed: expected '200', got '403'
not ok 7 - secdownload (hmac-sha1)
#   Failed test 'secdownload (hmac-sha1)'
#   at /home/vissenkom/Downloads/lighttpd-1.4.53/tests/mod-secdownload.t line 95.
ok 8 - secdownload - gone (timeout) (hmac-sha1)
ok 9 - secdownload - direct access (hmac-sha1)
# 
# status failed: expected '404', got '403'
not ok 10 - secdownload - timeout (hmac-sha1)
#   Failed test 'secdownload - timeout (hmac-sha1)'
#   at /home/vissenkom/Downloads/lighttpd-1.4.53/tests/mod-secdownload.t line 130.
# 
# status failed: expected '200', got '403'
not ok 11 - secdownload (hmac-sha256)
#   Failed test 'secdownload (hmac-sha256)'
#   at /home/vissenkom/Downloads/lighttpd-1.4.53/tests/mod-secdownload.t line 144.
# 
# status failed: expected '200', got '403'
not ok 12 - secdownload (hmac-sha256) with hash-querystr
#   Failed test 'secdownload (hmac-sha256) with hash-querystr'
#   at /home/vissenkom/Downloads/lighttpd-1.4.53/tests/mod-secdownload.t line 158.
ok 13 - secdownload - gone (timeout) (hmac-sha256)
ok 14 - secdownload - direct access (hmac-sha256)
# 
# status failed: expected '404', got '403'
not ok 15 - secdownload - timeout (hmac-sha256)
#   Failed test 'secdownload - timeout (hmac-sha256)'
#   at /home/vissenkom/Downloads/lighttpd-1.4.53/tests/mod-secdownload.t line 193.
ok 16 - Stopping lighttpd
# Looks like you failed 5 tests of 16.
<end of output>
Test time =   0.11 sec
----------------------------------------------------------
Test Failed.
"mod-secdownload.t" end time: Feb 26 20:34 CET
"mod-secdownload.t" time elapsed: 00:00:00
----------------------------------------------------------
#2

Updated by vissenkom123 5 months ago

Found the problem, had to build with cmake -DWITH_OPENSSL=ON ..

#3

Updated by gstrauss 5 months ago

  • Status changed from New to Invalid
  • Priority changed from Normal to Low

As vissenkom123 noted, some mod_secdownload tests will fail if lighttpd is built without openssl support.

Also available in: Atom