Page MenuHomeSoftware Heritage

Test and review the deposit on HAL with SWHID scenario
Started, Work in Progress, HighPublic

Description

We will be launching a beta test for researchers on April 7th.
Before doing so we need to make sure that production on HAL-Inria and on SWH are ready for the deposits.

In this task we will flag errors and bugs found to send to HAL.

Event Timeline

moranegg triaged this task as High priority.
moranegg created this task.

In moderation on HAL:

  1. On HAL preprod when moderating it is impossible to change the SWHID on both:
    • the moderation view
    • the edit view
  2. The error from SWH is impossible to understand and shown on the moderator's interface
  1. When getting the wrong SWHID (an in production SWHID which is not on staging) it will show as "SWORD SWH response: Bad request "
moranegg changed the task status from Open to Work in Progress.Apr 7 2022, 11:58 AM
moranegg moved this task from Backlog to In progress on the SWORD deposit board.

We have different errors at the moment:
When depositing a zip.:

 SWORD SWH response: rejected- failed validating with Xsd11Group(model='all', occurs=[1, 1]): Reason: Unexpected child with tag 'swh:create-origin' at position 1. Schema: ... ... Instance: https://inria.halpreprod.archives-ouvertes.fr/hal-02527986 Path: /{https://www.softwareheritage.org/schema/2018/deposit}deposit (swh:deposit) https://deposit.staging.swh.network/1/hal-preprod/1066/status/

Annotation - rejected- failed validating <Element '{https://www.softwareheritage.org/schema/2018/deposit}deposit' at 0x7fdf5a2a6e58> with Xsd11Group(model='all', occurs=[1, 1]): Reason: Unexpected child with tag 'swh:create-origin' at position 1. Schema: <xsd:complexType xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:all> <xsd:element minOccurs="0" name="create_origin"> <xsd:complexType> <xsd:sequence> <xsd:element ref="swh:origin" /> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element minOccurs="0" name="add_to_origin"> <xsd:complexType> <xsd:sequence> <xsd:element ref="swh:origin" /> </xsd:sequence> </xsd:complexType> </xsd:element> ... ... </xsd:complexType> Instance: <swh:deposit xmlns:ns1="https://schema.org/" xmlns:swh="https://www.softwareheritage.org/schema/2018/deposit"> <swh:create-origin> <swh:origin url="https://inria.halpreprod.archives-ouvertes.fr/hal-02527986" /> </swh:create-origin> <swh:metadata-provenance> <ns1:url>https://inria.halpreprod.archives-ouvertes.fr/hal-02527986</ns1:url> </swh:metadata-provenance> </swh:deposit> Path: /{https://www.softwareheritage.org/schema/2018/deposit}deposit (swh:deposit)

When depositing metadata-only

  • the deposit stays as partial and on HAL there is this error: SWORD SWH response: Bad request