You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/06/17 13:30:41 UTC

DO NOT REPLY [Bug 49453] New: Ant get task does not interact well with transparent proxies

https://issues.apache.org/bugzilla/show_bug.cgi?id=49453

           Summary: Ant get task does not interact well with transparent
                    proxies
           Product: Ant
           Version: 1.8.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: constantine.plotnikov@gmail.com


We have squid as a transparent proxy and if cache hit happens, it returns
content with Content-Encoding: gzip. If the content missed from cache, it is
returned normally. As result, the ant get task downloads and saves content in
gzip-ed or normal form depending on cache state, and this is not what most ant
scripts are expecting. 

Note, that in the case of cache hit, Content-Length: header is returned with
length of gziped content.

The more technical details on this problem are available in this Ivy bug
https://issues.apache.org/jira/browse/IVY-1194 , which was also affected by
this problem.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49453] Ant get task does not interact well with transparent proxies

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49453

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bernardo.bennett@gmail.com

--- Comment #3 from Stefan Bodewig <bo...@apache.org> 2010-11-19 10:32:53 EST ---
*** Bug 50300 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49453] Ant get task does not interact well with transparent proxies

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49453

--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2010-06-23 10:22:55 EDT ---
<get> really only sits on top of java.net.URL where any "real" task likely
better used Apache's httpclient library.

In a case where URL misbehaves as it does you are probably best of by
setting httpusecaches to false at the task level.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 49453] Ant get task does not interact well with transparent proxies

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49453

--- Comment #7 from Stefan Bodewig <bo...@apache.org> ---
maybe I should have committed the actual code change as well :-)

svn revision 1577711

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 49453] Ant get task does not interact well with transparent proxies

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49453

vladimir.kotal@oracle.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vladimir.kotal@oracle.com

--- Comment #5 from vladimir.kotal@oracle.com ---
We're hitting this bug with OpenGrok
(http://hub.opensolaris.org/bin/view/Project+opengrok/) build which has the
following in build.xml:

<target name="download-lucene" depends="-check-lucene"
if="lucene_not_downloaded">
        <get
src="http://repo1.maven.org/maven2/org/apache/lucene/lucene-core/${lucene.version}/${lucene-core.jar}"
        dest="lib/${lucene-core.jar}" verbose="true" usetimestamp="true"/>
        <get
src="http://repo1.maven.org/maven2/org/apache/lucene/lucene-spellchecker/${lucene.version}/${lucene-spellchecker.jar}"
        dest="lib/${lucene-spellchecker.jar}" verbose="true"
usetimestamp="true"/>
    </target>


Since the repo1.maven.org server recently got misconfigured and is sending
gzipped content, clean OpenGrok build fails because of this. The problem is
apparently fixed on the server now but would appreciate fix anyway for future
build robustness.

-- 
You are receiving this mail because:
You are the assignee for the bug.

DO NOT REPLY [Bug 49453] Ant get task does not interact well with transparent proxies

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49453

Antoine Levy-Lambert <an...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.8.1                       |1.8.2

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49453] Ant get task does not interact well with transparent proxies

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49453

--- Comment #2 from Maarten Coene <ma...@yahoo.com> 2010-07-06 17:39:52 EDT ---
Created an attachment (id=25721)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25721)
A patch for the Get.java task

I think the "fix" is pretty easy since Java has built-in support for handling
gzipped content. In addition, it could improve the performance of the get task
when it is used to fetch plain text files.

I've attached a patch that fixes the problem.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 49453] Ant get task does not interact well with transparent proxies

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49453

--- Comment #4 from tarzanek@post.sk <ta...@post.sk> ---
I think this is a really important bug and should be in next release for sure,
I saw a very nondeterministic behaviour of get task and because of that other
tasks fail and cause weird questions around build process
(I use the task to get dependent jars(from maven repos :) ) for the rest of
tasks)
I understand that one can switch proxies or workaround, but for automated build
process this is a real PITA.

thank you!
L

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 49453] Ant get task does not interact well with transparent proxies

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49453

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |1.9.4

--- Comment #6 from Stefan Bodewig <bo...@apache.org> ---
svn revision 1577701

-- 
You are receiving this mail because:
You are the assignee for the bug.