•  
      request #13442 EndPoint POST /projects template_id=1 strange behavior
    Infos
    #13442
    David ROGER (droger)
    2019-06-05 15:38
    2019-06-02 16:42
    14555
    Details
    EndPoint POST /projects template_id=1 strange behavior
    On the EndPoint POST /projects, when the parameter template_id is equal to 1, the response code is 500 and the project appear on the "pending project" list of the administration panel.
    Instead of this, the response code should be 400 and the message: "Template #1 is not valid" should be returned.

    The request used to reproduce:
    curl -X POST --header 'Content-Type: application/json' --header 'Accept: text/html' -d '{
    "shortname": "string",
    "description": "string",
    "label": "string",
    "is_public": true,
    "template_id": 1
    }' 'https://localhost/api/projects'
    API
    11.2
    CentOS 6
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Acknowledged
    Empty
    Attachments
    References
    References list is empty

    Follow-ups

    User avatar
    David ROGER (droger)2019-06-04 19:12
    Hello,

    I currently work on Tuleap 11.2.99.8.
    I join the PHP FPM file logs in attachment.