TheMagician1 / redmine-desktop-client

A port of the original RedmineClient to use the REST API of Redmine
http://themagician1.github.io/redmine-desktop-client/
30 stars 12 forks source link

Mismatched date format submitting time to Redmine V2.x #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Commit spent time

What do you see instead?
Exception: TimeEntry has invalid or missing attribute parameters: Date can't be 
blank

What version of the product are you using? On what operating system?
Version of Client: 2.0.4.0
Version of Redmine: 2.2.3

It looks like there are issues regarding the date format. It doesn't matter 
what language is set in Redmine client settings, in the date field the date 
format is always local (Czech) - but this is probably OK. However, when trying 
to commit the spent time to Redmine server, the exception is raised. The 
Redmine server user language preference is set to English. I also tried to set 
the language preference (on Redmine server) to the local language (Czech) but 
it is the same. I also have to note that I have upgraded the Redmine server 
from 1.4.4 to 2.2.3 recently. I think it was OK before.

Original issue reported on code.google.com by martin.gruber@email.cz on 15 Mar 2013 at 8:43

GoogleCodeExporter commented 9 years ago
It seems like an API problem.
Maybe the API got more strict.
I have changed the API interface to only commit the date (and not the date/time)

Could you try attached version?

Original comment by bas.them...@gmail.com on 21 Mar 2013 at 12:24

Attachments:

GoogleCodeExporter commented 9 years ago
The attached version cannot be launched, it just starts and immediately exits 
without any notice, the windows event viewer reports:

1) .NET Runtime error (The process was killed because of unhandled exception: 
System.InvalidOperationException

Stack:
   in System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(Boolean)
   in Redmine.Client.Program.Main()

2) Application error:
Name of error module KERNELBASE.dll, version: 6.1.7601.18015
Exception code:  0xe0434352
Path to the error module: C:\Windows\system32\KERNELBASE.dll

I have Windows in Czech so I tried to translete the text to English as far as I 
can...

I have Windows 7 64bit Professional if it helps.

Original comment by martin.gruber@email.cz on 21 Mar 2013 at 3:05

GoogleCodeExporter commented 9 years ago
Strange.. Created a new build which catches this exception.

Original comment by bas.them...@gmail.com on 22 Mar 2013 at 11:24

Attachments:

GoogleCodeExporter commented 9 years ago
Version 2.0.4.2 can be launched but the original problem persists:
Exception: TimeEntry has invalid or missing attribute parameters: Date can't be 
blank

Original comment by martin.gruber@email.cz on 22 Mar 2013 at 3:47

GoogleCodeExporter commented 9 years ago
I looks like a problem in redmine 2.2.3. I have just been able to test it 
myself. I'll check if the problem still exists in 2.3.

Original comment by bas.them...@gmail.com on 26 Mar 2013 at 3:29

GoogleCodeExporter commented 9 years ago
The problem is in Redmine 2.3 too (I have just upgraded). However, the 
exception message is more specific:

TimeEntry has invalid or missing attribute parameters: Date can't be blank
Date is not a valid date

Original comment by martin.gruber@email.cz on 28 Mar 2013 at 3:43

GoogleCodeExporter commented 9 years ago
OK, thank you for testing.
I'll collect logs from Redmine and will create an issue at redmine.org

Original comment by bas.them...@gmail.com on 28 Mar 2013 at 3:52

GoogleCodeExporter commented 9 years ago
I've changed the api to a fixed Date-format, like with issues and for me the 
problem seems to be solved.

Could you verify the attached build?

Original comment by bas.them...@gmail.com on 16 Apr 2013 at 10:25

Attachments:

GoogleCodeExporter commented 9 years ago
The attached version cannot be launched (Windows message window 'RedmineClient 
stop working').

From VS (when trying to debug the program) I was able to get the following:

An unhandled exception of type 'System.InvalidOperationException' occurred in 
System.Windows.Forms.dll

From the Windows event viewer it looks like the same exception I mentioned in 
comment #2.

Original comment by martin.gruber@email.cz on 16 Apr 2013 at 12:19

GoogleCodeExporter commented 9 years ago
Hmmm, sorry.

Try again...

Original comment by bas.them...@gmail.com on 16 Apr 2013 at 12:29

Attachments:

GoogleCodeExporter commented 9 years ago
Well, I successfully commited a time entry. Thank you very much!

Original comment by martin.gruber@email.cz on 17 Apr 2013 at 7:01

GoogleCodeExporter commented 9 years ago
Good to hear. I submitted the fix to the API developers

Original comment by bas.them...@gmail.com on 17 Apr 2013 at 9:02

GoogleCodeExporter commented 9 years ago
Fixed with revision 242

Original comment by bas.them...@gmail.com on 20 Apr 2013 at 10:05