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

UI - Fix secret creation when cas_required=true #5823

Merged
merged 1 commit into from
Nov 19, 2018
Merged

Conversation

meirish
Copy link
Contributor

@meirish meirish commented Nov 19, 2018

Previously we were using the currentVersion from the secret metadata to set the cas param when saving in KV V2. This failed when cas_required was true on the mount config because when you created a new version, there wasn't any metadata to read from yet.

Now instead of checking for the secret which would never fail because ember-data would always return a snapshot, we fall back to using 0.

Fixes #5801

@meirish meirish requested review from a team November 19, 2018 21:01
@meirish meirish added this to the 1.0 milestone Nov 19, 2018
@meirish meirish merged commit cd1eaf3 into master Nov 19, 2018
@meirish meirish deleted the ui-kv-v2-cas branch November 19, 2018 21:48
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