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

Fix listing of deep paths in PostgreSQL backend #2393

Merged
merged 1 commit into from
Feb 17, 2017

Conversation

ckarenz
Copy link

@ckarenz ckarenz commented Feb 17, 2017

This change addresses an issue where deep paths would not be enumerated if parent paths did not contain a key.

Given the keys shallow and deep at the following paths...

secret/path1/shallow
secret/path2/path3/deep

... a LIST request against /v1/secret would produce only one result, path1/. With this change, the same list request will now list path1/ and path2/.

@ckarenz ckarenz force-pushed the fix-psql-list branch 2 times, most recently from a66159d to 5dd4f0a Compare February 17, 2017 08:27
This change addresses an issue where deep paths would not be enumerated if parent paths did not contain a key.

Given the keys `shallow` and `deep` at the following paths...
```
secret/shallow
secret/path/deep
```

... a `LIST` request against `/v1/secret` would produce only one result, `shallow`.  With this change, the same list request will now list `shallow` and `path/`.
@jefferai
Copy link
Member

Thanks!

@jefferai jefferai merged commit b9e1ef1 into hashicorp:master Feb 17, 2017
@ckarenz ckarenz deleted the fix-psql-list branch February 17, 2017 18:24
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