https://bz.apache.org/bugzilla/show_bug.cgi?id=58789

--- Comment #21 from Alexey Melezhik <[email protected]> ---
Ok, you are a right , after changing to htdocs/58789/aaa/.htaccess


<FilesMatch ".*">

    Header set AAA ZZZ

</FilesMatch>

Bug is reproduced ( I have rewrite a checking logic  abit to emphasize the
issue ) and look like this:


vagrant@Debian-jessie-amd64-netboot:~/my/apache-swat$ swat -t 58789/
/home/vagrant/.swat/.cache/13389/prove/58789/aaa/data.txt/00.GET.t ..........
ok 1 - GET 127.0.0.1/58789/aaa/data.txt succeeded
# http headers saved to /home/vagrant/.swat/.cache/13389/prove/HSHCipQEVF.hdr
# body saved to /home/vagrant/.swat/.cache/13389/prove/HSHCipQEVF
ok 2 - output match '200 OK'
ok 3 - output match '[aaa data]'
ok 4 - output match /^AAA: ZZZ/
1..4
ok
/home/vagrant/.swat/.cache/13389/prove/58789/aaa/bbb/ccc/data.txt/00.GET.t ..
ok 1 - GET 127.0.0.1/58789/aaa/bbb/ccc/data.txt succeeded
# http headers saved to /home/vagrant/.swat/.cache/13389/prove/tpFu_FHhzp.hdr
# body saved to /home/vagrant/.swat/.cache/13389/prove/tpFu_FHhzp
ok 2 - output match '200 OK'
ok 3 - output match '[aaa/bbb/ccc data]'
ok 4 - output match /^AAA: \S+/
not ok 5 - 'AAA: ZZZ' match 'XXXXXXXX'

#   Failed test ''AAA: ZZZ' match 'XXXXXXXX''
#   at /usr/local/share/perl/5.20.2/swat.pm line 218.
1..5
# Looks like you failed 1 test of 5.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/5 subtests
/home/vagrant/.swat/.cache/13389/prove/58789/aaa/bbb/data.txt/00.GET.t ......
ok 1 - GET 127.0.0.1/58789/aaa/bbb/data.txt succeeded
# http headers saved to /home/vagrant/.swat/.cache/13389/prove/yQrvMI3ulJ.hdr
# body saved to /home/vagrant/.swat/.cache/13389/prove/yQrvMI3ulJ
ok 2 - output match '200 OK'
ok 3 - output match '[aaa/bbb data]'
ok 4 - output match /^AAA: \S+/
not ok 5 - 'AAA: ZZZ' match 'XXXXXXXX'

#   Failed test ''AAA: ZZZ' match 'XXXXXXXX''
#   at /usr/local/share/perl/5.20.2/swat.pm line 218.
1..5
# Looks like you failed 1 test of 5.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/5 subtests

Test Summary Report
-------------------
/home/vagrant/.swat/.cache/13389/prove/58789/aaa/bbb/ccc/data.txt/00.GET.t
(Wstat: 256 Tests: 5 Failed: 1)
  Failed test:  5
  Non-zero exit status: 1
/home/vagrant/.swat/.cache/13389/prove/58789/aaa/bbb/data.txt/00.GET.t   
(Wstat: 256 Tests: 5 Failed: 1)
  Failed test:  5
  Non-zero exit status: 1
Files=3, Tests=14,  0 wallclock secs ( 0.03 usr  0.00 sys +  0.15 cusr  0.01
csys =  0.19 CPU)
Result: FAIL



So, both aaa/bbb and aaa/bbb/cc now returns unexpected(?) headers.

Now I address this to developers, as I am only acting here as QA automation
support guy ... 

All recent changes for test suite are commuted -
https://github.com/melezhik/apache-swat/commit/e8e2c810762d5a98d4735ba173f5c774273e6879

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to