ce4760bbd5
When adding a deploy key that already exists in the project the existing key would not be returned, resulting in an attempt to create a new one, which in turn caused a 500 error due to an ActiveRecord exception. When adding a deploy key that exists within another project the key would be joined to the project, but would also attempt to create a new one, which resulted in a 400 error due to the key already existing. Fixes #22741 Fixes #21754 Signed-off-by: Rémy Coutable <remy@rymai.me> |
||
---|---|---|
.. | ||
helpers | ||
access_requests.rb | ||
api.rb | ||
api_guard.rb | ||
award_emoji.rb | ||
boards.rb | ||
branches.rb | ||
broadcast_messages.rb | ||
builds.rb | ||
commit_statuses.rb | ||
commits.rb | ||
deploy_keys.rb | ||
deployments.rb | ||
entities.rb | ||
environments.rb | ||
files.rb | ||
groups.rb | ||
helpers.rb | ||
internal.rb | ||
issues.rb | ||
keys.rb | ||
labels.rb | ||
lint.rb | ||
members.rb | ||
merge_request_diffs.rb | ||
merge_requests.rb | ||
milestones.rb | ||
namespaces.rb | ||
notes.rb | ||
notification_settings.rb | ||
pipelines.rb | ||
project_hooks.rb | ||
project_snippets.rb | ||
projects.rb | ||
repositories.rb | ||
runners.rb | ||
services.rb | ||
session.rb | ||
settings.rb | ||
sidekiq_metrics.rb | ||
subscriptions.rb | ||
system_hooks.rb | ||
tags.rb | ||
templates.rb | ||
todos.rb | ||
triggers.rb | ||
users.rb | ||
variables.rb | ||
version.rb |