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

Can't get list of containers (/v1/{account}) #137

Closed
Ezveus opened this Issue Sep 7, 2017 · 7 comments

Comments

Projects
None yet
4 participants
@Ezveus
Copy link

Ezveus commented Sep 7, 2017

Hi,

Trying to list containers (/v1/{account}), I got a org.codehaus.jackson.map.exc.UnrecognizedPropertyException.

Responsible field is last_modified which is not present in org.javaswift.joss.command.shared.account.ContainerListElement.

I propose to add the missing field or to ignore unknown fields.
I join both proposals as patches :

@ferrys

This comment has been minimized.

Copy link
Contributor

ferrys commented Sep 13, 2017

Hi @Ezveus, as of v0.9.16, I am not having any problems listing all of the containers in an account.

I am using something similar to this to produce the list:
Collection<Container> containers = account.list();

Could you give some more information leading up to the exact problem you're encountering? Thanks!

@ferrys

This comment has been minimized.

Copy link
Contributor

ferrys commented Sep 18, 2017

I'm going to close this, but feel free to reopen if you have any other issues.

@ferrys ferrys closed this Sep 18, 2017

@RayOsLei

This comment has been minimized.

Copy link

RayOsLei commented Sep 19, 2017

when swift version >2.10 such as 2.13 ,it occurs above problem@ferrys

@csommelet

This comment has been minimized.

Copy link

csommelet commented Sep 20, 2017

Field last_modified was added to containers list in swift 2.13.0. See https://github.com/openstack/swift/blob/master/CHANGELOG:

Listing containers in accounts with json or xml now includes a
last_modified time. This does not change any on-disk data, but simply
exposes the value to offer consistency with the object listings on
containers.

@ferrys

This comment has been minimized.

Copy link
Contributor

ferrys commented Sep 20, 2017

@RayOsLei, @Ezveus can you confirm PR #140 fixes the problem?

@ferrys ferrys added the in progress label Sep 20, 2017

@RayOsLei

This comment has been minimized.

Copy link

RayOsLei commented Sep 21, 2017

@ferrys I tried to recompile the installation with this #140 fix,that's ok

@Ezveus

This comment has been minimized.

Copy link

Ezveus commented Sep 21, 2017

@ferrys #140 works perfectly.

@ferrys ferrys closed this Sep 29, 2017

@ferrys ferrys removed the in progress label Oct 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment