mburgknap / redmine-desktop-client

Automatically exported from code.google.com/p/redmine-desktop-client
0 stars 0 forks source link

Can't access redmine - internal server error #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch Redmine Desktop Client
2. Set user and password, set redmine version 1.4.x
3. click on Test Connect

What is the expected output? What do you see instead?
Expected output is something saying the connection is fine. I see an error 
dialog box stating internal server error.

Log of Redmine server is attached.

I tried manually on a browser the url http://mothra/redmine/users/current.xml 
and got the same internal error. Redmine server is otherwise working correctly 
and reliably. We can access it from other non-browser client (on iPad).

What version of the product are you using? On what operating system?

Client 2.0.5.0 on Windows 7 64 bit.
Server Redmine 1.4.4 on Ubuntu Server 12.10 (apache 2.2.22, ruby 4.9)

Version of Client:
Version of Redmine:

Please provide any additional information below.

Original issue reported on code.google.com by max...@gmail.com on 28 May 2013 at 2:58

Attachments:

GoogleCodeExporter commented 9 years ago
If you try to access it via webbrowser and it gives the same error, maybe your 
url is incorrect? Did you try to add/remove the redmine part?
Maybe it is
http://mothra/users/current.xml
or
http://mothra/redmine/redmine/users/current.xml
in my case the redmine url is http://server/redmine/users/current.xml
but when I go to http://server/users/current.xml I get an internal server error.
Please let me know if you can find the solution.

Original comment by bas.them...@gmail.com on 6 Jun 2013 at 7:11

GoogleCodeExporter commented 9 years ago
The URL should be correct. In fact I am able to access redmine pointing the 
browser at http://mothra/redmine. Also, by reading the log (Processing 
UsersController#show to xml (for 192.168.10.46 at 2013-05-28 16:45:40) [GET]
Parameters: {"controller"=>"users", "action"=>"show", "id"=>"current", 
"format"=>"xml"}) I'm confident the address is correct.

And if I point my browser to http://mothra/redmine/users/current (note without 
.xml extension) I correctly receive my user information/settings page.

Interestingly enough I managed to get the json version of the information by 
the URL: http://mothra/redmine/users/current.json . Therefore it seems 
something very related to the xml format.

Maybe this is a bug/feature in the specific version of redmine I'm using?

Original comment by max...@gmail.com on 6 Jun 2013 at 8:23

GoogleCodeExporter commented 9 years ago
OK, from your info it looks like a bug in redmine.
I'll see if I can switch to json internally.

Original comment by bas.them...@gmail.com on 6 Jun 2013 at 8:27

GoogleCodeExporter commented 9 years ago
Please try attached version.
In the settings dialog you can select the communication type (xml/json)

Original comment by bas.them...@gmail.com on 6 Jun 2013 at 9:05

Attachments:

GoogleCodeExporter commented 9 years ago
Ok, definitively a step in the good direction. I am able to get the message 
"Initiating the connection with Redmine was successful." after pressing "Test 
Connection", but then I get two "Exception: Internal Server Error." dialogs.

Maybe there are still sections of the code that rely on xml?

Original comment by max...@gmail.com on 6 Jun 2013 at 9:20

GoogleCodeExporter commented 9 years ago
Hmm yeah, you're right...

Original comment by bas.them...@gmail.com on 6 Jun 2013 at 9:25

Attachments:

GoogleCodeExporter commented 9 years ago
Bingo!! Works great!
Thank you.

Original comment by max...@gmail.com on 6 Jun 2013 at 9:35

GoogleCodeExporter commented 9 years ago
Thanks for testing!
Will also be included in next official release.

Original comment by bas.them...@gmail.com on 6 Jun 2013 at 9:40