
16 Mar
2008
16 Mar
'08
23:26
Hi, I'm just playing with the latest BS packages from trunk (r3552) and it seems that the api rejects the upload of empty files (see attached development.log): marcus@linux:~/home:Admin/foo> touch bar marcus@linux:~/home:Admin/foo> curl -u Admin:opensuse -X PUT -d "$(cat bar)" http://127.0.42.2/source/home:Admin/foo/bar?rev=upload <?xml version="1.0" encoding="UTF-8"?> <status code="unknown"> <summary>XML validation failed</summary> <details>illegal document type 'NilClass'</details> </status> marcus@linux:~/home:Admin/foo> Is this a bug or feature?:) In case it is a bug I attached a small patch which fixes/works around this problem. Marcus