On Thu, Nov 20, 2014 at 7:15 PM, Andrea Aime <andrea.a...@geo-solutions.it>
wrote:

> On Thu, Nov 20, 2014 at 6:47 PM, Ian Schneider <
> ischnei...@boundlessgeo.com> wrote:
>
>> I actually saw this a few weeks ago but thought it was a build error
>> related to me using the wrong maven repo.
>>
>> I found the problem: https://bugzilla.mozilla.org/show_bug.cgi?id=1083090
>>
>> tl;dr: we're sending bogus content-length headers back with gzip
>> compressed resources
>>
>> To verify, go to about:config and search for gzip. Remove
>> the network.http.accept-encoding values (gzip and deflate) and reload the
>> page - it should work.
>>
>
> Hum... I'm confused, I changed the gzipfilter recently to avoid making it
> go OOM on large GML
> outputs, but I don't see it setting the content-lenght anymore. It used
> to, but I've removed that part,
> and the GZIPResponseWrapper actually kills every attempt at setting the
> content
> lenght from the other geoserver code?
>

Also, asking for
http://localhost:8080/geoserver/web/resources/org.geoserver.web.GeoServerBasePage/css/geoserver.css
I get the full file in Firefox

However, if I make the req request via curl:

curl -sH 'Accept-encoding: gzip' -D - -o /tmp/test.out "
http://localhost:8080/geoserver/web/resources/org.geoserver.web.GeoServerBasePage/css/geoserver.css
"
HTTP/1.1 200 OK
Expires: Thu, 20 Nov 2014 19:18:10 GMT
Set-Cookie: JSESSIONID=1xgphycxw49gs;Path=/geoserver
Last-Modified: Mon, 17 Nov 2014 09:39:28 GMT
Cache-Control: max-age=3600
Content-Type: text/css; charset=UTF-8
*Content-Length: 19882*
Content-Encoding: gzip
Server: Jetty(6.1.8)

Ha! Hum... something must be going on, because the wrapper is trying to
prevent the code setting the content-lenght by overriding
that method...


Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to