[GRADLE-2928] Gradle does not handle repositories where directory listings are XML Created: 22/Oct/13 Updated: 10/Feb/17 Resolved: 10/Feb/17 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | ||
Reporter: | Gradle Forums | Assignee: | Unassigned |
Resolution: | Won't Fix | Votes: | 0 |
Description |
Hello, After seeing the deprecated warnings for add, I've attempted to use the ivy DSL, however, for the Ivy via svn repository, I'm seeing this error: A problem occurred evaluating root project 'myproject-ws-trunk'. The build.gradle snippet is: ivy { Web server and svn details: The stack trace is: Caused by: org.gradle.api.internal.resource.ResourceException: Could not list versions using Ivy pattern 'https://<mysvnrepository>/svn/ctsvn/ivy/repository/[organisation]/[module]/[revision]/ivy.xml'. Any help would be appreciated. |
Comments |
Comment by Gradle Forums [ 22/Oct/13 ] |
I did a GET on the URL and the content is indeed XML. And through an XSL stylesheet, the content is made pretty. So, one option is to ask the administrators to change the Apache listing option to HTML instead of XML. Though given that it's a possibility that web servers could be configured this way, is there any existing support for Gradle Ivy for this? |
Comment by Gradle Forums [ 22/Oct/13 ] |
There's no existing support for this, but we'd be open to a patch for this support: would you be interested in working on a fix? We'd probably need to update `org.gradle.api.internal.externalresource.transport.http.HttpResourceLister` to detect the content type and handle XML. As well as this, we'd want to add some integration test coverage by adding functionality to send XML directory listing to `org.gradle.test.fixtures.server.http.HttpServer`, and by adding another test case to `org.gradle.integtests.resolve.ivy.IvyDynamicRevisionRemoteResolveIntegrationTest` that tests with XML directory listings. |
Comment by Naresh Baliga [ 24/Oct/13 ] |
Tested a change made to ApacheDirectoryListingParser.java to handle XML directory listing. Extended AnchorListerHandler and overrode startElement to react to "dir" qName and pick up "href" attributes. Works for Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8e-fips-rhel5 DAV/2 SVN/1.6.16 PHP/5.3.3. Is there any schema adopted by web servers for directory listings in XML? |
Comment by Benjamin Muschko [ 15/Nov/16 ] |
As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub. We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to. Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:
We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle! |
Comment by Benjamin Muschko [ 10/Feb/17 ] |
Thanks again for reporting this issue. We haven't heard back from you after our inquiry from November 15th. We are closing this issue now. Please create an issue on GitHub if you still feel passionate about getting it resolved. |