Skip to content

Fix issue with S3LayerDeleter deleting files outside of layer - #2070

Merged
lossyrob merged 1 commit into
locationtech:masterfrom
kthompson:patch-1
Mar 14, 2017
Merged

lossyrob merged 1 commit into
locationtech:masterfrom
kthompson:patch-1

Conversation

@kthompson

Copy link
Copy Markdown
Contributor

S3LayerDeleter can incorrectly delete keys since it is based on a wildcard pattern.

For example:
If you have multiple keys like

1/files
10/files

and you delete an entry with the key 1 then it will also delete 10/files Appending the extra / will perform the task as expected

@lossyrob lossyrob added this to the 1.1 milestone Mar 14, 2017
S3LayerDeleter can incorrectly delete keys since it is based on a wildcard pattern.
@lossyrob lossyrob changed the title Update S3LayerDeleter.scala Fix issue with S3LayerDeleter deleting files outside of layer Mar 14, 2017
@lossyrob
lossyrob merged commit df7c945 into locationtech:master Mar 14, 2017
@kthompson
kthompson deleted the patch-1 branch March 20, 2017 20:01
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

Successfully merging this pull request may close these issues.

2 participants