•  
      request #24240 Wrong error message when typo in artlink type
    Infos
    #24240
    Nicolas Terray (nterray)
    2021-12-31 10:10
    2021-12-30 16:38
    25773
    Details
    Wrong error message when typo in artlink type

    When you want to update the artifact 37109 to add new artifact links and you make a typo for a given type (e.g fixed_id instead of fixed_in)

    curl -X 'PUT' \
      'https://tuleap-web.tuleap-aio-dev.docker/api/artifacts/37109' \
      -H 'accept: application/json' \
      -H 'Content-Type: application/json' \
      -d '{
      "values": [
        {
          "field_id": 41990,
          "type": "art_link",
          "links": [
            { "id": 37108 },
            { "id": 37110, "type": "fixed_id" },
            { "id": 37111, "type": "depends_on" }
          ]
        }
      ]
    }'
    

    You get the following error message: Internal Server Error: Type is missing for artifact #37109.

    This is disturbing because we are currently updating the artifact 37109… The expected error message should be Internal Server Error: Type is missing for artifact #37110.

    API
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Nicolas Terray (nterray)
    Closed
    2021-12-31
    Attachments
    Empty
    References

    Follow-ups