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

Exception : No projects found in redmine. #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. After giving web address,username and password.
2. Successfully connect and give the following error.

What is the expected output? What do you see instead?

ERROR : Exception : No projects found in redmine. after connection

What version of the product are you using? On what operating system?
Version of Client: 2.0.6.0
Version of Redmine: 2.2x

OS: windows 7 x64 (Run as administrator)

Please provide any additional information below.

We have 10 + project configured on redmine.

Original issue reported on code.google.com by getinde...@gmail.com on 24 Aug 2013 at 9:08

GoogleCodeExporter commented 9 years ago
Is the user you use a member of the mentioned projects?
Only projects a user is a member of will be retrieved.

Original comment by bas.them...@gmail.com on 28 Aug 2013 at 12:34

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yes, user is a member of 8 projects. And i do tried with admin account also but 
same problem.

Original comment by getinde...@gmail.com on 2 Sep 2013 at 3:41

GoogleCodeExporter commented 9 years ago
Yes, We have the same problem too...

Original comment by sks...@gmail.com on 4 Oct 2013 at 9:34

GoogleCodeExporter commented 9 years ago
In the release of V2.0.7.0 you can check to retrieve all projects. Maybe this 
solves your issue?

Original comment by bas.them...@gmail.com on 25 Oct 2013 at 9:08

GoogleCodeExporter commented 9 years ago
I have downloaded the release, but same issue. 
Please refer to the attachment.

One more thing to add in redmine server is installed from 
http://www.turnkeylinux.org/redmine.

Original comment by getinde...@gmail.com on 27 Oct 2013 at 4:58

Attachments:

GoogleCodeExporter commented 9 years ago
Do you get a (xml) response containing projects when you request the following 
URL?

http://redmine/redmine/projects.xml

-Where the first 'http://redmine/redmine' is the url you enter in the settings 
dialog?

Original comment by bas.them...@gmail.com on 28 Oct 2013 at 8:28

GoogleCodeExporter commented 9 years ago
Response i am getting from "http://redmine.domain.com/projects.xml" is a below,

<projects type="array" total_count="0" offset="0" limit="25"/>

Base url for setting i am using http://redmine.domain.com/

Do i need to change any settings to get project list from projects.xml.  
Already i am using atom feed without any problems.

Original comment by getinde...@gmail.com on 2 Nov 2013 at 12:15

GoogleCodeExporter commented 9 years ago
Update,

But i am getting project detials by using following url

http://redmine.domain.com/projects/10.xml

Original comment by getinde...@gmail.com on 2 Nov 2013 at 12:27

GoogleCodeExporter commented 9 years ago
Hi,

I have done some R&D and found project links working with API key as below

http://redmine.domian.com/projects.xml?key=(API KEY)

And it shows all projects assigned to the ID with the above (API KEY)
I hope next release will solve our issue. :)

Original comment by getinde...@gmail.com on 4 Nov 2013 at 10:29

GoogleCodeExporter commented 9 years ago
Did you try to enter the api key in the username field (you can leave password 
empty)

Original comment by bas.them...@gmail.com on 4 Nov 2013 at 1:39

GoogleCodeExporter commented 9 years ago
Yes tried, connection test reports successfully connected but same issue with 
project list(0 project in redmine).

Original comment by getinde...@gmail.com on 5 Nov 2013 at 11:35

GoogleCodeExporter commented 9 years ago
Hi all.
I've got the same problem.
My redmine is 2.3.3 running on windows7, client on windows xp sp3.
I try clients 2.0.7.0 and 2.0.7.1; login+password or API-key; xml or json; 
different redmine versions.
Every combination gives me successful connection test.

But when I try to save, I get an error: "Ссылка на объект не 
указывает экземпляр объекта" (in russian), that means: 
"Object reference does not set to an instance of an object".
And after closing setting window I get "Exeption  white retrieving form data: 
no projects found in Redmine for this user. (0 projects in redmine)".

"http://myredmine.com/projects.xml" gives me 
<projects type="array" total_count="0" offset="0" limit="25"/>
"http://myredmine.com/projects.xml?key=<my API key>" gives me 
<projects total_count="3" offset="0" limit="25" type="array">
with detailed description.

Original comment by mikhail....@gmail.com on 5 Nov 2013 at 1:56

GoogleCodeExporter commented 9 years ago
Now I've found my error.
I swithed on "authentication authentication" option in my Redmine server 
settings and clients 2.0.7.0 and 2.0.7.1 became workable (with 2.1.x Redmine 
version at Settings).
An error: "Object reference does not set to an instance of an object" remains 
when I save settings.

Original comment by mikhail....@gmail.com on 5 Nov 2013 at 3:43

GoogleCodeExporter commented 9 years ago
Hi Mikhail,

That solved my issue. cheers.

Original comment by getinde...@gmail.com on 6 Nov 2013 at 2:38

GoogleCodeExporter commented 9 years ago
Requiring authentication seems like a bad fix, I can no longer have public 
projects

Original comment by john.b...@gmail.com on 10 Dec 2013 at 4:28