[Bug 223489] [patch] devel/b2 does not successfully authenticate
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Nov 7 06:47:44 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223489
Bug ID: 223489
Summary: [patch] devel/b2 does not successfully authenticate
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Keywords: patch
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: robak at freebsd.org
Reporter: alan at anarchycorp.com
Keywords: patch
Flags: maintainer-feedback?(robak at freebsd.org)
Assignee: robak at freebsd.org
Created attachment 187820
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187820&action=edit
Patch for b2
'b2 authorize_account' fails like so:
% b2 authorize_account
Backblaze account ID: [account]
Backblaze application key: [application key, not echoed]
Error returned from server:
URL: https://api.backblaze.com/b2api/v1/authorize_account
Params: {}
Headers: {'Authorization': 'Basic [REDACTED]'}
{
"code": "not_found",
"message": "no worker object",
"status": 404
}
No ~/.b2_account_info is created. I believe this is due to a couple errors in
the script, which are fixed by the attached patch. Post-patch, the results are
different:
% /tmp/b2 authorize_account
Backblaze account ID: [account]
Backblaze application key: [application key, not echoed]
% cat ~/.b2_account_info
{
"account_auth_token": "[TOKEN]",
"account_id": "[account]",
"api_url": "https://api001.backblazeb2.com",
"download_url": "https://f001.backblazeb2.com"
}
This is for package:
% pkg info b2
b2-0.2.4
Name : b2
Version : 0.2.4
Installed on : Wed Oct 25 22:21:59 2017 CDT
Origin : devel/b2
Architecture : FreeBSD:11:amd64
Prefix : /usr/local
Categories : devel
Licenses : MIT
Maintainer : robak at FreeBSD.org
WWW : https://www.backblaze.com/b2/docs/quick_command_line.html
Comment : Command Line Interface for Backblaze's B2 storage service
Annotations :
repo_type : binary
repository : FreeBSD
Flat size : 24.4KiB
[description cut]
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list