AH00526 when using long ProxyPass worker name
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Apache2 Web Server |
Fix Released
|
Critical
|
||
| | apache2 (Debian) |
New
|
Undecided
|
Unassigned | |
| | apache2 (Ubuntu) |
Medium
|
Brian Morton | ||
| | Trusty |
Medium
|
Unassigned | ||
| | Xenial |
Medium
|
Unassigned | ||
| | Yakkety |
Medium
|
Unassigned | ||
Bug Description
When using a long ProxyPass worker name such as unix://
A couple of workarounds are available using mod_rewrite, but they do not use connection pooling for the proxy and aren't available for packaged solutions like Virtualmin. The patch from trunk is fairly straightforward.
| Changed in apache2: | |
| importance: | Unknown → Critical |
| status: | Unknown → Confirmed |
| Changed in apache2 (Ubuntu): | |
| assignee: | nobody → Brian Morton (rokclimb15) |
| Brian Morton (rokclimb15) wrote : | #1 |
The attachment "Patch for trusty" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]
| tags: | added: patch |
| Robie Basak (racb) wrote : | #3 |
Brian, thank you for the patch.
Please see https:/
It would be also helpful to know if this impacts Xenial, as I don't think it would be appropriate to fix Trusty without also fixing Xenial (otherwise users will regress when they upgrade).
Don't worry about the debdiff. Your patch is simple enough that we can convert it when we're ready to upload.
| Changed in apache2 (Ubuntu Trusty): | |
| status: | New → Triaged |
| tags: | added: server-next |
| Brian Morton (rokclimb15) wrote : | #4 |
Hi Robie, this fix is in Apache SVN trunk but isn't in upstream stable 2.4 release branch yet so all Ubuntu versions will be affected. In addition, no such patch exists in Debian source. https:/
I think the best bet is to add it as a debian patch for Zesty and coordinate it with the Debian Apache maintainers until it lands in a stable upstream release. I adjusted the line number in the patch so it should apply cleanly against Zesty.
| Robie Basak (racb) wrote : | #5 |
Hi Brian,
Do you know why this isn't in upstream's 2.4 branch? I'm wondering if it may result in an ABI break or similar issue.
| Brian Morton (rokclimb15) wrote : | #6 |
Hi Robie,
I do not know for certain. One user on the upstream bug mentions it can't be backported because of an API compat issue, but if there's one present I'm sure not seeing it. The define is entirely contained within that header file. The only thing I would think it could affect would be external modules built against mod_proxy.h
root@apache2-
modules/
modules/
modules/
modules/
root@apache2-
modules/
modules/
modules/
On Wed, Mar 29, 2017 at 01:36:17AM -0000, Brian Morton wrote:
> The only thing I would think it could affect would be
> external modules built against mod_proxy.h
Right - that's my concern.
| Brian Morton (rokclimb15) wrote : | #8 |
I don't think it is an actual incompatibility since the util function for copying those values takes into consideration the size of the dst buffer. As long as it is being lengthened, I think it's OK. It would be a problem if we were reducing it and src were larger than dst.
#define PROXY_STRNCPY(dst, src) ap_proxy_
if (PROXY_
return apr_psprintf(p, "balancer name (%s) too long", uri);
}
| Robie Basak (racb) wrote : | #9 |
OK, but why can't that argument be accepted by upstream in their 2.4 branch first?
| Brian Morton (rokclimb15) wrote : | #10 |
An excellent question/point. That should probably get hashed out on the upstream BZ first. The discussion about it was very minimal. I'll get on there and poke at that issue.
| Robie Basak (racb) wrote : | #11 |
Thanks! So I think our position for the time being is to hold this pending upstream's acceptance of the patch into their 2.4 branch. If something changes so we should reconsider, further discussion is welcome.
| tags: | removed: server-next |
| Changed in apache2 (Ubuntu): | |
| status: | New → Triaged |
| Changed in apache2 (Ubuntu Xenial): | |
| status: | New → Triaged |
| Changed in apache2 (Ubuntu Yakkety): | |
| status: | New → Triaged |
| Changed in apache2 (Ubuntu): | |
| importance: | Undecided → Medium |
| Changed in apache2 (Ubuntu Trusty): | |
| importance: | Undecided → Medium |
| Changed in apache2 (Ubuntu Yakkety): | |
| importance: | Undecided → Medium |
| Changed in apache2 (Ubuntu Xenial): | |
| importance: | Undecided → Medium |
| Changed in apache2: | |
| status: | Confirmed → Fix Released |


Patch attached for trusty. Unsure how to generate a debdiff in this case.