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/api] Prevent PATCH from overriding plugin's value #363

Merged
merged 1 commit into from
Jun 26, 2015
Merged

Conversation

thibaultcha
Copy link
Member

#362 bis. Since plugin_configuration's value is stored as plain text in

Cassandra, if one made a PATCH request it could potentially override the
stored value because the DAO treated the field just like any other.

Instead, we need to set each property of a value that is not updated
by the PATCH before updating the row.

That behaviour doesn't apply to PUT requests.

Since plugin_configuration's `value` is stored as plain text in
Cassandra, if one made a PATCH request it could potentially override the
stored value because the DAO treated the field just like any other.

Instead, we need to set each property of a `value` that is not updated
by the PATCH before updating the row.

That behaviour doesn't apply to PUT requests.
@thibaultcha thibaultcha changed the title [fix] Prevent PATCH from overriding plugin's value [fix/api] Prevent PATCH from overriding plugin's value Jun 26, 2015
@thibaultcha thibaultcha added the pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release) label Jun 26, 2015
thibaultcha added a commit that referenced this pull request Jun 26, 2015
[fix/api] Prevent PATCH from overriding plugin's value
@thibaultcha thibaultcha merged commit e9cd8bb into master Jun 26, 2015
@thibaultcha thibaultcha deleted the fix/api branch June 26, 2015 18:35
ctranxuan pushed a commit to streamdataio/kong that referenced this pull request Aug 25, 2015
[fix/api] Prevent PATCH from overriding plugin's value

Former-commit-id: 1336337dd2b860f54de408fe04d6454032eadf55
hutchic added a commit that referenced this pull request Jun 10, 2022
fix(image) fix typo in label name

Co-authored-by: Colin Hutchinson <hutchic@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant