Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StoredObjectListElement in Javaswift/JOSS does not match openstack swift API? #152

Open
chengchengpei opened this issue Jun 19, 2018 · 0 comments

Comments

@chengchengpei
Copy link

chengchengpei commented Jun 19, 2018

The definition of StoredObjectListElement is here https://github.com/javaswift/joss/blob/master/src/main/java/org/javaswift/joss/command/shared/container/StoredObjectListElement.java

public class StoredObjectListElement {

    public String subdir;

    public String name;

    public String hash;

    public long bytes;

    @JsonProperty(value="content_type")
    public String contentType;

    @JsonProperty(value="last_modified")
    public String lastModified;
}

but the response of API listing objects look like (GET API here https://developer.openstack.org/api-ref/object-store/index.html#containers):

[
    {
        "hash": "451e372e48e0f6b1114fa0724aa79fa1",
        "last_modified": "2014-01-15T16:41:49.390270",
        "bytes": 14,
        "name": "goodbye",
        "content_type": "application/octet-stream"
    },
    {
        "hash": "ed076287532e86365e841e92bfc50d8c",
        "last_modified": "2014-01-15T16:37:43.427570",
        "bytes": 12,
        "name": "helloworld",
        "content_type": "application/octet-stream"
    }
]

The fields (subdir) seem not not match.
and there may be symbol_link in the response body when listing objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant