[ http://jira.codehaus.org/browse/WAGON-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104149 ]
Brian Fox commented on WAGON-73: -------------------------------- You're right, it's not the patch, but the test. The constructLocalMetadata doesn't take into account that the lastUpdated tag in the metadata is in UTC. It's not yet Aug 7 here so it's failing the comparison. I removed the patch and the test is failing now. It was a coincidence that I tried it just after midnight UTC such that it passed before. > MirroredWagon infinite loop > --------------------------- > > Key: WAGON-73 > URL: http://jira.codehaus.org/browse/WAGON-73 > Project: wagon > Issue Type: Bug > Reporter: Phillip Webb > Priority: Critical > Fix For: 2.0 > > Attachments: returnsonmirroredwagon.patch, > WAGON-73-ConnectAndGetTest.patch, WagonManagerTest.java.patch > > > The MirroredWagon class includes a get method that runs into an infinite loop. > I think a return is required after this.impl.get( resource, destination ); > public void get( String resource, File destination ) > throws TransferFailedException, ResourceDoesNotExistException, > AuthorizationException > { > try > { > while ( true ) > { > try > { > this.impl.get( resource, destination ); > } > catch ( TransferFailedException e ) > { > nextMirror(); > } > } > } > catch ( ExhaustedMirrorsException e ) > { > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira