Bug Tracker

Modify

Ticket #4736 (closed bug: wontfix)

Opened 4 years ago

Last modified 4 years ago

Minified jquery.js file gets truncated when served through Apache reverse proxy

Reported by: DougWebb Owned by:
Priority: major Milestone: 1.3.2
Component: build Version: 1.3.2
Keywords: Minified proxy truncated Cc:
Blocking: Blocked by:

Description

I've discovered that the jquery-1.3.2.min.js file gets truncated when served through an Apache reverse proxy setup, most likely because of a lack of newlines, particularly at the end of the file.

My Apache reverse proxy setup looks like this:

<Location /app>
   RequestHeader set X-PROXYPATH /app
   ProxyPass http://internal.domain
   ProxyPassReverse http://internal.domain
</Location>

When I access  http://internal.domain/jquery-1.3.2.min.js I get the entire file, but when I access  http://external.domain/app/jquery-1.3.2.min.js the file is truncated around the Sizzle CSS comment.

The request header doesn't impact the way the jquery.js file is served, but it's necessary for my application, and is the reason for using a Location block instead of the more common two-argument form of the ProxyPass settings.

Attached is jquery.test.js, which is jquery-1.3.2.min.js with a newline after almost every ; character. (I had to remove the newlines from ; that appear within strings.) This file does NOT get truncated when served through an Apache reverse proxy.

Attachments

jquery.test.js Download (56.5 KB) - added by DougWebb 4 years ago.
Version of jquery-1.3.2.min.js which does not get truncated.

Change History

Changed 4 years ago by DougWebb

Version of jquery-1.3.2.min.js which does not get truncated.

comment:1 Changed 4 years ago by dmethvin

  • Component changed from unfilled to build

comment:2 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to wontfix

This is really bizarre - sounds like a bug in ProxyPass. Unfortunately this isn't something that we can really change on our end - we're just using YUIMin.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.