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
Moves to httpx
Marcello Rochac4e71e64e316
diff --git a/modules/storages/app/common/storages/peripherals/oauth_configurations/one_drive_configuration.rb b/modules/storages/app/common/storages/peripherals/oauth_configurations/one_drive_configuration.rbindex 840061f5bd3..efc48d2599d 100644--- a/modules/storages/app/common/storages/peripherals/oauth_configurations/one_drive_configuration.rb+++ b/modules/storages/app/common/storages/peripherals/oauth_configurations/one_drive_configuration.rb@@ -55,14 +55,12 @@ module Storagesenddef extract_origin_user_id(rack_access_token)- Net::HTTP.start(@uri.host, @uri.port, use_ssl: true) do |http|- response = http.get(- '/v1.0/me',- { Authorization: "Bearer #{rack_access_token.access_token}", Accept: 'application/json' }- )+ util = ::Storages::Peripherals::StorageInteraction::OneDrive::Util- JSON.parse(response.body)['id']- end+ HTTPX.get(+ util.join_uri_path(@uri, '/v1.0/me'),+ headers: { 'Authorization' => "Bearer #{rack_access_token.access_token}", 'Accept' => 'application/json' }+ ).raise_for_status.json['id']enddef scope