Mailing List Archive

[Bug 65985] some error about executing the test_006_asserts.py
https://bz.apache.org/bugzilla/show_bug.cgi?id=65985

--- Comment #1 from chengyechun1@huawei.com ---
somebody help me? tks a lot

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65985] some error about executing the test_006_asserts.py [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=65985

--- Comment #2 from Stefan Eissing <icing@apache.org> ---
Which version of the test cases do you run? The ones included in the 2.4.51
release? Checkouts from the subversion branch 2.4.x?

What I would do is to insert a `time.sleep(300)` just before the failing
assertion and then run the `nghttp` command line as listed below against the
server to see what it returns.

If the manually executed command only produces a single resource and not all "
assets", e.g. resources contained in the first ones html, the question becomes
if the mismatch is an error in the server setup or if your "nghttp" has somehow
trouble to do its job.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65985] some error about executing the test_006_asserts.py [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=65985

--- Comment #3 from chengyechun1@huawei.com ---
(In reply to Stefan Eissing from comment #2)
> Which version of the test cases do you run? The ones included in the 2.4.51
> release? Checkouts from the subversion branch 2.4.x?
>
> What I would do is to insert a `time.sleep(300)` just before the failing
> assertion and then run the `nghttp` command line as listed below against the
> server to see what it returns.
>
> If the manually executed command only produces a single resource and not all
> " assets", e.g. resources contained in the first ones html, the question
> becomes if the mismatch is an error in the server setup or if your "nghttp"
> has somehow trouble to do its job.

Thanks for your reply. The httpd version is 2.4.51 and the nghttp2 version is
1.46.0.1. I try to follow the method you said, and the result is the same. I
think it has nothing to do with time.sleep (300). If the server replies only
with the HTML file, the server does not parse the HTML file and sends the JS
link in the HTML file again and returns the request, just like the browser.
I look forward to your reply again.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65985] some error about executing the test_006_asserts.py [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=65985

--- Comment #4 from Stefan Eissing <icing@apache.org> ---
The call of "nghttp -a url" tells nghttp to *parse* the received html for links
and also download all those links it finds. There is nothing the server needs
to do special.

So, the question seems to be why the "-a" in nghttp does not seem to work for
you. Does it work for other sites?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65985] some error about executing the test_006_asserts.py [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=65985

--- Comment #5 from chengyechun1@huawei.com ---
(In reply to Stefan Eissing from comment #4)
> The call of "nghttp -a url" tells nghttp to *parse* the received html for
> links and also download all those links it finds. There is nothing the
> server needs to do special.
>
> So, the question seems to be why the "-a" in nghttp does not seem to work
> for you. Does it work for other sites?

This is the nghttp command executed by the test case: execute: nghttp
--header=host: test1.tests.httpd.apache.org:40002 -Haccept-encoding: none -ans
https://127.0.0.1:40002//006.html
You mean that the -a parameter in nghttp has no effect, which I did not expect,
I will try; Thank you for your reply;

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
Re: [Bug 65985] some error about executing the test_006_asserts.py [ In reply to ]
Since I can't login right now to bugzilla (problem on my side) just a
short mail: the "-a" for nghttp2 does only work, if it was compiled with
libxml2 support. Otherwise nghttp2 throws a warning or error and does
not retrieve any assets.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65985] some error about executing the test_006_asserts.py [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=65985

--- Comment #6 from Rainer Jung <rainer.jung@kippdata.de> ---
The "-a" for nghttp2 does only work, if it was compiled with libxml2 support.
Otherwise nghttp2 throws a warning or error and does not retrieve any assets.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65985] some error about executing the test_006_asserts.py [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=65985

--- Comment #7 from Rainer Jung <rainer.jung@kippdata.de> ---
That would be the warning for such an nghttp which doesn't support -a:

[WARNING]: -a, --get-assets option is ignored because
the binary was not compiled with libxml2.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65985] some error about executing the test_006_asserts.py [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=65985

--- Comment #8 from chengyechun1@huawei.com ---
(In reply to Rainer Jung from comment #7)
> That would be the warning for such an nghttp which doesn't support -a:
>
> [WARNING]: -a, --get-assets option is ignored because
> the binary was not compiled with libxml2.

yes,you are right;This error is reported when I run the nghttp -a command.
Thank you.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65985] some error about executing the test_006_asserts.py [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=65985

chengyechun1@huawei.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org