Page MenuHomeSoftware Heritage

Resolving a contextual SWHID with path without // at the end
Closed, MigratedEdits Locked

Description

The following url yields a 404:
https://archive.softwareheritage.org/swh:1:dir:abc0e2cbbfdfee8de52f0842263fbadf65f5b211;origin=https://github.com/CGAL/cgal;visit=swh:1:snp:78e145aa8174e576786284475a76cf6f187b3475;anchor=swh:1:rev:b86a5018c7f5f733c80fe40eee65803c112f2685;path=/Hyperbolic_triangulation_2/

A search with the same SWHID works, using :
swh:1:dir:abc0e2cbbfdfee8de52f0842263fbadf65f5b211;origin=https://github.com/CGAL/cgal;visit=swh:1:snp:78e145aa8174e576786284475a76cf6f187b3475;anchor=swh:1:rev:b86a5018c7f5f733c80fe40eee65803c112f2685;path=/Hyperbolic_triangulation_2/

this link works as well: https://archive.softwareheritage.org/swh:1:dir:abc0e2cbbfdfee8de52f0842263fbadf65f5b211;origin=https://github.com/CGAL/cgal;visit=swh:1:snp:78e145aa8174e576786284475a76cf6f187b3475;anchor=swh:1:rev:b86a5018c7f5f733c80fe40eee65803c112f2685;path=/Hyperbolic_triangulation_2//

The difference is => // at the end

The SWHID without // is the one given to HAL for the metadata only deposit.
On a HAL software record, a link to the SWH Archive is produced with the concatenation of:
archive.softwareheritage.org/ + SWHID

Resolving that is crucial for a test we are doing on HAL