Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • fts-rest-flask fts-rest-flask
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Jira
    • Jira
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • File Transfer Service
  • fts-rest-flaskfts-rest-flask
  • Merge requests
  • !87

client: add support for metalink source

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Paul Millar requested to merge pmillar/fts-rest-flask:development/add-metalink-support into develop May 19, 2022
  • Overview 2
  • Commits 1
  • Pipelines 5
  • Changes 2

Motivation:

FTS supports bulk operations, but using its own specific format. The metalink is a well-documented (see RFC 5854) XML format that describes how to receive a set of files.

Support for metalink would allow FTS to accept a bulk transfer request with the FTS user presenting the information in a standard fashion.

Modification:

Add initial support for parsing the metalink XML format. The idea is that the user presents a base URL that all files (within the metalink file) are resolved against.

There are several limitations with the current implementation:

  • Metalink allows for a file to have multiple sources. This patch selects only the best url (the one with the lowest priority value).

  • There are several types of source URLs supported by metalink (http, bittorrent, etc.). The code currently assumes that any source URL is acceptable by FTS

  • In principle, the metalink allows a file to have different digest values, as calculated by different checksum algorithms. Currently, only adler32 checksums are supported.

Result:

It is now possible to submit a bulk request to FTS using a metalink file.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: development/add-metalink-support