You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Eric Covener <co...@gmail.com> on 2024/06/24 18:28:33 UTC

[VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Hi all,

Please find below the proposed release tarball and signatures:

https://dist.apache.org/repos/dist/dev/httpd/

I would like to call a VOTE over the next few days to release
this candidate tarball httpd-2.4.60-rc1 as 2.4.60:
[ ] +1: It's not just good, it's good enough!
[ ] +0: Let's have a talk.
[ ] -1: There's trouble in paradise. Here's what's wrong.

The computed digests of the tarball up for vote are:
sha256: 75652b279ad286d8f45b65ddf072caee19017fa60b6c73a73317545baac7b798
*httpd-2.4.60-rc1.tar.gz
sha512: 7a266e0f4ecf485e15acefa9e429499d50343c559a67de0910cc56c501cc4a8228098d5cecd390684f97fd89b953e744be7e932301bb23314330d955c886a655
*httpd-2.4.60-rc1.tar.gz

The SVN candidate source is found at tags/2.4.60-rc1-candidate.

-- 
Eric Covener
covener@gmail.com

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by "Helmut K. C. Tessarek" <te...@evermeet.cx>.
On 2024-06-25 20:43, Yann Ylavic wrote:
> Should be fixed by
> https://github.com/apache/httpd/commit/6937b985ae112de0ad60f12a3cb522b608a4d501.diff

I'll test this tomorrow. Thanks!

-- 
regards Helmut K. C. Tessarek              KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
    Thou shalt not follow the NULL pointer for chaos and madness
    await thee at its end.
*/

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Yann Ylavic <yl...@gmail.com>.
On Wed, Jun 26, 2024 at 12:02 AM Helmut K. C. Tessarek
<te...@evermeet.cx> wrote:
>
> I tried with rc2, since rc3 is not available yet.
>
> Same issue.

Should be fixed by
https://github.com/apache/httpd/commit/6937b985ae112de0ad60f12a3cb522b608a4d501.diff

Regards;
Yann.

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Eric Covener <co...@gmail.com>.
On Tue, Jun 25, 2024 at 6:34 PM Eric Covener <co...@gmail.com> wrote:
>
> On Tue, Jun 25, 2024 at 6:32 PM Helmut K. C. Tessarek
> <te...@evermeet.cx> wrote:
> >
> > On 2024-06-25 18:25, Eric Covener wrote:
> > > As discussed in this thread earlier, the commit that jumped to mind
> > > was not in the rc's (and was hence obviously not the culprit)
> >
> > I missed that, sorry.
> >
> > My question still stands. What is the barnch from which the rcs are cut?
>
> In both GH (read only mirror) and SVN, there is a 2.4.x branch and a tag per rc.

Whoops,e.g. https://github.com/apache/httpd/tree/2.4.60-rc2-candidate

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by "Helmut K. C. Tessarek" <te...@evermeet.cx>.

On 2024-06-25 18:34, Eric Covener wrote:
> In both GH (read only mirror) and SVN, there is a 2.4.x branch and a tag per rc.

Thank you.

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Eric Covener <co...@gmail.com>.
On Tue, Jun 25, 2024 at 6:32 PM Helmut K. C. Tessarek
<te...@evermeet.cx> wrote:
>
> On 2024-06-25 18:25, Eric Covener wrote:
> > As discussed in this thread earlier, the commit that jumped to mind
> > was not in the rc's (and was hence obviously not the culprit)
>
> I missed that, sorry.
>
> My question still stands. What is the barnch from which the rcs are cut?

In both GH (read only mirror) and SVN, there is a 2.4.x branch and a tag per rc.



-- 
Eric Covener
covener@gmail.com

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by "Helmut K. C. Tessarek" <te...@evermeet.cx>.
On 2024-06-25 18:25, Eric Covener wrote:
> As discussed in this thread earlier, the commit that jumped to mind
> was not in the rc's (and was hence obviously not the culprit)

I missed that, sorry.

My question still stands. What is the barnch from which the rcs are cut?

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Eric Covener <co...@gmail.com>.
On Tue, Jun 25, 2024 at 6:02 PM Helmut K. C. Tessarek
<te...@evermeet.cx> wrote:
>
> I tried with rc2, since rc3 is not available yet.
>
> Same issue.
>
> On 2024-06-25 08:44, Eric Covener wrote:
> >   - loglevel trace8 from this request
>
> Yeah, I am not putting that online for public consumption.
> I'll send it to your email address.
>
> >   - whether backing out
> > https://github.com/apache/httpd/commit/9494aa8d52e3c263bc0413b77ac8a73b0d524388.diff
> > from the candidate helps?
>
> Ok. I tried to find this code in rc2, but didn't. I seriously have no
> clue how development works with this project. Do you have a branch that
> I can use and just revert a commit? Trunk is not compatible with the
> 2.4.59 or 2.4.60 code. Referencing random commits from trunk is useless.

As discussed in this thread earlier, the commit that jumped to mind
was not in the rc's (and was hence obviously not the culprit)

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by "Helmut K. C. Tessarek" <te...@evermeet.cx>.
I tried with rc2, since rc3 is not available yet.

Same issue.

On 2024-06-25 08:44, Eric Covener wrote:
>   - loglevel trace8 from this request

Yeah, I am not putting that online for public consumption.
I'll send it to your email address.

>   - whether backing out
> https://github.com/apache/httpd/commit/9494aa8d52e3c263bc0413b77ac8a73b0d524388.diff
> from the candidate helps?

Ok. I tried to find this code in rc2, but didn't. I seriously have no 
clue how development works with this project. Do you have a branch that 
I can use and just revert a commit? Trunk is not compatible with the 
2.4.59 or 2.4.60 code. Referencing random commits from trunk is useless.

How about a branch 2.4.60 or 2.4.60-rcX that can be used to add/revert 
commits? There must be a branch from which the rcs are created.

Cheers,
   K. C.

-- 
regards Helmut K. C. Tessarek              KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
    Thou shalt not follow the NULL pointer for chaos and madness
    await thee at its end.
*/

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Eric Covener <co...@gmail.com>.
Vote is abandoned, please look for an RC2 thread soon.

On Tue, Jun 25, 2024 at 10:58 AM Eric Covener <co...@gmail.com> wrote:
>
> On Tue, Jun 25, 2024 at 9:38 AM Yann Ylavic <yl...@gmail.com> wrote:
> >
> > On Tue, Jun 25, 2024 at 2:50 PM Eric Covener <co...@gmail.com> wrote:
> > >
> > >  - whether backing out
> > > https://github.com/apache/httpd/commit/9494aa8d52e3c263bc0413b77ac8a73b0d524388.diff
> > > from the candidate helps?
> >
> > I'm not sure r1918553 made it to rc1, did it?
>
> Sorry -- I plan to re-spin to pick it up in the next few hours.



-- 
Eric Covener
covener@gmail.com

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Eric Covener <co...@gmail.com>.
On Tue, Jun 25, 2024 at 9:38 AM Yann Ylavic <yl...@gmail.com> wrote:
>
> On Tue, Jun 25, 2024 at 2:50 PM Eric Covener <co...@gmail.com> wrote:
> >
> >  - whether backing out
> > https://github.com/apache/httpd/commit/9494aa8d52e3c263bc0413b77ac8a73b0d524388.diff
> > from the candidate helps?
>
> I'm not sure r1918553 made it to rc1, did it?

Sorry -- I plan to re-spin to pick it up in the next few hours.

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Ruediger Pluem <rp...@apache.org>.

On 6/25/24 3:30 PM, Yann Ylavic wrote:
> On Tue, Jun 25, 2024 at 2:50 PM Eric Covener <co...@gmail.com> wrote:
>>
>>  - whether backing out
>> https://github.com/apache/httpd/commit/9494aa8d52e3c263bc0413b77ac8a73b0d524388.diff
>> from the candidate helps?
> 
> I'm not sure r1918553 made it to rc1, did it?
> 

I cannot see it there.

Regards

Rüdiger

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Yann Ylavic <yl...@gmail.com>.
On Tue, Jun 25, 2024 at 2:50 PM Eric Covener <co...@gmail.com> wrote:
>
>  - whether backing out
> https://github.com/apache/httpd/commit/9494aa8d52e3c263bc0413b77ac8a73b0d524388.diff
> from the candidate helps?

I'm not sure r1918553 made it to rc1, did it?

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by "Helmut K. C. Tessarek" <te...@evermeet.cx>.
On 2024-06-25 08:44, Eric Covener wrote:
>   - whether you build both from source / the same way

Yes, and I build always exactly the same way (my own ansible script). 
The only thing that differs is the tarball.

>   - Any hint as to why there's a space in that parameter?

Which space and which parameter? I said that I believed there should be 
a space in the log output between the fcgi setup and the resource that 
is accessed.

>   - loglevel trace8 from this request
>   - whether backing out
> https://github.com/apache/httpd/commit/9494aa8d52e3c263bc0413b77ac8a73b0d524388.diff
> from the candidate helps?

I can't do that. At least not at the moment. This is a production 
machine. (Yes, I was stupid enough to do that on prod.) I'll reproduce 
on a test VM and get you the info. First I'll try rc3 or whateever the 
latest one is.

Cheers,
   K.C.
-- 
regards Helmut K. C. Tessarek              KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
    Thou shalt not follow the NULL pointer for chaos and madness
    await thee at its end.
*/

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Eric Covener <co...@gmail.com>.
On Tue, Jun 25, 2024 at 2:54 AM Ruediger Pluem <rp...@apache.org> wrote:
>
>
>
> On 6/25/24 8:30 AM, Helmut K. C. Tessarek wrote:
> > Hello,
> >
> > On 2024-06-24 14:28, Eric Covener wrote:
> >> Hi all,
> >>
> >> Please find below the proposed release tarball and signatures:
> >>
> >> https://dist.apache.org/repos/dist/dev/httpd/
> >>
> >> I would like to call a VOTE over the next few days to release
> >> this candidate tarball httpd-2.4.60-rc1 as 2.4.60:
> >> [ ] +1: It's not just good, it's good enough!
> >> [ ] +0: Let's have a talk.
> >> [ ] -1: There's trouble in paradise. Here's what's wrong.
> >
> > It's the first time I tested an rc, but since my current one coredumps on Fedora 40 (a bug is open), I thought I'd give it a try.
> >
> > Right after starting it, I get permission errors all over the place.
> >
> > Here an example:
> >
> > [core:error] [pid 1385877] AH00132: file permissions deny server access:
> > proxy:unix:/run/php82-fpm/xxx.sock|fcgi://xxx/var/www/index.php
> >
> > As you can see there is no space between the fcgi and the path of the resource.
> >
> > The last part should be: fcgi://xxx /var/www/index.php
> >
> > Or maybe this is correct and normal way the error message is constructed. Either way, as soon as I install 2.4.59, the errors are
> > gone. Thus, something is off with this version.
>
> Can you provide more details on your configuration how you forward stuff to fcgi and what request you made?

Also curious about:

 - whether you build both from source / the same way
 - Any hint as to why there's a space in that parameter?
 - loglevel trace8 from this request
 - whether backing out
https://github.com/apache/httpd/commit/9494aa8d52e3c263bc0413b77ac8a73b0d524388.diff
from the candidate helps?

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by "Helmut K. C. Tessarek" <te...@evermeet.cx>.
On 2024-06-25 19:55, Yann Ylavic wrote:
> Done in r1918626. Looks good in my manual testing too, there will be
> two calls to ap_proxy_fixup_uds_filename() when proxying from
> r->handler, first in proxy_handler() and second in
> ap_proxy_pre_request(), but since the first will strip the UDS already
> the other call is a noop. We can eventually rework this after the
> release.

May I ask what this fixup was supposed to fix? I take it this was 
introduced after 2.4.59, so I guess it must have been added to fix 
something, but broke something else.
If it's too complicated to explain, that's ok too. I am just curious. 
That's all.

-- 
regards Helmut K. C. Tessarek              KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
    Thou shalt not follow the NULL pointer for chaos and madness
    await thee at its end.
*/

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Yann Ylavic <yl...@gmail.com>.
On Wed, Jun 26, 2024 at 1:17 AM Eric Covener <co...@gmail.com> wrote:
>
> On Tue, Jun 25, 2024 at 7:03 PM Yann Ylavic <yl...@gmail.com> wrote:
> >
> > On Wed, Jun 26, 2024 at 12:37 AM Eric Covener <co...@gmail.com> wrote:
> > >
> > > > The attached might work, currently testing but sending early if you
> > > > want to try too.
> > >
> > > looks like proxy: is stripped off after the new call and needs to be
> > > added back in?
> >
> > Yeah, the new call to ap_proxy_fixup_uds_filename() should not take
> > &r->filename as argument.
> > Fixed in this new version.
>
> +1 with basic "fakefpm" and real fpm hello-world.  Please commit to
> trunk when practical.

Done in r1918626. Looks good in my manual testing too, there will be
two calls to ap_proxy_fixup_uds_filename() when proxying from
r->handler, first in proxy_handler() and second in
ap_proxy_pre_request(), but since the first will strip the UDS already
the other call is a noop. We can eventually rework this after the
release.

>
> If we can get another review for 2.4.x I can add it and roll an rc so
> it can be more easily picked up for testing.

+1


Regards;
Yann.

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Eric Covener <co...@gmail.com>.
On Tue, Jun 25, 2024 at 7:03 PM Yann Ylavic <yl...@gmail.com> wrote:
>
> On Wed, Jun 26, 2024 at 12:37 AM Eric Covener <co...@gmail.com> wrote:
> >
> > > The attached might work, currently testing but sending early if you
> > > want to try too.
> >
> > looks like proxy: is stripped off after the new call and needs to be
> > added back in?
>
> Yeah, the new call to ap_proxy_fixup_uds_filename() should not take
> &r->filename as argument.
> Fixed in this new version.

+1 with basic "fakefpm" and real fpm hello-world.  Please commit to
trunk when practical.

If we can get another review for 2.4.x I can add it and roll an rc so
it can be more easily picked up for testing.

-- 
Eric Covener
covener@gmail.com

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Yann Ylavic <yl...@gmail.com>.
On Wed, Jun 26, 2024 at 12:37 AM Eric Covener <co...@gmail.com> wrote:
>
> > The attached might work, currently testing but sending early if you
> > want to try too.
>
> looks like proxy: is stripped off after the new call and needs to be
> added back in?

Yeah, the new call to ap_proxy_fixup_uds_filename() should not take
&r->filename as argument.
Fixed in this new version.

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Eric Covener <co...@gmail.com>.
> The attached might work, currently testing but sending early if you
> want to try too.

looks like proxy: is stripped off after the new call and needs to be
added back in?

-- 
Eric Covener
covener@gmail.com

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Yann Ylavic <yl...@gmail.com>.
On Tue, Jun 25, 2024 at 11:35 PM Eric Covener <co...@gmail.com> wrote:
>
> On Tue, Jun 25, 2024 at 5:22 PM Eric Covener <co...@gmail.com> wrote:
> >
> > On Tue, Jun 25, 2024 at 5:06 PM Eric Covener <co...@gmail.com> wrote:
> > >
> > > On Tue, Jun 25, 2024 at 4:35 PM Helmut K. C. Tessarek
> > > <te...@evermeet.cx> wrote:
> > > >
> > > > On 2024-06-25 02:53, Ruediger Pluem wrote:
> > > > > Can you provide more details on your configuration how you forward stuff to fcgi and what request you made?
> > > >
> > > > Very simple:
> > > >
> > > > <FilesMatch "\.php$">
> > > >      SetHandler  "proxy:unix:/run/php82-fpm/xxx.sock|fcgi://xxx"
> > > > </FilesMatch>
> > >
> > > I think this new path needs to account for UDS.  The URL is e.g.
> > > "unix:/tmp/fake.sock|fcgi://xxx..." during proxy_fcgi_canon so it
> > > declines, then the core handler reports the error on the
> > > pseudo-filename.
> >
> > Or for now, skip the newly added proxy_fixup() and escape just
> > r->filename before it gets the handler prefixed to it?
>
> These all seem hairy. We can do something more targetted from the
> start to decrease the fallout?

The attached might work, currently testing but sending early if you
want to try too.

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Eric Covener <co...@gmail.com>.
On Tue, Jun 25, 2024 at 5:22 PM Eric Covener <co...@gmail.com> wrote:
>
> On Tue, Jun 25, 2024 at 5:06 PM Eric Covener <co...@gmail.com> wrote:
> >
> > On Tue, Jun 25, 2024 at 4:35 PM Helmut K. C. Tessarek
> > <te...@evermeet.cx> wrote:
> > >
> > > On 2024-06-25 02:53, Ruediger Pluem wrote:
> > > > Can you provide more details on your configuration how you forward stuff to fcgi and what request you made?
> > >
> > > Very simple:
> > >
> > > <FilesMatch "\.php$">
> > >      SetHandler  "proxy:unix:/run/php82-fpm/xxx.sock|fcgi://xxx"
> > > </FilesMatch>
> >
> > I think this new path needs to account for UDS.  The URL is e.g.
> > "unix:/tmp/fake.sock|fcgi://xxx..." during proxy_fcgi_canon so it
> > declines, then the core handler reports the error on the
> > pseudo-filename.
>
> Or for now, skip the newly added proxy_fixup() and escape just
> r->filename before it gets the handler prefixed to it?

These all seem hairy. We can do something more targetted from the
start to decrease the fallout?



-- 
Eric Covener
covener@gmail.com

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Eric Covener <co...@gmail.com>.
On Tue, Jun 25, 2024 at 5:06 PM Eric Covener <co...@gmail.com> wrote:
>
> On Tue, Jun 25, 2024 at 4:35 PM Helmut K. C. Tessarek
> <te...@evermeet.cx> wrote:
> >
> > On 2024-06-25 02:53, Ruediger Pluem wrote:
> > > Can you provide more details on your configuration how you forward stuff to fcgi and what request you made?
> >
> > Very simple:
> >
> > <FilesMatch "\.php$">
> >      SetHandler  "proxy:unix:/run/php82-fpm/xxx.sock|fcgi://xxx"
> > </FilesMatch>
>
> I think this new path needs to account for UDS.  The URL is e.g.
> "unix:/tmp/fake.sock|fcgi://xxx..." during proxy_fcgi_canon so it
> declines, then the core handler reports the error on the
> pseudo-filename.

Or for now, skip the newly added proxy_fixup() and escape just
r->filename before it gets the handler prefixed to it?

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Eric Covener <co...@gmail.com>.
On Tue, Jun 25, 2024 at 4:35 PM Helmut K. C. Tessarek
<te...@evermeet.cx> wrote:
>
> On 2024-06-25 02:53, Ruediger Pluem wrote:
> > Can you provide more details on your configuration how you forward stuff to fcgi and what request you made?
>
> Very simple:
>
> <FilesMatch "\.php$">
>      SetHandler  "proxy:unix:/run/php82-fpm/xxx.sock|fcgi://xxx"
> </FilesMatch>

I think this new path needs to account for UDS.  The URL is e.g.
"unix:/tmp/fake.sock|fcgi://xxx..." during proxy_fcgi_canon so it
declines, then the core handler reports the error on the
pseudo-filename.

static int proxy_fcgi_canon(request_rec *r, char *url)
{
    char *host, sport[7];
    const char *err;
    char *path;
    apr_port_t port, def_port;
    fcgi_req_config_t *rconf = NULL;
    const char *pathinfo_type = NULL;

    if (ap_cstr_casecmpn(url, "fcgi:", 5) == 0) {
        url += 5;
    }
    else {
        return DECLINED;
    }

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by "Helmut K. C. Tessarek" <te...@evermeet.cx>.
On 2024-06-25 02:53, Ruediger Pluem wrote:
> Can you provide more details on your configuration how you forward stuff to fcgi and what request you made?

Very simple:

<FilesMatch "\.php$">
     SetHandler  "proxy:unix:/run/php82-fpm/xxx.sock|fcgi://xxx"
</FilesMatch>

And then I access my website at https://example.com

Please don't forget that I've been using this configuration for years.
I only change the path to the socket every time when I move to a newer 
PHP release.

Cheers,
   K.C.

-- 
regards Helmut K. C. Tessarek              KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
    Thou shalt not follow the NULL pointer for chaos and madness
    await thee at its end.
*/

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Ruediger Pluem <rp...@apache.org>.

On 6/25/24 8:30 AM, Helmut K. C. Tessarek wrote:
> Hello,
> 
> On 2024-06-24 14:28, Eric Covener wrote:
>> Hi all,
>>
>> Please find below the proposed release tarball and signatures:
>>
>> https://dist.apache.org/repos/dist/dev/httpd/
>>
>> I would like to call a VOTE over the next few days to release
>> this candidate tarball httpd-2.4.60-rc1 as 2.4.60:
>> [ ] +1: It's not just good, it's good enough!
>> [ ] +0: Let's have a talk.
>> [ ] -1: There's trouble in paradise. Here's what's wrong.
> 
> It's the first time I tested an rc, but since my current one coredumps on Fedora 40 (a bug is open), I thought I'd give it a try.
> 
> Right after starting it, I get permission errors all over the place.
> 
> Here an example:
> 
> [core:error] [pid 1385877] AH00132: file permissions deny server access:
> proxy:unix:/run/php82-fpm/xxx.sock|fcgi://xxx/var/www/index.php
> 
> As you can see there is no space between the fcgi and the path of the resource.
> 
> The last part should be: fcgi://xxx /var/www/index.php
> 
> Or maybe this is correct and normal way the error message is constructed. Either way, as soon as I install 2.4.59, the errors are
> gone. Thus, something is off with this version.

Can you provide more details on your configuration how you forward stuff to fcgi and what request you made?

Regards

Rüdiger


Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by "Helmut K. C. Tessarek" <te...@evermeet.cx>.
Hello,

On 2024-06-24 14:28, Eric Covener wrote:
> Hi all,
> 
> Please find below the proposed release tarball and signatures:
> 
> https://dist.apache.org/repos/dist/dev/httpd/
> 
> I would like to call a VOTE over the next few days to release
> this candidate tarball httpd-2.4.60-rc1 as 2.4.60:
> [ ] +1: It's not just good, it's good enough!
> [ ] +0: Let's have a talk.
> [ ] -1: There's trouble in paradise. Here's what's wrong.

It's the first time I tested an rc, but since my current one coredumps 
on Fedora 40 (a bug is open), I thought I'd give it a try.

Right after starting it, I get permission errors all over the place.

Here an example:

[core:error] [pid 1385877] AH00132: file permissions deny server access: 
proxy:unix:/run/php82-fpm/xxx.sock|fcgi://xxx/var/www/index.php

As you can see there is no space between the fcgi and the path of the 
resource.

The last part should be: fcgi://xxx /var/www/index.php

Or maybe this is correct and normal way the error message is 
constructed. Either way, as soon as I install 2.4.59, the errors are 
gone. Thus, something is off with this version.

Cheers,
   K. C.


-- 
regards Helmut K. C. Tessarek              KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
    Thou shalt not follow the NULL pointer for chaos and madness
    await thee at its end.
*/

Re: httpd-2.4.60-rc1: pytest http2 failures w.r.t. assets

Posted by Rainer Jung <ra...@kippdata.de>.
Am 25.06.24 um 08:50 schrieb Ruediger Pluem:
> 
> 
> On 6/25/24 1:12 AM, Rainer Jung wrote:
>> I am getting some pytest failures when checking for assets (leading "/" missing):
>>
>> =================================== FAILURES ===================================
>> __________________________ TestAssets.test_h2_006_03 ___________________________
>>
>> self = <http2.test_006_assets.TestAssets object at 0x7fe70af578e0>
>> env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>
>>
>>      def test_h2_006_03(self, env):
>>          # create the tiles files we originally had checked in
>>          exp_assets = [
>>              {"status": 200, "size": "10K", "path": "/004.html"},
>>              {"status": 200, "size": "742", "path": "/004/gophertiles.jpg"},
>>          ]
>>          for i in range(2, 181):
>>              with open(f"{env.server_docs_dir}/test1/004/gophertiles_{i:03d}.jpg", "w") as fd:
>>                  fd.write("0123456789\n")
>>              exp_assets.append(
>>                  {"status": 200, "size": "11", "path": f"/004/gophertiles_{i:03d}.jpg"},
>>              )
>>
>>          url = env.mkurl("https", "test1", "/004.html")
>>          r = env.nghttp().assets(url, options=["-Haccept-encoding: none"])
>>          assert 0 == r.exit_code
>>          assert 181 == len(r.assets)
>>>         assert r.assets == exp_assets
>> E       AssertionError: assert [{'path': '/0...s': 200}, ...] == [{'path': '/0...s': 200}, ...]
>> E         At index 1 diff: {'path': '004/gophertiles.jpg', 'status': 200, 'size': '742'} != {'status': 200, 'size': '742', 'path':
>> '/004/gophertiles.jpg'}
>> E         Full diff:
>> E           [
>> E            {'path': '/004.html', 'size': '10K', 'status': 200},
>> E         -  {'path': '/004/gophertiles.jpg', 'size': '742', 'status': 200},
>> E         ?            -
>> E         +  {'path': '004/gophertiles.jpg', 'size': '742', 'status': 200},...
>> E
>> E         ...Full output truncated (539 lines hidden), use '-vv' to show
>>
>> modules/http2/test_006_assets.py:52: AssertionError
>> ----------------------------- Captured stdout call -----------------------------
>> execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 -Haccept-encoding: none -ans https://127.0.0.1:5001//004.html
>> __________________________ TestAssets.test_h2_006_04 ___________________________
>>
>> self = <http2.test_006_assets.TestAssets object at 0x7fe70af54d90>
>> env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>
>>
>>      def test_h2_006_04(self, env):
>>          url = env.mkurl("https", "test1", "/006.html")
>>          r = env.nghttp().assets(url, options=["-Haccept-encoding: none"])
>>          assert 0 == r.exit_code
>>          assert 3 == len(r.assets)
>>>         assert r.assets == [
>>              {"status": 200, "size": "543", "path": "/006.html"},
>>              {"status": 200, "size": "216", "path": "/006/006.css"},
>>              {"status": 200, "size": "839", "path": "/006/006.js"}
>>          ]
>> E       AssertionError: assert [{'path': '/0...status': 200}] == [{'path': '/0...status': 200}]
>> E         At index 1 diff: {'path': '006/006.css', 'status': 200, 'size': '216'} != {'status': 200, 'size': '216', 'path':
>> '/006/006.css'}
>> E         Full diff:
>> E           [
>> E            {'path': '/006.html', 'size': '543', 'status': 200},
>> E         -  {'path': '/006/006.css', 'size': '216', 'status': 200},
>> E         ?            -
>> E         +  {'path': '006/006.css', 'size': '216', 'status': 200},...
>> E
>> E         ...Full output truncated (5 lines hidden), use '-vv' to show
>>
>> modules/http2/test_006_assets.py:60: AssertionError
>> ----------------------------- Captured stdout call -----------------------------
>> execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 -Haccept-encoding: none -ans https://127.0.0.1:5001//006.html
>> __________________________ TestAssets.test_h2_006_05 ___________________________
>>
>> self = <http2.test_006_assets.TestAssets object at 0x7fe70af54be0>
>> env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>
>>
>>      def test_h2_006_05(self, env):
>>          url = env.mkurl("https", "test1", "/003.html")
>>          r = env.nghttp().assets(url, options=["--window-bits=24", "-Haccept-encoding: none"])
>>          assert 0 == r.exit_code
>>          assert 2 == len(r.assets)
>>>         assert r.assets == [
>>              {"status": 200, "size": "316", "path": "/003.html"},
>>              {"status": 200, "size": "88K", "path": "/003/003_img.jpg"}
>>          ]
>> E       AssertionError: assert [{'path': '/0...status': 200}] == [{'path': '/0...status': 200}]
>> E         At index 1 diff: {'path': '003/003_img.jpg', 'status': 200, 'size': '88K'} != {'status': 200, 'size': '88K', 'path':
>> '/003/003_img.jpg'}
>> E         Full diff:
>> E           [
>> E            {'path': '/003.html', 'size': '316', 'status': 200},
>> E         -  {'path': '/003/003_img.jpg', 'size': '88K', 'status': 200},
>> E         ?            -
>> E         +  {'path': '003/003_img.jpg', 'size': '88K', 'status': 200},...
>> E
>> E         ...Full output truncated (2 lines hidden), use '-vv' to show
>>
>> modules/http2/test_006_assets.py:72: AssertionError
>> ----------------------------- Captured stdout call -----------------------------
>> execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 --window-bits=24 -Haccept-encoding: none -ans
>> https://127.0.0.1:5001//003.html
>>
>>
>> These seem to happen consistently.
>>
>> Currently I don't know, whether it is a problem with the test, or a real problem.
>>
>> If it isn't reproducible for others, I can try to investigate deeper.
> 
> I don't have the correct setup here to run the test but maybe it is an issue / change in your nghttp binary.
> Did you use a new version? I guess the following patch to the tests should fix this, but I am still not sure
> if this is a failure on server side or with the test setup:
> 
> Index: test/pyhttpd/nghttp.py
> ===================================================================
> --- test/pyhttpd/nghttp.py	(revision 1918546)
> +++ test/pyhttpd/nghttp.py	(working copy)
> @@ -224,7 +224,7 @@
>           if 0 == r.exit_code:
>               lines = re.findall(r'[^\n]*\n', r.stdout, re.MULTILINE)
>               for lidx, l in enumerate(lines):
> -                m = re.match(r'\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+/(.*)', l)
> +                m = re.match(r'\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+/*(/.*)', l)
>                   if m:
>                       assets.append({
>                           "path": m.group(7),
> 
> 
> 
> Regards
> 
> Rüdiger

I think this is the right fix. I checked nghttp2 output and it seems 
unchanged, but indeed the regular expression eats too many slashes. I 
just don't understand, why I didn't observe it for 2.4.59. Anyways, I 
will commit this fix.

Thanks and regards,

Rainer

Re: httpd-2.4.60-rc1: pytest http2 failures w.r.t. assets

Posted by Stefan Eissing via dev <de...@httpd.apache.org>.

> Am 25.06.2024 um 09:43 schrieb Rainer Jung <ra...@kippdata.de>:
> 
> Hi Rüdiger et al.,
> 
> Am 25.06.24 um 08:50 schrieb Ruediger Pluem:
>> On 6/25/24 1:12 AM, Rainer Jung wrote:
>>> I am getting some pytest failures when checking for assets (leading "/" missing):
>>> 
>>> =================================== FAILURES ===================================
>>> __________________________ TestAssets.test_h2_006_03 ___________________________
>>> 
>>> self = <http2.test_006_assets.TestAssets object at 0x7fe70af578e0>
>>> env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>
>>> 
>>>     def test_h2_006_03(self, env):
>>>         # create the tiles files we originally had checked in
>>>         exp_assets = [
>>>             {"status": 200, "size": "10K", "path": "/004.html"},
>>>             {"status": 200, "size": "742", "path": "/004/gophertiles.jpg"},
>>>         ]
>>>         for i in range(2, 181):
>>>             with open(f"{env.server_docs_dir}/test1/004/gophertiles_{i:03d}.jpg", "w") as fd:
>>>                 fd.write("0123456789\n")
>>>             exp_assets.append(
>>>                 {"status": 200, "size": "11", "path": f"/004/gophertiles_{i:03d}.jpg"},
>>>             )
>>> 
>>>         url = env.mkurl("https", "test1", "/004.html")
>>>         r = env.nghttp().assets(url, options=["-Haccept-encoding: none"])
>>>         assert 0 == r.exit_code
>>>         assert 181 == len(r.assets)
>>>>        assert r.assets == exp_assets
>>> E       AssertionError: assert [{'path': '/0...s': 200}, ...] == [{'path': '/0...s': 200}, ...]
>>> E         At index 1 diff: {'path': '004/gophertiles.jpg', 'status': 200, 'size': '742'} != {'status': 200, 'size': '742', 'path':
>>> '/004/gophertiles.jpg'}
>>> E         Full diff:
>>> E           [
>>> E            {'path': '/004.html', 'size': '10K', 'status': 200},
>>> E         -  {'path': '/004/gophertiles.jpg', 'size': '742', 'status': 200},
>>> E         ?            -
>>> E         +  {'path': '004/gophertiles.jpg', 'size': '742', 'status': 200},...
>>> E
>>> E         ...Full output truncated (539 lines hidden), use '-vv' to show
>>> 
>>> modules/http2/test_006_assets.py:52: AssertionError
>>> ----------------------------- Captured stdout call -----------------------------
>>> execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 -Haccept-encoding: none -ans https://127.0.0.1:5001//004.html
>>> __________________________ TestAssets.test_h2_006_04 ___________________________
>>> 
>>> self = <http2.test_006_assets.TestAssets object at 0x7fe70af54d90>
>>> env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>
>>> 
>>>     def test_h2_006_04(self, env):
>>>         url = env.mkurl("https", "test1", "/006.html")
>>>         r = env.nghttp().assets(url, options=["-Haccept-encoding: none"])
>>>         assert 0 == r.exit_code
>>>         assert 3 == len(r.assets)
>>>>        assert r.assets == [
>>>             {"status": 200, "size": "543", "path": "/006.html"},
>>>             {"status": 200, "size": "216", "path": "/006/006.css"},
>>>             {"status": 200, "size": "839", "path": "/006/006.js"}
>>>         ]
>>> E       AssertionError: assert [{'path': '/0...status': 200}] == [{'path': '/0...status': 200}]
>>> E         At index 1 diff: {'path': '006/006.css', 'status': 200, 'size': '216'} != {'status': 200, 'size': '216', 'path':
>>> '/006/006.css'}
>>> E         Full diff:
>>> E           [
>>> E            {'path': '/006.html', 'size': '543', 'status': 200},
>>> E         -  {'path': '/006/006.css', 'size': '216', 'status': 200},
>>> E         ?            -
>>> E         +  {'path': '006/006.css', 'size': '216', 'status': 200},...
>>> E
>>> E         ...Full output truncated (5 lines hidden), use '-vv' to show
>>> 
>>> modules/http2/test_006_assets.py:60: AssertionError
>>> ----------------------------- Captured stdout call -----------------------------
>>> execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 -Haccept-encoding: none -ans https://127.0.0.1:5001//006.html
>>> __________________________ TestAssets.test_h2_006_05 ___________________________
>>> 
>>> self = <http2.test_006_assets.TestAssets object at 0x7fe70af54be0>
>>> env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>
>>> 
>>>     def test_h2_006_05(self, env):
>>>         url = env.mkurl("https", "test1", "/003.html")
>>>         r = env.nghttp().assets(url, options=["--window-bits=24", "-Haccept-encoding: none"])
>>>         assert 0 == r.exit_code
>>>         assert 2 == len(r.assets)
>>>>        assert r.assets == [
>>>             {"status": 200, "size": "316", "path": "/003.html"},
>>>             {"status": 200, "size": "88K", "path": "/003/003_img.jpg"}
>>>         ]
>>> E       AssertionError: assert [{'path': '/0...status': 200}] == [{'path': '/0...status': 200}]
>>> E         At index 1 diff: {'path': '003/003_img.jpg', 'status': 200, 'size': '88K'} != {'status': 200, 'size': '88K', 'path':
>>> '/003/003_img.jpg'}
>>> E         Full diff:
>>> E           [
>>> E            {'path': '/003.html', 'size': '316', 'status': 200},
>>> E         -  {'path': '/003/003_img.jpg', 'size': '88K', 'status': 200},
>>> E         ?            -
>>> E         +  {'path': '003/003_img.jpg', 'size': '88K', 'status': 200},...
>>> E
>>> E         ...Full output truncated (2 lines hidden), use '-vv' to show
>>> 
>>> modules/http2/test_006_assets.py:72: AssertionError
>>> ----------------------------- Captured stdout call -----------------------------
>>> execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 --window-bits=24 -Haccept-encoding: none -ans
>>> https://127.0.0.1:5001//003.html
>>> 
>>> 
>>> These seem to happen consistently.
>>> 
>>> Currently I don't know, whether it is a problem with the test, or a real problem.
>>> 
>>> If it isn't reproducible for others, I can try to investigate deeper.
>> I don't have the correct setup here to run the test but maybe it is an issue / change in your nghttp binary.
>> Did you use a new version? I guess the following patch to the tests should fix this, but I am still not sure
>> if this is a failure on server side or with the test setup:
> 
> Thanks for the patch to fix the test.
> 
> Never say never, but in this case I doubt its an nghttp version thing: I am using
> 
> - rhel 8+9: 1.62.0
> - rhel 7: 1.34.0
> - sles 15: 1.61.0
> - sles12: 1.34.0
> 
> Fpr RHEL 7 and SLES 12 these are the same versions as when testing 2.4.59 where I did not get these failures (and the test file test_006_assets.py seems to not have changed).
> 
> But I did rebuild nghttp2 in all cases to make it use the latest versions of OpenSSL, C-Ares and libxml2. Something might have changed in my build setup but it looks a bit unlikely, that this will have introduced this behavior.
> 
> What I also updated is curl to 8.8.0. that curl is using nghttp2 1.62.0 on all platforms. But it seems curl is not used as a cloient for these tests.
> 
> The failures happen consistently with OpenSSL 3.3.1, 3.2.2, 3.1.6, 3.0.14 and 1.1.1w.
> 
> My python setup has not changed.
> 
> It is interesting, that the missing "/" comes up always for the second (and maybe third) requests in each test method, which are the ones with URI with and additional path component.
> 
> Let's see, whether Stefan has an opinion.

Just updated my 2.4.x env to nghttp2 v1.62.1 and ran the pytest on 2.4.60 without any problems. But I noticed that the tests generate an URL to the server with a double slash. Maybe that confuses things for you?

Could you try if the following change?

Index: test/pyhttpd/nghttp.py
===================================================================
--- test/pyhttpd/nghttp.py	(Revision 1918543)
+++ test/pyhttpd/nghttp.py	(Arbeitskopie)
@@ -60,7 +60,7 @@
             args.extend(options)
         for xurl in url:
             xu = urlparse(xurl)
-            nurl = "%s://%s:%s/%s" % (u.scheme, connect_host, xu.port, xu.path)
+            nurl = "%s://%s:%s%s" % (u.scheme, connect_host, xu.port, xu.path)
             if xu.query:
                 nurl = "%s?%s" % (nurl, xu.query)
             args.append(nurl)
@@ -224,7 +224,7 @@
         if 0 == r.exit_code:
             lines = re.findall(r'[^\n]*\n', r.stdout, re.MULTILINE)
             for lidx, l in enumerate(lines):
-                m = re.match(r'\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+/(.*)', l)
+                m = re.match(r'\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(/.*)', l)
                 if m:
                     assets.append({
                         "path": m.group(7),
> 
> Thanks and best regards,
> 
> Rainer
> 
>> Index: test/pyhttpd/nghttp.py
>> ===================================================================
>> --- test/pyhttpd/nghttp.py (revision 1918546)
>> +++ test/pyhttpd/nghttp.py (working copy)
>> @@ -224,7 +224,7 @@
>>          if 0 == r.exit_code:
>>              lines = re.findall(r'[^\n]*\n', r.stdout, re.MULTILINE)
>>              for lidx, l in enumerate(lines):
>> -                m = re.match(r'\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+/(.*)', l)
>> +                m = re.match(r'\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+/*(/.*)', l)
>>                  if m:
>>                      assets.append({
>>                          "path": m.group(7),
>> Regards
>> Rüdiger



Re: httpd-2.4.60-rc1: pytest http2 failures w.r.t. assets

Posted by Rainer Jung <ra...@kippdata.de>.
Hi Rüdiger et al.,

Am 25.06.24 um 08:50 schrieb Ruediger Pluem:
> 
> 
> On 6/25/24 1:12 AM, Rainer Jung wrote:
>> I am getting some pytest failures when checking for assets (leading "/" missing):
>>
>> =================================== FAILURES ===================================
>> __________________________ TestAssets.test_h2_006_03 ___________________________
>>
>> self = <http2.test_006_assets.TestAssets object at 0x7fe70af578e0>
>> env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>
>>
>>      def test_h2_006_03(self, env):
>>          # create the tiles files we originally had checked in
>>          exp_assets = [
>>              {"status": 200, "size": "10K", "path": "/004.html"},
>>              {"status": 200, "size": "742", "path": "/004/gophertiles.jpg"},
>>          ]
>>          for i in range(2, 181):
>>              with open(f"{env.server_docs_dir}/test1/004/gophertiles_{i:03d}.jpg", "w") as fd:
>>                  fd.write("0123456789\n")
>>              exp_assets.append(
>>                  {"status": 200, "size": "11", "path": f"/004/gophertiles_{i:03d}.jpg"},
>>              )
>>
>>          url = env.mkurl("https", "test1", "/004.html")
>>          r = env.nghttp().assets(url, options=["-Haccept-encoding: none"])
>>          assert 0 == r.exit_code
>>          assert 181 == len(r.assets)
>>>         assert r.assets == exp_assets
>> E       AssertionError: assert [{'path': '/0...s': 200}, ...] == [{'path': '/0...s': 200}, ...]
>> E         At index 1 diff: {'path': '004/gophertiles.jpg', 'status': 200, 'size': '742'} != {'status': 200, 'size': '742', 'path':
>> '/004/gophertiles.jpg'}
>> E         Full diff:
>> E           [
>> E            {'path': '/004.html', 'size': '10K', 'status': 200},
>> E         -  {'path': '/004/gophertiles.jpg', 'size': '742', 'status': 200},
>> E         ?            -
>> E         +  {'path': '004/gophertiles.jpg', 'size': '742', 'status': 200},...
>> E
>> E         ...Full output truncated (539 lines hidden), use '-vv' to show
>>
>> modules/http2/test_006_assets.py:52: AssertionError
>> ----------------------------- Captured stdout call -----------------------------
>> execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 -Haccept-encoding: none -ans https://127.0.0.1:5001//004.html
>> __________________________ TestAssets.test_h2_006_04 ___________________________
>>
>> self = <http2.test_006_assets.TestAssets object at 0x7fe70af54d90>
>> env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>
>>
>>      def test_h2_006_04(self, env):
>>          url = env.mkurl("https", "test1", "/006.html")
>>          r = env.nghttp().assets(url, options=["-Haccept-encoding: none"])
>>          assert 0 == r.exit_code
>>          assert 3 == len(r.assets)
>>>         assert r.assets == [
>>              {"status": 200, "size": "543", "path": "/006.html"},
>>              {"status": 200, "size": "216", "path": "/006/006.css"},
>>              {"status": 200, "size": "839", "path": "/006/006.js"}
>>          ]
>> E       AssertionError: assert [{'path': '/0...status': 200}] == [{'path': '/0...status': 200}]
>> E         At index 1 diff: {'path': '006/006.css', 'status': 200, 'size': '216'} != {'status': 200, 'size': '216', 'path':
>> '/006/006.css'}
>> E         Full diff:
>> E           [
>> E            {'path': '/006.html', 'size': '543', 'status': 200},
>> E         -  {'path': '/006/006.css', 'size': '216', 'status': 200},
>> E         ?            -
>> E         +  {'path': '006/006.css', 'size': '216', 'status': 200},...
>> E
>> E         ...Full output truncated (5 lines hidden), use '-vv' to show
>>
>> modules/http2/test_006_assets.py:60: AssertionError
>> ----------------------------- Captured stdout call -----------------------------
>> execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 -Haccept-encoding: none -ans https://127.0.0.1:5001//006.html
>> __________________________ TestAssets.test_h2_006_05 ___________________________
>>
>> self = <http2.test_006_assets.TestAssets object at 0x7fe70af54be0>
>> env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>
>>
>>      def test_h2_006_05(self, env):
>>          url = env.mkurl("https", "test1", "/003.html")
>>          r = env.nghttp().assets(url, options=["--window-bits=24", "-Haccept-encoding: none"])
>>          assert 0 == r.exit_code
>>          assert 2 == len(r.assets)
>>>         assert r.assets == [
>>              {"status": 200, "size": "316", "path": "/003.html"},
>>              {"status": 200, "size": "88K", "path": "/003/003_img.jpg"}
>>          ]
>> E       AssertionError: assert [{'path': '/0...status': 200}] == [{'path': '/0...status': 200}]
>> E         At index 1 diff: {'path': '003/003_img.jpg', 'status': 200, 'size': '88K'} != {'status': 200, 'size': '88K', 'path':
>> '/003/003_img.jpg'}
>> E         Full diff:
>> E           [
>> E            {'path': '/003.html', 'size': '316', 'status': 200},
>> E         -  {'path': '/003/003_img.jpg', 'size': '88K', 'status': 200},
>> E         ?            -
>> E         +  {'path': '003/003_img.jpg', 'size': '88K', 'status': 200},...
>> E
>> E         ...Full output truncated (2 lines hidden), use '-vv' to show
>>
>> modules/http2/test_006_assets.py:72: AssertionError
>> ----------------------------- Captured stdout call -----------------------------
>> execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 --window-bits=24 -Haccept-encoding: none -ans
>> https://127.0.0.1:5001//003.html
>>
>>
>> These seem to happen consistently.
>>
>> Currently I don't know, whether it is a problem with the test, or a real problem.
>>
>> If it isn't reproducible for others, I can try to investigate deeper.
> 
> I don't have the correct setup here to run the test but maybe it is an issue / change in your nghttp binary.
> Did you use a new version? I guess the following patch to the tests should fix this, but I am still not sure
> if this is a failure on server side or with the test setup:

Thanks for the patch to fix the test.

Never say never, but in this case I doubt its an nghttp version thing: I 
am using

- rhel 8+9: 1.62.0
- rhel 7: 1.34.0
- sles 15: 1.61.0
- sles12: 1.34.0

Fpr RHEL 7 and SLES 12 these are the same versions as when testing 
2.4.59 where I did not get these failures (and the test file 
test_006_assets.py seems to not have changed).

But I did rebuild nghttp2 in all cases to make it use the latest 
versions of OpenSSL, C-Ares and libxml2. Something might have changed in 
my build setup but it looks a bit unlikely, that this will have 
introduced this behavior.

What I also updated is curl to 8.8.0. that curl is using nghttp2 1.62.0 
on all platforms. But it seems curl is not used as a cloient for these 
tests.

The failures happen consistently with OpenSSL 3.3.1, 3.2.2, 3.1.6, 
3.0.14 and 1.1.1w.

My python setup has not changed.

It is interesting, that the missing "/" comes up always for the second 
(and maybe third) requests in each test method, which are the ones with 
URI with and additional path component.

Let's see, whether Stefan has an opinion.

Thanks and best regards,

Rainer

> Index: test/pyhttpd/nghttp.py
> ===================================================================
> --- test/pyhttpd/nghttp.py	(revision 1918546)
> +++ test/pyhttpd/nghttp.py	(working copy)
> @@ -224,7 +224,7 @@
>           if 0 == r.exit_code:
>               lines = re.findall(r'[^\n]*\n', r.stdout, re.MULTILINE)
>               for lidx, l in enumerate(lines):
> -                m = re.match(r'\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+/(.*)', l)
> +                m = re.match(r'\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+/*(/.*)', l)
>                   if m:
>                       assets.append({
>                           "path": m.group(7),
> 
> 
> 
> Regards
> 
> Rüdiger

Re: httpd-2.4.60-rc1: pytest http2 failures w.r.t. assets

Posted by Ruediger Pluem <rp...@apache.org>.

On 6/25/24 1:12 AM, Rainer Jung wrote:
> I am getting some pytest failures when checking for assets (leading "/" missing):
> 
> =================================== FAILURES ===================================
> __________________________ TestAssets.test_h2_006_03 ___________________________
> 
> self = <http2.test_006_assets.TestAssets object at 0x7fe70af578e0>
> env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>
> 
>     def test_h2_006_03(self, env):
>         # create the tiles files we originally had checked in
>         exp_assets = [
>             {"status": 200, "size": "10K", "path": "/004.html"},
>             {"status": 200, "size": "742", "path": "/004/gophertiles.jpg"},
>         ]
>         for i in range(2, 181):
>             with open(f"{env.server_docs_dir}/test1/004/gophertiles_{i:03d}.jpg", "w") as fd:
>                 fd.write("0123456789\n")
>             exp_assets.append(
>                 {"status": 200, "size": "11", "path": f"/004/gophertiles_{i:03d}.jpg"},
>             )
> 
>         url = env.mkurl("https", "test1", "/004.html")
>         r = env.nghttp().assets(url, options=["-Haccept-encoding: none"])
>         assert 0 == r.exit_code
>         assert 181 == len(r.assets)
>>       assert r.assets == exp_assets
> E       AssertionError: assert [{'path': '/0...s': 200}, ...] == [{'path': '/0...s': 200}, ...]
> E         At index 1 diff: {'path': '004/gophertiles.jpg', 'status': 200, 'size': '742'} != {'status': 200, 'size': '742', 'path':
> '/004/gophertiles.jpg'}
> E         Full diff:
> E           [
> E            {'path': '/004.html', 'size': '10K', 'status': 200},
> E         -  {'path': '/004/gophertiles.jpg', 'size': '742', 'status': 200},
> E         ?            -
> E         +  {'path': '004/gophertiles.jpg', 'size': '742', 'status': 200},...
> E
> E         ...Full output truncated (539 lines hidden), use '-vv' to show
> 
> modules/http2/test_006_assets.py:52: AssertionError
> ----------------------------- Captured stdout call -----------------------------
> execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 -Haccept-encoding: none -ans https://127.0.0.1:5001//004.html
> __________________________ TestAssets.test_h2_006_04 ___________________________
> 
> self = <http2.test_006_assets.TestAssets object at 0x7fe70af54d90>
> env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>
> 
>     def test_h2_006_04(self, env):
>         url = env.mkurl("https", "test1", "/006.html")
>         r = env.nghttp().assets(url, options=["-Haccept-encoding: none"])
>         assert 0 == r.exit_code
>         assert 3 == len(r.assets)
>>       assert r.assets == [
>             {"status": 200, "size": "543", "path": "/006.html"},
>             {"status": 200, "size": "216", "path": "/006/006.css"},
>             {"status": 200, "size": "839", "path": "/006/006.js"}
>         ]
> E       AssertionError: assert [{'path': '/0...status': 200}] == [{'path': '/0...status': 200}]
> E         At index 1 diff: {'path': '006/006.css', 'status': 200, 'size': '216'} != {'status': 200, 'size': '216', 'path':
> '/006/006.css'}
> E         Full diff:
> E           [
> E            {'path': '/006.html', 'size': '543', 'status': 200},
> E         -  {'path': '/006/006.css', 'size': '216', 'status': 200},
> E         ?            -
> E         +  {'path': '006/006.css', 'size': '216', 'status': 200},...
> E
> E         ...Full output truncated (5 lines hidden), use '-vv' to show
> 
> modules/http2/test_006_assets.py:60: AssertionError
> ----------------------------- Captured stdout call -----------------------------
> execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 -Haccept-encoding: none -ans https://127.0.0.1:5001//006.html
> __________________________ TestAssets.test_h2_006_05 ___________________________
> 
> self = <http2.test_006_assets.TestAssets object at 0x7fe70af54be0>
> env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>
> 
>     def test_h2_006_05(self, env):
>         url = env.mkurl("https", "test1", "/003.html")
>         r = env.nghttp().assets(url, options=["--window-bits=24", "-Haccept-encoding: none"])
>         assert 0 == r.exit_code
>         assert 2 == len(r.assets)
>>       assert r.assets == [
>             {"status": 200, "size": "316", "path": "/003.html"},
>             {"status": 200, "size": "88K", "path": "/003/003_img.jpg"}
>         ]
> E       AssertionError: assert [{'path': '/0...status': 200}] == [{'path': '/0...status': 200}]
> E         At index 1 diff: {'path': '003/003_img.jpg', 'status': 200, 'size': '88K'} != {'status': 200, 'size': '88K', 'path':
> '/003/003_img.jpg'}
> E         Full diff:
> E           [
> E            {'path': '/003.html', 'size': '316', 'status': 200},
> E         -  {'path': '/003/003_img.jpg', 'size': '88K', 'status': 200},
> E         ?            -
> E         +  {'path': '003/003_img.jpg', 'size': '88K', 'status': 200},...
> E
> E         ...Full output truncated (2 lines hidden), use '-vv' to show
> 
> modules/http2/test_006_assets.py:72: AssertionError
> ----------------------------- Captured stdout call -----------------------------
> execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 --window-bits=24 -Haccept-encoding: none -ans
> https://127.0.0.1:5001//003.html
> 
> 
> These seem to happen consistently.
> 
> Currently I don't know, whether it is a problem with the test, or a real problem.
> 
> If it isn't reproducible for others, I can try to investigate deeper.

I don't have the correct setup here to run the test but maybe it is an issue / change in your nghttp binary.
Did you use a new version? I guess the following patch to the tests should fix this, but I am still not sure
if this is a failure on server side or with the test setup:

Index: test/pyhttpd/nghttp.py
===================================================================
--- test/pyhttpd/nghttp.py	(revision 1918546)
+++ test/pyhttpd/nghttp.py	(working copy)
@@ -224,7 +224,7 @@
         if 0 == r.exit_code:
             lines = re.findall(r'[^\n]*\n', r.stdout, re.MULTILINE)
             for lidx, l in enumerate(lines):
-                m = re.match(r'\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+/(.*)', l)
+                m = re.match(r'\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+/*(/.*)', l)
                 if m:
                     assets.append({
                         "path": m.group(7),



Regards

Rüdiger

httpd-2.4.60-rc1: pytest http2 failures w.r.t. assets

Posted by Rainer Jung <ra...@kippdata.de>.
I am getting some pytest failures when checking for assets (leading "/" 
missing):

=================================== FAILURES 
===================================
__________________________ TestAssets.test_h2_006_03 
___________________________

self = <http2.test_006_assets.TestAssets object at 0x7fe70af578e0>
env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>

     def test_h2_006_03(self, env):
         # create the tiles files we originally had checked in
         exp_assets = [
             {"status": 200, "size": "10K", "path": "/004.html"},
             {"status": 200, "size": "742", "path": "/004/gophertiles.jpg"},
         ]
         for i in range(2, 181):
             with 
open(f"{env.server_docs_dir}/test1/004/gophertiles_{i:03d}.jpg", "w") as fd:
                 fd.write("0123456789\n")
             exp_assets.append(
                 {"status": 200, "size": "11", "path": 
f"/004/gophertiles_{i:03d}.jpg"},
             )

         url = env.mkurl("https", "test1", "/004.html")
         r = env.nghttp().assets(url, options=["-Haccept-encoding: none"])
         assert 0 == r.exit_code
         assert 181 == len(r.assets)
 >       assert r.assets == exp_assets
E       AssertionError: assert [{'path': '/0...s': 200}, ...] == 
[{'path': '/0...s': 200}, ...]
E         At index 1 diff: {'path': '004/gophertiles.jpg', 'status': 
200, 'size': '742'} != {'status': 200, 'size': '742', 'path': 
'/004/gophertiles.jpg'}
E         Full diff:
E           [
E            {'path': '/004.html', 'size': '10K', 'status': 200},
E         -  {'path': '/004/gophertiles.jpg', 'size': '742', 'status': 200},
E         ?            -
E         +  {'path': '004/gophertiles.jpg', 'size': '742', 'status': 
200},...
E
E         ...Full output truncated (539 lines hidden), use '-vv' to show

modules/http2/test_006_assets.py:52: AssertionError
----------------------------- Captured stdout call 
-----------------------------
execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 
-Haccept-encoding: none -ans https://127.0.0.1:5001//004.html
__________________________ TestAssets.test_h2_006_04 
___________________________

self = <http2.test_006_assets.TestAssets object at 0x7fe70af54d90>
env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>

     def test_h2_006_04(self, env):
         url = env.mkurl("https", "test1", "/006.html")
         r = env.nghttp().assets(url, options=["-Haccept-encoding: none"])
         assert 0 == r.exit_code
         assert 3 == len(r.assets)
 >       assert r.assets == [
             {"status": 200, "size": "543", "path": "/006.html"},
             {"status": 200, "size": "216", "path": "/006/006.css"},
             {"status": 200, "size": "839", "path": "/006/006.js"}
         ]
E       AssertionError: assert [{'path': '/0...status': 200}] == 
[{'path': '/0...status': 200}]
E         At index 1 diff: {'path': '006/006.css', 'status': 200, 
'size': '216'} != {'status': 200, 'size': '216', 'path': '/006/006.css'}
E         Full diff:
E           [
E            {'path': '/006.html', 'size': '543', 'status': 200},
E         -  {'path': '/006/006.css', 'size': '216', 'status': 200},
E         ?            -
E         +  {'path': '006/006.css', 'size': '216', 'status': 200},...
E
E         ...Full output truncated (5 lines hidden), use '-vv' to show

modules/http2/test_006_assets.py:60: AssertionError
----------------------------- Captured stdout call 
-----------------------------
execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 
-Haccept-encoding: none -ans https://127.0.0.1:5001//006.html
__________________________ TestAssets.test_h2_006_05 
___________________________

self = <http2.test_006_assets.TestAssets object at 0x7fe70af54be0>
env = <http2.env.H2TestEnv object at 0x7fe70ac94be0>

     def test_h2_006_05(self, env):
         url = env.mkurl("https", "test1", "/003.html")
         r = env.nghttp().assets(url, options=["--window-bits=24", 
"-Haccept-encoding: none"])
         assert 0 == r.exit_code
         assert 2 == len(r.assets)
 >       assert r.assets == [
             {"status": 200, "size": "316", "path": "/003.html"},
             {"status": 200, "size": "88K", "path": "/003/003_img.jpg"}
         ]
E       AssertionError: assert [{'path': '/0...status': 200}] == 
[{'path': '/0...status': 200}]
E         At index 1 diff: {'path': '003/003_img.jpg', 'status': 200, 
'size': '88K'} != {'status': 200, 'size': '88K', 'path': '/003/003_img.jpg'}
E         Full diff:
E           [
E            {'path': '/003.html', 'size': '316', 'status': 200},
E         -  {'path': '/003/003_img.jpg', 'size': '88K', 'status': 200},
E         ?            -
E         +  {'path': '003/003_img.jpg', 'size': '88K', 'status': 200},...
E
E         ...Full output truncated (2 lines hidden), use '-vv' to show

modules/http2/test_006_assets.py:72: AssertionError
----------------------------- Captured stdout call 
-----------------------------
execute: nghttp --header=host: test1.tests.httpd.apache.org:5001 
--window-bits=24 -Haccept-encoding: none -ans 
https://127.0.0.1:5001//003.html


These seem to happen consistently.

Currently I don't know, whether it is a problem with the test, or a real 
problem.

If it isn't reproducible for others, I can try to investigate deeper.

Best Regards,

Rainer

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Stefan Eissing via dev <de...@httpd.apache.org>.

> Am 24.06.2024 um 20:28 schrieb Eric Covener <co...@gmail.com>:
> 
> Hi all,
> 
> Please find below the proposed release tarball and signatures:
> 
> https://dist.apache.org/repos/dist/dev/httpd/
> 
> I would like to call a VOTE over the next few days to release
> this candidate tarball httpd-2.4.60-rc1 as 2.4.60:
> [ ] +1: It's not just good, it's good enough!
> [ ] +0: Let's have a talk.
> [ ] -1: There's trouble in paradise. Here's what's wrong.

+1 on macOS 14.5.

Thanks for doing the release work!

- Stefan

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Stefan Eissing via dev <de...@httpd.apache.org>.

> Am 24.06.2024 um 20:28 schrieb Eric Covener <co...@gmail.com>:
> 
> Hi all,
> 
> Please find below the proposed release tarball and signatures:
> 
> https://dist.apache.org/repos/dist/dev/httpd/
> 
> I would like to call a VOTE over the next few days to release
> this candidate tarball httpd-2.4.60-rc1 as 2.4.60:
> [ ] +1: It's not just good, it's good enough!
> [ ] +0: Let's have a talk.
> [ ] -1: There's trouble in paradise. Here's what's wrong.

+1 on macOS 14.5.

Thanks for doing the release work!

- Stefan

Re: [VOTE] Release httpd-2.4.60-rc1 as httpd-2.4.60

Posted by Eric Covener <co...@gmail.com>.
> this candidate tarball httpd-2.4.60-rc1 as 2.4.60:
> [X] +1: It's not just good, it's good enough!
> [ ] +0: Let's have a talk.
> [ ] -1: There's trouble in paradise. Here's what's wrong.

Looks good on AIX/xlc/ppc (only known issues with system perl and t/ssl/proxy.t)