Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-14721

Digest authentication not working for direct file downloads

    XMLWordPrintable

Details

    Description

      When trying to download an artifact directly, like so: wget -v --http-user=abc --http-password=pwd -O /tmp/t.txt https://git.myserver.aa/projects/ABC/repos/repo1/raw/something.key?at=refs%2Fheads%2Fmaster, I only get the html for the form logon page. If I add the switch --auth-no-challenge to wget it works fine. It seems the problem is that Bitbucket never sends the authentication challenge to the client, leaving the client unaware that the server supports Basic Authentication. It is a major problem because some software don't support the --auth-no-challenge feature. I believe Bitbucket should respond with the following header: WWW-Authenticate
      We're running v5.3.1.
      Regards,
      Mads

      Attachments

        Activity

          People

            Unassigned Unassigned
            04a607f54424 madshaave
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: