- From: Kristian Spangsege <kristian.spangsege@gmail.com>
- Date: Wed, 29 Aug 2007 01:38:33 +0200
- To: www-lib@w3.org
Hi According to http://www.w3.org/Library/ the latest version of Libwww is 5.4.1, however the version on my FedorCore 6 is 5.4.1. This leads me to suspect that Libwww is maintained elsewhere these days. Is that correct? The reson I'm asking is that I found a bug, and wanted to see if it was fixed in the latest release (or maybe in CVS.) Please advise as to where I can inspect the latest version and potentially report a bug. In case that tourns out negatively, I'll report it right here and right now: In HTNet.c is the following definition of HTNet_addAfter: PUBLIC BOOL HTNet_addAfter (HTNetAfter * after, const char * tmplate, void * param, int status, HTFilterOrder order) { if (!HTAfter) HTAfter = HTList_new(); else HTNet_deleteAfter(after); /* Ensure not listed twice */ return HTNetCall_addAfter(HTAfter, after, tmplate, param, status, order); } It is apparent that that same filter cannot be added twice, but this is in conflict with the implementation of HTAfterInit in HTInit.c. Here 'HTRedirectFilter' is added for multiple status codes. The rult is that the redirection handler only workds for satatus TEMP_REDIRECT, which obviously is not the intended behaviour: PUBLIC void HTAfterInit (void) { HTNet_addAfter(HTAuthFilter, "http://*", NULL, HT_NO_ACCESS, HT_FILTER_MIDDLE); HTNet_addAfter(HTAuthFilter, "http://*", NULL, HT_REAUTH, HT_FILTER_MIDDLE); HTNet_addAfter(HTPEP_afterFilter, "http://*", NULL, HT_ALL, HT_FILTER_MIDDLE); HTNet_addAfter(HTRedirectFilter, "http://*", NULL, HT_PERM_REDIRECT, HT_FILTER_MIDDLE); HTNet_addAfter(HTRedirectFilter, "http://*", NULL, HT_FOUND, HT_FILTER_MIDDLE); HTNet_addAfter(HTRedirectFilter, "http://*", NULL, HT_SEE_OTHER, HT_FILTER_MIDDLE); HTNet_addAfter(HTRedirectFilter, "http://*", NULL, HT_TEMP_REDIRECT, HT_FILTER_MIDDLE); HTNet_addAfter(HTAuthInfoFilter, "http://*", NULL, HT_ALL, HT_FILTER_MIDDLE); HTNet_addAfter(HTUseProxyFilter, "http://*", NULL, HT_USE_PROXY, HT_FILTER_MIDDLE); HTNet_addAfter(HTInfoFilter, NULL, NULL, HT_ALL, HT_FILTER_LATE); } Kind regards, Kristian Spangsege -- "Will robots inherit the earth? Yes, but they will be our children. We owe our minds to the deaths and lives of all the creatures that were ever engaged in the struggle called Evolution. Our job is to see that all this work shall not end up in meaningless waste." -- MARVIN L. MINSKY
Received on Tuesday, 28 August 2007 23:38:38 UTC