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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Disable httpx persistent connection plugin.
Pavel Balashoua0c6d06d68da
diff --git a/lib/open_project.rb b/lib/open_project.rbindex e154bb70a5c..4f54a66e4ee 100644--- a/lib/open_project.rb+++ b/lib/open_project.rb@@ -52,7 +52,6 @@ module OpenProject# And old connections will not be closed properly which could lead to EMFILE error.Thread.current[:httpx_session] ||= beginsession = HTTPX- .plugin(:persistent) # persistent plugin enables retries plugin under the hood.plugin(:basic_auth).plugin(:webdav).with(diff --git a/modules/storages/spec/contracts/storages/storages/nextcloud_contract_spec.rb b/modules/storages/spec/contracts/storages/storages/nextcloud_contract_spec.rbindex 7f2bac5af98..828054613c0 100644--- a/modules/storages/spec/contracts/storages/storages/nextcloud_contract_spec.rb+++ b/modules/storages/spec/contracts/storages/storages/nextcloud_contract_spec.rb@@ -93,8 +93,7 @@ RSpec.describe Storages::Storages::NextcloudContract, :storage_server_helpers, :expect(subject.errors.to_hash).to eq({ password: ["could not be validated. Please check your storage connection and try again."] })- # twice due to HTTPX retry plugin being enabled.- expect(credentials_request).to have_been_made.twice+ expect(credentials_request).to have_been_made.onceendenddiff --git a/modules/storages/spec/contracts/storages/storages/shared_contract_examples.rb b/modules/storages/spec/contracts/storages/storages/shared_contract_examples.rbindex ab76b554539..a1e03f0027a 100644--- a/modules/storages/spec/contracts/storages/storages/shared_contract_examples.rb+++ b/modules/storages/spec/contracts/storages/storages/shared_contract_examples.rb@@ -192,8 +192,7 @@ RSpec.shared_examples_for 'nextcloud storage contract', :storage_server_helpers,it 'retries failed request once' docontract.validate- # twice due to HTTPX retry plugin being enabled.- expect(stub_server_capabilities).to have_been_made.twice+ expect(stub_server_capabilities).to have_been_made.onceendend@@ -205,8 +204,7 @@ RSpec.shared_examples_for 'nextcloud storage contract', :storage_server_helpers,it 'retries failed request once' docontract.validate- # twice due to HTTPX retry plugin being enabled.- expect(stub_config_check).to have_been_made.twice+ expect(stub_config_check).to have_been_made.onceendendend