Skip to main content
Participant
December 2, 2008
Question

Bug in Apache2 jrun webserver connector

  • December 2, 2008
  • 1 reply
  • 1211 views
mod_jrun doesn't use the Apache2 API to set the content type. The correct configuration for mod_deflate however depends on the content type being set and Apache knowing about the fact:

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript
</IfModule>

I found a very helpful blog entry that described the exact solution to this problem, namely this patch to mod_jrun22.c:
# diff mod_jrun22.c.original mod_jrun22.c
756c756,757
< r->content_type = pstrdup_lower(r, value);
---
> // r->content_type = pstrdup_lower(r, value);
> ap_set_content_type(r, pstrdup_lower(r, value));

I used the attached script to recompile the connector; mod_deflate worked fine afterwards.

Does Adobe know about this bug? Do they intend to fix it? As far as I can see, there are quite a lot of other spots, where mod_jrun22.c does not use the Apache-API.
    This topic has been closed for replies.

    1 reply

    Inspiring
    July 19, 2009

    Very good catch, and thanks for the fix.  I just tried setting this up on my mac to see if I could reduce the size of some ajax calls and ran into this issue.  Applied the change, recompiled the connector, and compression now works.

    adrock
    Adobe Employee
    Adobe Employee
    August 21, 2009

    I filed this in the public bug tracker (#79532). We will try and address this issue soon (if it hasn't already been addressed in CF9).

    http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=79532

    -Adam