Please describe the problem.
i try to load add a URL to git (for later download) which is behind a CDN.
git-annex addurl https://cdn.media.ccc.de/congress/2018/h264-sd/35c3-9462-eng-deu-fra-What_The_Fax_sd.mp4
it tells me:
addurl cdn.media.ccc.de_congress_2018_h264_sd_35c3_9462_eng_deu_fra_What_The_Fax_sd.mp4 (downloading https://cdn.media.ccc.de/congress/2018/h264-sd/35c3-9462-eng-deu-fra-What_The_Fax_sd.mp4 ...) Configuration does not allow accessing https://cdn.media.ccc.de/congress/2018/h264-sd/35c3-9462-eng-deu-fra-What_The_Fax_sd.mp4 failed git-annex: addurl: 1 failed
looking around, I find that curl itself does also not load the file. wget does out-of-the-box hint: curl -L "--location" seems to work, as this follows the http 30x
--> how to fix this ?
What steps will reproduce the problem?
examples on top
What version of git-annex are you using? On what operating system?
debian stretch, x64. git-annex as out-of-box
$ apt-show-versions | grep git-annex
git-annex:amd64/stretch 6.20170101-1+deb9u2 uptodate
Please provide any additional information below.
# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log
# End of transcript or log.
Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
yes ! wunderful tool. managing my video, photo & music with it.
Appears to have been a local misconfiguration, not a bug. done --Joey
I think this might be from a security change that was introduced recently-ish: security fix release.
Perhaps the redirect is not in the whitelisted schemes (or you have no schemes whitelisted)?
adding this to .git/config
[annex "security"] allowed-url-schemes = http https allowed-http-addresses = all
workend for me. YMMV
adding this to .git/config
workend for me. YMMV
allowed-url-schemes defaults to including https and http and ftp. This error message could only happen if you had earlier set allowed-url-schemes to something other than the default:
Whatever redirect might be involved in that url is not relevant because this error message only occurs when the url you provided does not use an allowed url scheme. If it had started to download and then redirected to some other scheme, that would have resulted in a different error message.
So, this was a local misconfiguration not a bug.