fetch command breaks because of reliance on user-agent (BB-11638)

XMLWordPrintable

      BitBucket doesn't seem to like the FreeBSD fetch command authenticating and downloading files from a private repo. This makes it difficult to download a post-install script on a fresh installation (where wget is not included by default).

      However, changing the fetch user-agent string from "fetch libfetch/2.0" to "Wget/1.16 (freebsd10.0)" does allow authentication. So perhaps relying on user-agent strings is not the way to go.

      The following does not work:

      ~# fetch --no-verify-peer "https://myname:mypass@bitbucket.org/me/server/raw/abcde...xyz/post-install.sh"
      

      However, the following does work:

      ~# fetch --no-verify-peer --user-agent "Wget/1.16 (freebsd10.0)" "https://myname:mypass@bitbucket.org/me/server/raw/abcde...xyz/post-install.sh"
      

            Assignee:
            evzijst
            Reporter:
            Anonymous
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: