Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mismatching request and response date encoding #47

Open
moutend opened this issue Aug 17, 2017 · 0 comments
Open

Mismatching request and response date encoding #47

moutend opened this issue Aug 17, 2017 · 0 comments

Comments

@moutend
Copy link

moutend commented Aug 17, 2017

This issue is not a backlog4j specific, but I don't know where should I report it, so that I created this issue.

I tried creating an issue with dueDate parameter by using curl command:

curl -X POST "https://xxx.backlog.jp/api/v2/issues?apiKey=xxx&dueDate=2017-08-24T12%3A00%3A00Z&description=test&issueTypeId=xxx&priorityId=3&projectId=xxx&summary=test"

The response was:

{
  "errors": [
    {
      "message": "error.date : dueDate",
      "code": 7,
      "moreInfo": ""
    }
  ]
}

When I call the issues API, the date included in response seems to be encoded by RFC3339, but the 2017-08-24T12:00:00Z is rejected.

I spent a few hours for investigating and I found that the date without T..Z is correct for request parameter.

# Works
curl -X POST "https://xxx.backlog.jp/api/v2/issues?apiKey=xxx&dueDate=2017-08-24&description=test&issueTypeId=xxx&priorityId=3&projectId=xxx&summary=test"

I think this behavior should be documented or fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant