Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#50656] fixed condition

Eric Schuberta099e9951703
diff --git a/modules/storages/lib/api/v3/storages/storage_representer.rb b/modules/storages/lib/api/v3/storages/storage_representer.rb
index 762c79551c6..601dceb5efc 100644
--- a/modules/storages/lib/api/v3/storages/storage_representer.rb
+++ b/modules/storages/lib/api/v3/storages/storage_representer.rb
@@ -75,7 +75,7 @@ module API::V3::Storages
extend ClassMethods
def initialize(model, current_user:, embed_links: nil)
- unless model.empty?
+ if model.oauth_configuration.present?
# Do not instantiate a connection manager, if representer is used for parsing
@connection_manager =
::OAuthClients::ConnectionManager.new(user: current_user, configuration: model.oauth_configuration)