You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.
In https://github.com/kubeapps/ratesvc/blob/master/handler.go#L117 we aren't checking if the current uid is already in the list of StargazerIDs for item fetched from database. This means multiple requests to the PUT endpoint from the same user token with {has_starred: true} can create duplicate entries of the uid in the list.
If the uid is already in the list, we should no-op.
In https://github.com/kubeapps/ratesvc/blob/master/handler.go#L117 we aren't checking if the current uid is already in the list of StargazerIDs for item fetched from database. This means multiple requests to the PUT endpoint from the same user token with
{has_starred: true}
can create duplicate entries of the uid in the list.If the uid is already in the list, we should no-op.
See also vmware-archive/hub#7
The text was updated successfully, but these errors were encountered: