Skip to content

Switch the Bitbucket Downloader to use a supported mechanism for specifying the access token#46

Merged
tizzo merged 1 commit intomasterfrom
27956892-fix-bitbucket-downloader
Feb 8, 2016
Merged

Switch the Bitbucket Downloader to use a supported mechanism for specifying the access token#46
tizzo merged 1 commit intomasterfrom
27956892-fix-bitbucket-downloader

Conversation

@zanchin
Copy link
Copy Markdown
Contributor

@zanchin zanchin commented Feb 8, 2016

Our original method of using the access token was silently deprecated by Bitbucket on 2016-02-05. Research revealed that they now only support the Bearer access_token header method.

Also added a test for the generated BB Downloader script.

@tizzo
Copy link
Copy Markdown
Contributor

tizzo commented Feb 8, 2016

I'm still seeing failures - will follow up with more details.

@tizzo
Copy link
Copy Markdown
Contributor

tizzo commented Feb 8, 2016

Ok, for future reference I was seeing the following output:

START: build-86f486af-1326-4e03-8f81-b031d43286ee-task-54b06de4f9400000
build-86f486af-1326-4e03-8f81-b031d43286ee-task-54b06de4f9400000:
$ mkdir -p /src
$ cd /src
$ mkdir -p /src
$ cd /src
$ wget -q -O - --header 'Authorization:Bearer [REDACTED]' https://bitbucket.org/tizzo/awesome-drupal-project/get/53718c062076.tar.gz
$ tar xzf - --strip-components=1

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
$ exit
END: build-86f486af-1326-4e03-8f81-b031d43286ee-task-54b06de4f9400000

This was actually the result of an iptables rule getting changed on my local environment that was breakaing all outgoing network connections from inside a container. Now that I know what's up I restarted my VM and found that your code was working the whole time. Thanks!

tizzo added a commit that referenced this pull request Feb 8, 2016
Switch the Bitbucket Downloader to use a supported mechanism for specifying the access token
@tizzo tizzo merged commit 3dd8eab into master Feb 8, 2016
@tizzo tizzo deleted the 27956892-fix-bitbucket-downloader branch February 8, 2016 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants