Comment 3 for bug 1031150

Revision history for this message
gholt (gholt) wrote :

Maybe it's a problem with the bindings? I tried what you described using curl and found no problems:

$ curl -XPUT http://127.0.0.1:8080/v1/AUTH_test/test -Hx-auth-token:AUTH_tkc747c5256d6a473fbf3d710ea5775e5d
201 Created

$ curl -XPUT http://127.0.0.1:8080/v1/AUTH_test/test/psuedo-1/ -Hcontent-type:application/directory -Hcontent-length:0 -Hx-auth-token:AUTH_tkc747c5256d6a473fbf3d710ea5775e5d
201 Created

$ curl -XPUT http://127.0.0.1:8080/v1/AUTH_test/test/file-1 -Hcontent-type:text/plain --data-binary '1234' -Hx-auth-token:AUTH_tkc747c5256d6a473fbf3d710ea5775e5d
201 Created

$ curl -XPUT http://127.0.0.1:8080/v1/AUTH_test/test/pseudo-1 -Hcontent-type:text/plain --data-binary 'abcd' -Hx-auth-token:AUTH_tkc747c5256d6a473fbf3d710ea5775e5d
201 Created

$ curl -XPUT http://127.0.0.1:8080/v1/AUTH_test/test/file-1/ -Hcontent-type:application/directory -Hcontent-length:0 -Hx-auth-token:AUTH_tkc747c5256d6a473fbf3d710ea5775e5d
201 Created

$ curl 'http://127.0.0.1:8080/v1/AUTH_test/test?format=json' -Hx-auth-token:AUTH_tkc747c5256d6a473fbf3d710ea5775e5d | python -mjson.tool
[
    {
        "bytes": 4,
        "content_type": "text/plain",
        "hash": "81dc9bdb52d04dc20036dbd8313ed055",
        "last_modified": "2012-07-31T01:51:20.844560",
        "name": "file-1"
    },
    {
        "bytes": 0,
        "content_type": "application/directory",
        "hash": "d41d8cd98f00b204e9800998ecf8427e",
        "last_modified": "2012-07-31T01:52:32.763770",
        "name": "file-1/"
    },
    {
        "bytes": 4,
        "content_type": "text/plain",
        "hash": "e2fc714c4727ee9395f324cd2e7f331f",
        "last_modified": "2012-07-31T01:51:53.382290",
        "name": "pseudo-1"
    },
    {
        "bytes": 0,
        "content_type": "application/directory",
        "hash": "d41d8cd98f00b204e9800998ecf8427e",
        "last_modified": "2012-07-31T01:50:02.712670",
        "name": "psuedo-1/"
    }
]