https://bugzilla.redhat.com/show_bug.cgi?id=1246594
Bug ID: 1246594
Summary: git-annex addurl --file ignores https url proto,
fallsback to http silently
Product: Fedora EPEL
Version: el6
Component: git-annex
Assignee: mathstuf(a)gmail.com
Reporter: jsherril(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: haskell-devel(a)lists.fedoraproject.org,
mathstuf(a)gmail.com, petersen(a)redhat.com
Description of problem:
when using:
git annex addurl --file somefile
https://webserver.example.com/somefile
git annex does not use https, but fallsback to http without any sort of warning
or error.
Version-Release number of selected component (if applicable):
git-annex-3.20120522-2.1.el6.x86_64
How reproducible:
always
Steps to Reproduce:
1. in a git repo, download a file 'foo', and run 'git annex add foo'
2. commit this annexed file, push it to a remote
3. in a separate directory checkout the git repo
4. run git-annex addurl --file foo
https://server/path/to/foo
Actual results:
git-annex will attempt to download the file over http. If port 80 is blocked,
git annex will error with connection refused. An strace shows it clearly trying
on port 80:
connect(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("192.168.0.127")}, 16) = -1 EINPROGRESS (Operation now in
progress)
if you are monitoring your web server logs (when port 80 is allowed), you will
see it attempt to connect over port 80 and never over port 443.
Expected results:
connects over port 443 via https
Additional info:
oddly enough if you leave out --file foo it will attempt to use ssl.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=CxmjULpKym&a=cc_unsubscribe