SWORD deposit: verify deposit on web-app
Verify that the the identifier given to the client resolves to :
- the correct software artifact in the archive
- the correct metadata given with the deposit
related task #858 (closed)
Migrated from T859 (view on Phabricator)
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Morane Otilia Gruenpeter mentioned in issue #858 (closed)
mentioned in issue #858 (closed)
- Morane Otilia Gruenpeter assigned to @moranegg
assigned to @moranegg
- Phabricator Migration user marked this issue as related to #821 (closed)
marked this issue as related to #821 (closed)
- Morane Otilia Gruenpeter added SWORD deposit priority:Normal labels
added SWORD deposit priority:Normal labels
- Maintainer
We can see one deposit (id 61) which made the whole nine yards (posted through deposit, passed the checks, loaded through workers).
Retrieving it's swh-id in the deposit:
$ curl --user "<user>:<pass>" https://deposit.softwareheritage.org/1/hal/61/status/ <entry xmlns="http://www.w3.org/2005/Atom" xmlns:sword="http://purl.org/net/sword/" xmlns:dcterms="http://purl.org/dc/terms/"> <deposit_id>61</deposit_id> <deposit_status>success</deposit_status> <deposit_status_detail>Loading is successful</deposit_status_detail> <deposit_swh_id>594617d1cd9d9d6bc0cfbd531bbaa1ed19627e9b</deposit_swh_id> </entry>
We can then browse that deposit's associated revision in: https://archive.softwareheritage.org/browse/revision/594617d1cd9d9d6bc0cfbd531bbaa1ed19627e9b/
or:
$ curl https://archive.softwareheritage.org/api/1/revision/594617d1cd9d9d6bc0cfbd531bbaa1ed19627e9b/ { "author": { "email": null, "fullname": "", "id": 13868695, "name": null }, "author_url": "/api/1/person/13868695/", "committer": { "email": null, "fullname": "", "id": 13868695, "name": null }, "committer_date": "2017-12-04T16:00:35+00:00", "committer_url": "/api/1/person/13868695/", "date": "2017-12-04T16:00:35+00:00", "directory": "e04b2a7b8a8838da0693e9fd992a10d6fd211b50", "directory_url": "/api/1/directory/e04b2a7b8a8838da0693e9fd992a10d6fd211b50/", "history_url": "/api/1/revision/594617d1cd9d9d6bc0cfbd531bbaa1ed19627e9b/log/", "id": "594617d1cd9d9d6bc0cfbd531bbaa1ed19627e9b", "merge": false, "message": ": Deposit 61 in collection hal", "metadata": { "{http://www.w3.org/2005/Atom}author": { "{http://www.w3.org/2005/Atom}email": "hal@ccsd.cnrs.fr", "{http://www.w3.org/2005/Atom}name": "HAL" }, "{http://www.w3.org/2005/Atom}client": "hal", "{http://www.w3.org/2005/Atom}external_identifier": "hal-01243573", "{http://www.w3.org/2005/Atom}id": "hal-01243573", "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}applicationCategory": "info.info-ro", "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}author": { "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}name": "Morane Gruenpeter" }, "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}codeRepository": "https://github.com/moranegg/AffectationRO", "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}dateCreated": "2017-11-16T14:54:23+01:00", "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}description": "Project in OR: The assignment problem A java implementation for the assignment problem first release", "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}developmentStatus": "etat", "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}identifier": "10.5281/zenodo.438684", "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}license": { "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}name": "GNU General Public License v3.0 or later" }, "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}name": "The assignment problem", "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}operatingSystem": "debian", "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}programmingLanguage": "AMPL", "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}runtimePlatform": "outil", "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}softwareVersion": "1.0.0", "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}url": "https://hal-test.archives-ouvertes.fr/hal-01243573", "{https://doi.org/10.5063/SCHEMA/CODEMETA-2.0}version": 1 }, "parents": [], "synthetic": true, "type": "tar", "url": "/api/1/revision/594617d1cd9d9d6bc0cfbd531bbaa1ed19627e9b/" }
Note: That deposit showed a missing step in the code. The author/committer fields being null (because the code used the client's unset data at the time). This has been fixed since (rDDEPdbcea995) and deployed.
- Morane Otilia Gruenpeter changed title from HAL-SWH: view deposit on web-app to HAL-SWH: verify deposit on web-app
changed title from HAL-SWH: view deposit on web-app to HAL-SWH: verify deposit on web-app
- Morane Otilia Gruenpeter changed the description
changed the description
- Morane Otilia Gruenpeter closed
closed
- Stefano Zacchiroli changed title from HAL-SWH: verify deposit on web-app to SWORD deposit: verify deposit on web-app
changed title from HAL-SWH: verify deposit on web-app to SWORD deposit: verify deposit on web-app