felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Lyaruu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-3591) The HTTP client does not accept gzip encoding when retrieving obr repositories
Date Sun, 23 Sep 2012 18:47:07 GMT

    [ https://issues.apache.org/jira/browse/FELIX-3591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461491#comment-13461491

Frank Lyaruu commented on FELIX-3591:

Adding the following lines to openURL(final URLConnection conn) in org.apache.felix.bundlerepository.impl.FileUtil
seems to do the trick
(before return conn.getInputStream())

conn.setRequestProperty("accept-encoding", "gzip");
String encoding = conn.getContentEncoding();
if("gzip".equals(encoding)) {
   return new GZIPInputStream(conn.getInputStream());
> The HTTP client does not accept gzip encoding when retrieving obr repositories
> ------------------------------------------------------------------------------
>                 Key: FELIX-3591
>                 URL: https://issues.apache.org/jira/browse/FELIX-3591
>             Project: Felix
>          Issue Type: Improvement
>          Components: Bundle Repository (OBR)
>    Affects Versions: bundlerepository-1.6.6
>            Reporter: Frank Lyaruu
>            Priority: Minor
> OBR repository metadata can be pretty big and it is very compressable (for larger repositories
I'm seeing a factor of more than 20), so it can save a lot of time and bandwidth if it can
be compressed.
> I use a OBR virtual repository on Nexus. Nexus will compress the obr data if the client
adds the Accept-Encoding gzip header. So if the bundle repository could add that header (and
deal with compressed data) that would help me a lot.
> My related stackoverflow post:
> http://stackoverflow.com/questions/11031065/

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message