Wrong swh:rev anchor in SWHID computed for contents/directories in Permalink box
In the permalinks box, the revision proposed as an anchor for the SWHID of contents or directories is wrong: it appears to be the latest swh:rev of the snapshot, instead of the revision being visited. To replicate: //Content://
- follow this URL: https://archive.softwareheritage.org/browse/revision/0064fbd0ad69de205ea6ec6999f3d3895e9442c2/?origin_url=https://gitorious.org/parmap/parmap.git&path=parmap.ml&snapshot_id=78209702559384ee1b5586df13eca84a5123aa82
- click on the content widget in the Permalinks box
- the proposed SWHID is swh:1:cnt:d5214ff9562a1fe78db51944506ba48c20de3379;origin=https://gitorious.org/parmap/parmap.git; visit=swh:1:snp:78209702559384ee1b5586df13eca84a5123aa82;anchor=swh:1:rev:b9b0ecd1e2f9db10335383651f8317ed8cec8296;path=/parmap.mlparmap.ml which is wrong; swh:1:rev:b9b0ecd1e2f9db10335383651f8317ed8cec8296 is the last revision in the snapshot, while the one we are actually visiting is swh:1:rev:0064fbd0ad69de205ea6ec6999f3d3895e9442c2 (also the path is wrong, but this is already noted in #2408 (closed) )
//Directory://
- follow this URL: https://archive.softwareheritage.org/browse/revision/0064fbd0ad69de205ea6ec6999f3d3895e9442c2/?origin_url=https://gitorious.org/parmap/parmap.git
- click on the content widget in the Permalinks box
- the proposed SWHID is swh:1:dir:5512fa77668338bdb6f673c32e15a81615fe5c68;origin=https://gitorious.org/parmap/parmap.git; visit=swh:1:snp:78209702559384ee1b5586df13eca84a5123aa82;anchor=swh:1:rev:b9b0ecd1e2f9db10335383651f8317ed8cec8296;path=/ which is wrong; swh:1:rev:b9b0ecd1e2f9db10335383651f8317ed8cec8296 is the last revision in the snapshot, while the one we are actually visiting is
Migrated from T2417 (view on Phabricator)