What steps will reproduce the problem?

```
WEBDAV_USERNAME=pradermecker@yahoo.ca WEBDAV_PASSWORD=xxxxxx git annex initremote box.com type=webdav url=https://www.box.com/dav/git-annex chunksize=75mb encryption=none
```

What is the expected output? What do you see instead?

I have: 
```
git-annex: WebDAV failed to write file: FailedConnectionException "www.box.com" 443: user error
```
# What version of git-annex are you using? On what operating system?

```
git-annex version: 4.20130314
local repository version: 3
default repository version: 3
supported repository versions: 3 4
upgrade supported from repository versions: 0 1 2
build flags: Assistant Webapp Pairing Testsuite S3 WebDAV Inotify DBus XMPP DNS
```
Archlinux 64: https://aur.archlinux.org/packages/git-annex/

# Please provide any additional information below.

1. Try my password a couple of time. It works with Chrome, Firefox or cadaver
2. I am using a zsh shell and try exporting both env. variables
3. git-annex test has errors

### Error in:   git-annex add:1           
sha1foodup: openFile: does not exist (No such file or directory)
Cases: 3  Tried: 2  Errors: 2  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: dir/foo: getFileStatus: does not exist (No such file or directory)
### Failure in: git-annex add:2           
add of subdir failed
Cases: 3  Tried: 3  Errors: 2  Failures: 1
----------------------------------------------------------------------
reinject
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: sha1foo not found
### Failure in: git-annex reinject/fromkey
reinject failed
Cases: 1  Tried: 1  Errors: 0  Failures: 1
----------------------------------------------------------------------
unannex
Cases: 2  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

### Error in:   git-annex unannex:0:no content
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 2  Tried: 1  Errors: 1  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
### Error in:   git-annex unannex:1:with content
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 2  Tried: 2  Errors: 2  Failures: 0
----------------------------------------------------------------------
drop
Cases: 3  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
git-annex: foo not found
### Failure in: git-annex drop:0:no remotes
drop wrongly succeeded with no known copy of file
Cases: 3  Tried: 1  Errors: 0  Failures: 1warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
### Error in:   git-annex drop:1:with remote
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 3  Tried: 2  Errors: 1  Failures: 1warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
### Error in:   git-annex drop:2:untrusted remote
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 3  Tried: 3  Errors: 2  Failures: 1
----------------------------------------------------------------------
get
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

### Error in:   git-annex get             
foo: openFile: does not exist (No such file or directory)
Cases: 1  Tried: 1  Errors: 1  Failures: 0
----------------------------------------------------------------------
move
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

### Error in:   git-annex move            
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 1  Tried: 1  Errors: 1  Failures: 0
----------------------------------------------------------------------
copy
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

### Error in:   git-annex copy            
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 1  Tried: 1  Errors: 1  Failures: 0
----------------------------------------------------------------------
lock
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

### Error in:   git-annex unlock/lock     
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 1  Tried: 1  Errors: 1  Failures: 0
----------------------------------------------------------------------
edit
Cases: 2  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
### Error in:   git-annex edit/commit:0   
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 2  Tried: 1  Errors: 1  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
### Error in:   git-annex edit/commit:1   
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 2  Tried: 2  Errors: 2  Failures: 0
----------------------------------------------------------------------
fix
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

### Error in:   git-annex fix             
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 1  Tried: 1  Errors: 1  Failures: 0
----------------------------------------------------------------------
trust
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

Cases: 1  Tried: 1  Errors: 0  Failures: 0
----------------------------------------------------------------------
fsck
Cases: 4  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

### Failure in: git-annex fsck:0          
fsck failed to fail with numcopies unsatisfied
Cases: 4  Tried: 2  Errors: 0  Failures: 1warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
### Failure in: git-annex fsck:2          
fsck failed to fail with content only available in untrusted (current) repository
Cases: 4  Tried: 3  Errors: 0  Failures: 2warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
git-annex: sha1foo not found
### Failure in: git-annex fsck:3          
fsck failed to fail with content not replicated to enough non-untrusted repositories
Cases: 4  Tried: 4  Errors: 0  Failures: 3
----------------------------------------------------------------------
migrate
Cases: 2  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

### Error in:   git-annex migrate:0       
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 2  Tried: 1  Errors: 1  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

### Error in:   git-annex migrate:1       
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 2  Tried: 2  Errors: 2  Failures: 0
----------------------------------------------------------------------
 unused
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
git-annex: sha1foo not found
fatal: pathspec 'foo' did not match any files
### Failure in: git-annex unused/dropunused
git rm failed
Cases: 1  Tried: 1  Errors: 0  Failures: 1
----------------------------------------------------------------------
describe
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

Cases: 1  Tried: 1  Errors: 0  Failures: 0
----------------------------------------------------------------------
find
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

### Error in:   git-annex find            
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 1  Tried: 1  Errors: 1  Failures: 0
----------------------------------------------------------------------
merge
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

Cases: 1  Tried: 1  Errors: 0  Failures: 0
----------------------------------------------------------------------
status
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

{"command":"status","supported backends":["SHA256E","SHA1E","SHA512E","SHA224E","SHA384E","SHA256","SHA1","SHA512","SHA224","SHA384","WORM","URL"],"supported remote types":["git","S3","bup","directory","rsync","web","webdav","glacier","hook"],"repository mode":"indirect","trusted repositories":[],"semitrusted repositories":[{"uuid":"00000000-0000-0000-0000-000000000001","description":"web","here":false},{"uuid":"80db3ccc-8c73-4279-b803-1b02c91dd158","description":".t/tmprepo0","here":true},{"uuid":"c01ef662-caa7-46d1-95de-544bee8b08f1","description":"origin (test repo)","here":false}],"untrusted repositories":[],"dead repositories":[],"available local disk space":"75 gigabytes (+1 megabyte reserved)","local annex keys":0,"local annex size":"0 bytes","known annex keys":0,"known annex size":"0 bytes","bloom filter size":"16 mebibytes (0% full)","success":true}
Cases: 1  Tried: 1  Errors: 0  Failures: 0
----------------------------------------------------------------------
version
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex version: 4.20130314
local repository version: 3
default repository version: 3
supported repository versions: 3 4
upgrade supported from repository versions: 0 1 2
build flags: Assistant Webapp Pairing Testsuite S3 WebDAV Inotify DBus XMPP DNS
Cases: 1  Tried: 1  Errors: 0  Failures: 0
----------------------------------------------------------------------
sync
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

# On branch master
#
# Initial commit
#
nothing to commit (create/copy files and use "git add" to track)
### Failure in: git-annex sync            
sync failed
Cases: 1  Tried: 1  Errors: 0  Failures: 1
----------------------------------------------------------------------
sync regression
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

warning: remote HEAD refers to nonexistent ref, unable to checkout.

warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
git-annex: foo not found
git-annex: foo not found
# On branch master
#
# Initial commit
#
nothing to commit (create/copy files and use "git add" to track)
### Failure in: git-annex sync_regression 
sync failed
Cases: 1  Tried: 1  Errors: 0  Failures: 1
----------------------------------------------------------------------
map
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

Cases: 1  Tried: 1  Errors: 0  Failures: 0
----------------------------------------------------------------------
uninit
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

### Error in:   git-annex uninit          
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 1  Tried: 1  Errors: 1  Failures: 0
----------------------------------------------------------------------
upgrade
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

Cases: 1  Tried: 1  Errors: 0  Failures: 0
----------------------------------------------------------------------
whereis
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

### Error in:   git-annex whereis         
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 1  Tried: 1  Errors: 1  Failures: 0
----------------------------------------------------------------------
hook remote
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
### Error in:   git-annex hook remote     
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 1  Tried: 1  Errors: 1  Failures: 0
----------------------------------------------------------------------
directory remote
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
### Error in:   git-annex directory remote
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 1  Tried: 1  Errors: 1  Failures: 0
----------------------------------------------------------------------
rsync remote
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
### Error in:   git-annex rsync remote    
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 1  Tried: 1  Errors: 1  Failures: 0
----------------------------------------------------------------------
bup remote
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

Cases: 1  Tried: 1  Errors: 0  Failures: 0
----------------------------------------------------------------------
crypto
Cases: 1  Tried: 0  Errors: 0  Failures: 0warning: remote HEAD refers to nonexistent ref, unable to checkout.

git-annex: foo not found
### Error in:   git-annex crypto          
foo: getSymbolicLinkStatus: does not exist (No such file or directory)
Cases: 1  Tried: 1  Errors: 1  Failures: 0
----------------------------------------------------------------------
Some tests failed!
  (This could be due to a bug in git-annex, or an incompatability
   with utilities, such as git, installed on this system.)

> (The test suite output suggests to me that it was run on a system
> that does not support symlinks, and may be broken in some other way
> as well, but is not relevant to this bug report.)
> --[[Joey]] 

> Closing this bug since the bug submitter cannot reproduce it and
> had many problems that seems to point at a bad build. [[done]] --[[Joey]]