Continuum
  1. Continuum
  2. CONTINUUM-2627

Unable to add a project that are in private Github repositories

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0 (Beta)
    • Fix Version/s: 1.4.1
    • Component/s: SCM
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      Github returns 404 when Continuum tries to download the POM file.

      You'll get the following error in the logs:

      2011-05-19 16:15:39,009 [btpool0-8] INFO action#create-projects-from-metadata - checking for settings auth setup
      2011-05-19 16:15:39,010 [btpool0-8] INFO org.apache.maven.continuum.project.builder.maven.MavenTwoContinuumProjectBuilder - Downloading https://USERNAME:*****@github.com/myproject/raw/master/pom.xml
      2011-05-19 16:15:44,102 [btpool0-8] WARN org.apache.maven.continuum.project.builder.maven.MavenTwoContinuumProjectBuilder - skip non handled http return code 404

      It seems github behaves that way for private repositories (see http://support.github.com/discussions/repos/6007-how-to-grap-a-single-file-using-https-when-the-repository-is-private)

      For wget, you need to add the --auth-no-challenge parameter in order to get the pom file.

        Activity

        Hide
        Maria Odea Ching added a comment -

        Fixed in continuum trunk -r1124681 with the following changes:

        • upgrade httpclient and httpcore to 4.1.1 and use pre-emptive authn if initial attempt to get the pom metadata during project add failed
        Show
        Maria Odea Ching added a comment - Fixed in continuum trunk -r1124681 with the following changes: upgrade httpclient and httpcore to 4.1.1 and use pre-emptive authn if initial attempt to get the pom metadata during project add failed

          People

          • Assignee:
            Maria Odea Ching
            Reporter:
            Maria Odea Ching
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: