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

Bad date value JSONException when using Redmine 3.0.0.stable #180

Closed
a11n opened this issue Mar 9, 2015 · 5 comments
Closed

Bad date value JSONException when using Redmine 3.0.0.stable #180

a11n opened this issue Mar 9, 2015 · 5 comments
Milestone

Comments

@a11n
Copy link
Contributor

a11n commented Mar 9, 2015

I am running a Redmine server on OS X 10.10 with the following specification:

Environment:
  Redmine version                3.0.0.stable
  Ruby version                   2.0.0-p598 (2014-11-13) [x86_64-darwin10.0.0]
  Rails version                  4.2.0
  Environment                    production
  Database adapter               Mysql2                
Redmine plugins:
  no plugin installed

(It's basically this stack from bitnami)

However, I am facing this exception (com.taskadapter:redmine-java-api:2.1.0):

com.taskadapter.redmineapi.RedmineFormatException: org.json.JSONException: Bad date value 2015-03-09T17:41:16.000GMT-00:00
    at com.taskadapter.redmineapi.internal.Transport.parseResponse(Transport.java:563)
    at com.taskadapter.redmineapi.internal.Transport.getCurrentUser(Transport.java:198)
    at com.taskadapter.redmineapi.UserManager.getCurrentUser(UserManager.java:22)

I have seen that there was a similar issue in the past, but this was considered as resolved.

Maybe my server is misconfigured?! Or is it an issue with the API for Redmine versions > 3?

@alexeyOnGitHub
Copy link
Member

This will probably be fixed by pull request #175

@alexeyOnGitHub alexeyOnGitHub added this to the 2.1.1 milestone Mar 9, 2015
@a11n
Copy link
Contributor Author

a11n commented Mar 10, 2015

Oups, my bad. Only checked the issues if this problem is known. O:-)

Anyways, it would be interesting to know if this is a general problem with this library and Redmine versions > 3.0 or if it only occurs in conjunction with the bitnami stack, which will of course also affect every software depending on this library.

@alexeyOnGitHub
Copy link
Member

my guess is that it affects all Redmine 3.x versions.

@alexeyOnGitHub
Copy link
Member

I submitted a feature request to Redmine developers:
http://www.redmine.org/issues/19354 expose all date formats used by Redmine REST API

@a11n
Copy link
Contributor Author

a11n commented Mar 12, 2015

One slight update, I installed Redmine 2.6.2.stable and don't encounter aforementioned behavior. So I also think it's related to Redmine 3.x. Thank you for the quick patch so far.

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

No branches or pull requests

2 participants