Tuleap Community Edition development and releases are no longer public. You have until September 30th to download packages and sources in Tuleap project. You can contact the team if you need further assistance.

    •  
      request #26778 Parent artifacts REST route sometimes does not return any JSON
    Infos
    #26778
    Joris MASSON (jmasson)
    2022-05-11 09:39
    2022-05-10 17:31
    28310
    Details
    Parent artifacts REST route sometimes does not return any JSON

    The REST route /trackers/{id}/parent_artifacts, which is used to retrieve a list of suggested parents for an artifact of the given tracker, handles poorly cases where this list is empty. When the given tracker has no hierarchy and is not in a SAFe Program, when there are no "suggested parents" to return, it forgets to return any JSON. Worse, it also forgets to send pagination headers (X-PAGINATION-SIZE), which breaks our frontend client code handling paginated routes.

    It should return an empty JSON array [] and headers with size = 0 when there are no "suggested parents".

    API
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2022-05-11
    Attachments
    Empty
    References
    Referenced by request #26778

    Follow-ups