Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

listObjects(String) returns incorrectly dot-keys #16

Closed
mpaluchowski opened this issue Dec 5, 2016 · 1 comment
Closed

listObjects(String) returns incorrectly dot-keys #16

mpaluchowski opened this issue Dec 5, 2016 · 1 comment

Comments

@mpaluchowski
Copy link

With S3Mock running on Java 8, when I first do:

s3Client.putObject("myBucket", "testKey", ...);

and then run s3Client.listObjects("myBucket"), the returned XML result will contain (incorrectly) the object with testKey as well as an additional object with a dot-prefixed .testKey:

<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
  <Name>myBucket</Name>
  <Prefix></Prefix>
  <KeyCount>2</KeyCount>
  <MaxKeys>1000</MaxKeys>
  <IsTruncated>false</IsTruncated>
    <Contents>
      <Key>.testKey</Key>
      <LastModified>2016-12-05T09:26:39Z</LastModified>
      <ETag>0</ETag>
      <Size>832</Size>
      <StorageClass>STANDARD</StorageClass>
    </Contents><Contents>
      <Key>testKey</Key>
      <LastModified>2016-12-05T09:26:39Z</LastModified>
      <ETag>0</ETag>
      <Size>5209</Size>
      <StorageClass>STANDARD</StorageClass>
    </Contents>
</ListBucketResult>
@shuttie
Copy link
Contributor

shuttie commented Mar 13, 2017

I guess it should be fixed by 20a1a2b. Can you try v0.1.8?

@shuttie shuttie closed this as completed Mar 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants