[ 
https://issues.apache.org/jira/browse/MINDEXER-13?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965222#comment-17965222
 ] 

Olivier Lamy commented on MINDEXER-13:
--------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-indexer#446|https://github.com/apache/maven-indexer/issues/446]. 

> *.gz index not loadable using default LightweightHttpWagon
> ----------------------------------------------------------
>
>                 Key: MINDEXER-13
>                 URL: https://issues.apache.org/jira/browse/MINDEXER-13
>             Project: Maven Indexer (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>         Environment: Ubuntu, JDK 6u24
>            Reporter: Jesse N. Glick
>            Assignee: Tamas Cservenak
>            Priority: Major
>             Fix For: 4.1.0
>
>         Attachments: MINDEXER.diff
>
>
> If you create a new-style index (without {{--legacy}}), publish on an HTTP 
> server (Apache 2.2.9 in my case), and try to download the remote index from a 
> client using the default {{LightweightHttpWagon}}, the download fails.
> The wagon upon seeing {{Content-Encoding: gzip}} automatically decompresses 
> the index and serves the raw data. {{IndexDataReader}} then passes this to 
> {{GZIPInputStream}} which chokes. (MINDEXER-12 then conceals the actual 
> problem and makes it look like the indexer only accepts the legacy format.)
> Have a patch which seems to work. Probably 
> {{DownloadRemoteIndexerManagerTest}} needs to be enhanced to check this case; 
> I am not very familiar with Jetty so I have not tried this yet.
> (Nexus sends {{Content-Type: application/x-compressed}} but no content 
> encoding so the problem is not visible when using a Nexus mirror.)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to