[jira] Resolved: (IVY-1194) Downloads from maven repository fail when using transparent HTTP proxies

2010-06-03 Thread Maarten Coene (JIRA)

 [ 
https://issues.apache.org/jira/browse/IVY-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maarten Coene resolved IVY-1194.


Resolution: Fixed

I've fixed the problem with the content-length.
Could you give it a try?

Regarding the deflate content-encoding. There seems to be 2 variants: a zlib 
variant and a gzip/pkzip variant.
- zlib variant: can be read using: new InflaterInputStream(url.openStream());
- gzip/pkzip variant: can be read using: new 
InflaterInputStream(url.openStream, new Inflater(true));
However, I didn't find a proper way in java to support them both, so Ivy will 
only support gzip for the moment. If you do know how to solve this problem, 
please reopen this issue and tell me how to do it :-)

 Downloads from maven repository fail when using transparent HTTP proxies
 

 Key: IVY-1194
 URL: https://issues.apache.org/jira/browse/IVY-1194
 Project: Ivy
  Issue Type: Bug
  Components: Core
Affects Versions: 2.1.0
 Environment: Windows XP, Java 1.5.0.16, java 1.6.0.20
Reporter: Constantine Plotnikov
Assignee: Maarten Coene
Priority: Blocker
 Fix For: 2.2.0-RC1


 The package without dependencies cannot fetch dependencies and samples in the 
 package with dependencies do not work.
 Fetching dependencies fails with the following log:
 {quote}
 Buildfile: build.xml
 init-ivy:
 retrieve-all:
 [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
 [ivy:retrieve] :: loading settings :: url = 
 jar:file:/C:/utils/apache/apache-ivy-2.1.0-wo/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
 [ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
 [ivy:retrieve]confs: [core, httpclient, oro, vfs, sftp, standalone, 
 ant, default, test, source]
 [ivy:retrieve]found commons-httpclient#commons-httpclient;3.0 in 
 public
 [ivy:retrieve]found commons-codec#commons-codec;1.2 in public
 [ivy:retrieve]found oro#oro;2.0.8 in public
 [ivy:retrieve]found commons-vfs#commons-vfs;1.0 in public
 [ivy:retrieve]found com.jcraft#jsch;0.1.31 in public
 [ivy:retrieve]found ant#ant;1.6.2 in public
 [ivy:retrieve]found ant#ant-nodeps;1.6.2 in public
 [ivy:retrieve]found ant#ant-trax;1.6.2 in public
 [ivy:retrieve]found junit#junit;3.8.2 in public
 [ivy:retrieve]found commons-lang#commons-lang;2.4 in public
 [ivy:retrieve]found org.apache.ant#ant-testutil;1.7.0 in public
 [ivy:retrieve]found ant#ant-launcher;1.6.2 in public
 [ivy:retrieve]found xerces#xercesImpl;2.6.2 in public
 [ivy:retrieve]found xerces#xmlParserAPIs;2.6.2 in public
 [ivy:retrieve] downloading 
 http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
 [ivy:retrieve]  (117kB)
 [ivy:retrieve] .. (0kB)
 [ivy:retrieve] :: resolution report :: resolve 1250ms :: artifacts dl 250ms
 [ivy:retrieve]:: evicted modules:
 [ivy:retrieve]commons-logging#commons-logging;1.0.3 by 
 [commons-logging#commons-logging;1.0.4] in [default]
   -
   |  |modules||   artifacts   |
   |   conf   | number| search|dwnlded|evicted|| number|dwnlded|
   -
   |   core   |   0   |   0   |   0   |   0   ||   0   |   0   |
   |httpclient|   3   |   0   |   0   |   0   ||   2   |   0   |
   |oro   |   1   |   0   |   0   |   0   ||   1   |   0   |
   |vfs   |   2   |   0   |   0   |   0   ||   1   |   0   |
   |   sftp   |   1   |   0   |   0   |   0   ||   1   |   0   |
   |standalone|   0   |   0   |   0   |   0   ||   0   |   0   |
   |ant   |   1   |   0   |   0   |   0   ||   1   |   0   |
   |  default |   10  |   0   |   0   |   1   ||   8   |   0   |
   |   test   |   6   |   0   |   0   |   0   ||   6   |   0   |
   |  source  |   0   |   0   |   0   |   0   ||   0   |   0   |
   -
 [ivy:retrieve] :: problems summary ::
 [ivy:retrieve]  WARNINGS
 [ivy:retrieve]problem while downloading module descriptor: 
 http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom:
  invalid sha1: expected=
 [ivy:retrieve] г computed=88c58ea4a562116ab15fb76c9097ee1f25cc750b (62ms)
 [ivy:retrieve]module not found: 
 commons-logging#commons-logging;1.0.3
 [ivy:retrieve] local: tried
 [ivy:retrieve]  C:\Documents and 
 

[jira] Resolved: (IVY-1194) Downloads from maven repository fail when using transparent HTTP proxies

2010-06-02 Thread Maarten Coene (JIRA)

 [ 
https://issues.apache.org/jira/browse/IVY-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maarten Coene resolved IVY-1194.


Fix Version/s: 2.2.0-RC1
   Resolution: Fixed

Wow respect, excellent analysis of the problem! I don't think I would have been 
able to find it...

I've committed a fix in SVN trunk. Ivy now supports 'gzip' Content-Encoding by 
wrapping the InputStream in a GZIPInputStream.
Could you give it a try to see if it works for you?

Thanks,
Maarten

 Downloads from maven repository fail when using transparent HTTP proxies
 

 Key: IVY-1194
 URL: https://issues.apache.org/jira/browse/IVY-1194
 Project: Ivy
  Issue Type: Bug
  Components: Maven Compatibility
Affects Versions: 2.1.0
 Environment: Windows XP, Java 1.5.0.16, java 1.6.0.20
Reporter: Constantine Plotnikov
Assignee: Maarten Coene
Priority: Blocker
 Fix For: 2.2.0-RC1


 The package without dependencies cannot fetch dependencies and samples in the 
 package with dependencies do not work.
 Fetching dependencies fails with the following log:
 {quote}
 Buildfile: build.xml
 init-ivy:
 retrieve-all:
 [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
 [ivy:retrieve] :: loading settings :: url = 
 jar:file:/C:/utils/apache/apache-ivy-2.1.0-wo/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
 [ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.1.0
 [ivy:retrieve]confs: [core, httpclient, oro, vfs, sftp, standalone, 
 ant, default, test, source]
 [ivy:retrieve]found commons-httpclient#commons-httpclient;3.0 in 
 public
 [ivy:retrieve]found commons-codec#commons-codec;1.2 in public
 [ivy:retrieve]found oro#oro;2.0.8 in public
 [ivy:retrieve]found commons-vfs#commons-vfs;1.0 in public
 [ivy:retrieve]found com.jcraft#jsch;0.1.31 in public
 [ivy:retrieve]found ant#ant;1.6.2 in public
 [ivy:retrieve]found ant#ant-nodeps;1.6.2 in public
 [ivy:retrieve]found ant#ant-trax;1.6.2 in public
 [ivy:retrieve]found junit#junit;3.8.2 in public
 [ivy:retrieve]found commons-lang#commons-lang;2.4 in public
 [ivy:retrieve]found org.apache.ant#ant-testutil;1.7.0 in public
 [ivy:retrieve]found ant#ant-launcher;1.6.2 in public
 [ivy:retrieve]found xerces#xercesImpl;2.6.2 in public
 [ivy:retrieve]found xerces#xmlParserAPIs;2.6.2 in public
 [ivy:retrieve] downloading 
 http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar ...
 [ivy:retrieve]  (117kB)
 [ivy:retrieve] .. (0kB)
 [ivy:retrieve] :: resolution report :: resolve 1250ms :: artifacts dl 250ms
 [ivy:retrieve]:: evicted modules:
 [ivy:retrieve]commons-logging#commons-logging;1.0.3 by 
 [commons-logging#commons-logging;1.0.4] in [default]
   -
   |  |modules||   artifacts   |
   |   conf   | number| search|dwnlded|evicted|| number|dwnlded|
   -
   |   core   |   0   |   0   |   0   |   0   ||   0   |   0   |
   |httpclient|   3   |   0   |   0   |   0   ||   2   |   0   |
   |oro   |   1   |   0   |   0   |   0   ||   1   |   0   |
   |vfs   |   2   |   0   |   0   |   0   ||   1   |   0   |
   |   sftp   |   1   |   0   |   0   |   0   ||   1   |   0   |
   |standalone|   0   |   0   |   0   |   0   ||   0   |   0   |
   |ant   |   1   |   0   |   0   |   0   ||   1   |   0   |
   |  default |   10  |   0   |   0   |   1   ||   8   |   0   |
   |   test   |   6   |   0   |   0   |   0   ||   6   |   0   |
   |  source  |   0   |   0   |   0   |   0   ||   0   |   0   |
   -
 [ivy:retrieve] :: problems summary ::
 [ivy:retrieve]  WARNINGS
 [ivy:retrieve]problem while downloading module descriptor: 
 http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom:
  invalid sha1: expected=
 [ivy:retrieve] г computed=88c58ea4a562116ab15fb76c9097ee1f25cc750b (62ms)
 [ivy:retrieve]module not found: 
 commons-logging#commons-logging;1.0.3
 [ivy:retrieve] local: tried
 [ivy:retrieve]  C:\Documents and 
 Settings\Constantin.Plotnikov\.ivy2/local/commons-logging/commons-logging/1.0.3/ivys/ivy.xml
 [ivy:retrieve]  -- artifact 
 commons-logging#commons-logging;1.0.3!commons-logging.jar:
 [ivy:retrieve]  C:\Documents and