Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • Fix/xxxx-activateGitlab
  • Fix/xxxx-brokenTag
  • Heinrichs-main-patch-59520
  • Hotfix/2132-editingDeletingInclusion
  • Hotfix/2141-fileUploadErrors
  • Hotfix/2202-fixNaNQuota
  • Hotfix/2254-fixContentLenghtCalculation
  • Hotfix/2307-noLinkedTimeout
  • Hotfix/2313-fixModifiedDate
  • Hotfix/2346-fixPolicy
  • Hotfix/2371-fixGitLabinRCV
  • Hotfix/2428-savingRwthRdsS3
  • Hotfix/2452-linkedDeletion
  • Hotfix/2459-EncodingPath
  • Hotfix/xxxx-lock
  • Issue/1792-newMetadataStructure
  • Issue/1951-quotaImplementation
  • Issue/1999-gitlabResourcesLib
  • Issue/2000-gitlabResourcesAPI
  • Issue/2072-wormResourceType
  • Issue/2101-gitLabResTypeUi
  • Issue/2102-gitLabResTypeRCV
  • Issue/2151-NamespaceRDSWorm
  • Issue/2155-ArchiveLinkedResource
  • Issue/2162-fixFolderResponse
  • Issue/2162-fixFolderResponsev2
  • Issue/2195-missingModifiedDate
  • Issue/2246-quotaResoval
  • Issue/2275-DocuGitlabResourceType
  • Issue/2278-gitlabToS
  • Issue/2279-gitlabMetaInformation
  • Issue/2309-docs
  • Issue/2326-supportedOrganizations
  • Issue/2328-noFailOnLog
  • Issue/2349-gitlabHttps
  • Issue/2414-resourceTypesAffilAndAllocQuota
  • Issue/2433-resourcesApi
  • Issue/2462-removeTraces
  • Issue/2464-invalidateMeta
  • Issue/2583-treeBug
  • Issue/2586-migrateBlob
  • Test/xxxx-enablingGitLab
  • Test/xxxx-usingPresignedForUL
  • dev
  • gitkeep
  • main
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v1.1.3
  • v1.1.4
  • v1.10.0
  • v1.10.1
  • v1.10.2
  • v1.11.0
  • v1.11.1
  • v1.2.0
  • v1.3.0
  • v1.4.0
  • v1.5.0
  • v1.5.1
  • v1.5.2
  • v1.5.3
  • v1.5.4
  • v1.6.0
  • v1.6.1
  • v1.7.0
  • v1.7.1
  • v1.7.2
  • v1.7.3
  • v1.8.0
  • v1.8.1
  • v1.8.2
  • v1.8.3
  • v1.8.4
  • v1.8.5
  • v1.8.6
  • v1.8.7
  • v1.9.0
  • v1.9.1
  • v1.9.2
  • v1.9.3
  • v1.9.4
83 results

Target

Select target project
  • coscine/backend/libraries/resource-types
1 result
Select Git revision
  • Fix/xxxx-activateGitlab
  • Fix/xxxx-brokenTag
  • Heinrichs-main-patch-59520
  • Hotfix/2132-editingDeletingInclusion
  • Hotfix/2141-fileUploadErrors
  • Hotfix/2202-fixNaNQuota
  • Hotfix/2254-fixContentLenghtCalculation
  • Hotfix/2307-noLinkedTimeout
  • Hotfix/2313-fixModifiedDate
  • Hotfix/2346-fixPolicy
  • Hotfix/2371-fixGitLabinRCV
  • Hotfix/2428-savingRwthRdsS3
  • Hotfix/2452-linkedDeletion
  • Hotfix/2459-EncodingPath
  • Hotfix/xxxx-lock
  • Issue/1792-newMetadataStructure
  • Issue/1951-quotaImplementation
  • Issue/1999-gitlabResourcesLib
  • Issue/2000-gitlabResourcesAPI
  • Issue/2072-wormResourceType
  • Issue/2101-gitLabResTypeUi
  • Issue/2102-gitLabResTypeRCV
  • Issue/2151-NamespaceRDSWorm
  • Issue/2155-ArchiveLinkedResource
  • Issue/2162-fixFolderResponse
  • Issue/2162-fixFolderResponsev2
  • Issue/2195-missingModifiedDate
  • Issue/2246-quotaResoval
  • Issue/2275-DocuGitlabResourceType
  • Issue/2278-gitlabToS
  • Issue/2279-gitlabMetaInformation
  • Issue/2309-docs
  • Issue/2326-supportedOrganizations
  • Issue/2328-noFailOnLog
  • Issue/2349-gitlabHttps
  • Issue/2414-resourceTypesAffilAndAllocQuota
  • Issue/2433-resourcesApi
  • Issue/2462-removeTraces
  • Issue/2464-invalidateMeta
  • Issue/2583-treeBug
  • Issue/2586-migrateBlob
  • Test/xxxx-enablingGitLab
  • Test/xxxx-usingPresignedForUL
  • dev
  • gitkeep
  • main
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v1.1.3
  • v1.1.4
  • v1.10.0
  • v1.10.1
  • v1.10.2
  • v1.11.0
  • v1.11.1
  • v1.2.0
  • v1.3.0
  • v1.4.0
  • v1.5.0
  • v1.5.1
  • v1.5.2
  • v1.5.3
  • v1.5.4
  • v1.6.0
  • v1.6.1
  • v1.7.0
  • v1.7.1
  • v1.7.2
  • v1.7.3
  • v1.8.0
  • v1.8.1
  • v1.8.2
  • v1.8.3
  • v1.8.4
  • v1.8.5
  • v1.8.6
  • v1.8.7
  • v1.9.0
  • v1.9.1
  • v1.9.2
  • v1.9.3
  • v1.9.4
83 results
Show changes
Commits on Source (3)
......@@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<AssemblyName>Coscine.$(MSBuildProjectName)</AssemblyName>
<RootNamespace>Coscine.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<Version>1.8.3</Version>
<Version>1.8.4</Version>
</PropertyGroup>
<ItemGroup>
......
......@@ -176,17 +176,18 @@ public class GitLabResourceType : BaseResourceType
{
var client = new HttpClient();
if (string.IsNullOrWhiteSpace(_gitLabResourceTypeConfiguration.RepoUrl) || !Uri.TryCreate(new Uri(_gitLabResourceTypeConfiguration.RepoUrl), Uri.UriSchemeHttps, out Uri? secureHostUrl))
if (string.IsNullOrWhiteSpace(_gitLabResourceTypeConfiguration.RepoUrl))
{
throw new ArgumentException("RepoUrl must not be null or white space and must be a valid HTTPS URI.", nameof(_gitLabResourceTypeConfiguration.RepoUrl));
throw new ArgumentException("RepoUrl must not be null or white space.", nameof(_gitLabResourceTypeConfiguration.RepoUrl));
}
// secureHostUrl is a new string with the scheme set to "https"
var secureHostUrl = _gitLabResourceTypeConfiguration.RepoUrl.ToLower().Trim().Replace("http://", "https://").TrimEnd('/');
// secureHostUrl is a new Uri object with the scheme set to "https"
client.DefaultRequestHeaders.Add("PRIVATE-TOKEN", _gitLabResourceTypeConfiguration.AccessToken);
var request = new HttpRequestMessage
{
Method = HttpMethod.Head,
RequestUri = new Uri($"{secureHostUrl}api/v4/projects/{_gitLabResourceTypeConfiguration.ProjectId}/repository/files/{Uri.EscapeDataString(entry.Path)}?ref={_gitLabResourceTypeConfiguration.Branch}"),
RequestUri = new Uri($"{secureHostUrl}/api/v4/projects/{_gitLabResourceTypeConfiguration.ProjectId}/repository/files/{Uri.EscapeDataString(entry.Path)}?ref={_gitLabResourceTypeConfiguration.Branch}"),
};
using var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
......
......@@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<AssemblyName>Coscine.$(MSBuildProjectName)</AssemblyName>
<RootNamespace>Coscine.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<Version>1.8.3</Version>
<Version>1.8.4</Version>
</PropertyGroup>
<ItemGroup>
......
......@@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<AssemblyName>Coscine.$(MSBuildProjectName)</AssemblyName>
<RootNamespace>Coscine.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<Version>1.8.3</Version>
<Version>1.8.4</Version>
</PropertyGroup>
<ItemGroup>
......
......@@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<AssemblyName>Coscine.$(MSBuildProjectName)</AssemblyName>
<RootNamespace>Coscine.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<Version>1.8.3</Version>
<Version>1.8.4</Version>
</PropertyGroup>
<ItemGroup>
......
......@@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<AssemblyName>Coscine.$(MSBuildProjectName)</AssemblyName>
<RootNamespace>Coscine.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<Version>1.8.3</Version>
<Version>1.8.4</Version>
</PropertyGroup>
<ItemGroup>
......
......@@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<AssemblyName>Coscine.$(MSBuildProjectName)</AssemblyName>
<RootNamespace>Coscine.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<Version>1.8.3</Version>
<Version>1.8.4</Version>
</PropertyGroup>
<ItemGroup>
......
......@@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<AssemblyName>Coscine.$(MSBuildProjectName)</AssemblyName>
<RootNamespace>Coscine.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<Version>1.8.3</Version>
<Version>1.8.4</Version>
</PropertyGroup>
<ItemGroup>
......
......@@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<RootNamespace>Coscine.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<AssemblyName>Coscine.$(MSBuildProjectName)</AssemblyName>
<Version>1.8.3</Version>
<Version>1.8.4</Version>
</PropertyGroup>
<PropertyGroup>
......