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: Forbidden #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to connect to Redmine V2.0.3 with Redmine Client 2.0.6.0

When setting up the Redmine Server Settings, and initiating "Test Connection", 
a window says "Initiating the connection with Redmine was successful".

But when closing the Settings window, the Window Title says "Redmine Client - 
[User Name] - Retrieving form data..." and a window pops up saying "Startup 
error. Check Configuration." and "Exception: Forbidden".

This happens with xml and json.

The biggest issue here is that this error message is quite cryptic and doesn't 
give any insight in what is the problem.

Original issue reported on code.google.com by floriang...@gmail.com on 15 Oct 2013 at 11:39

GoogleCodeExporter commented 9 years ago
I found this in a completely unrelated documentation:

403 Forbidden - Raise if the user doesn’t have the permission for the 
requested resource but was authenticated.

This is correct as I was authenticated, but apparently there is something the 
Redmine Client is not allowed to access.

Original comment by floriang...@gmail.com on 15 Oct 2013 at 11:43

GoogleCodeExporter commented 9 years ago
In version 2.0.7.0 you should get a more clearer error message about the item 
that is forbidden for your user.

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

GoogleCodeExporter commented 9 years ago
The more verbose error message is now:

"Startup error. Check Configuration.

Exception while loading Categories: Fordbidden"

I am not admin, and I don't have access to everything. I only would like to use 
Redmine Client to access the stuff, including the Categories, that I am able to 
access.

So I guess the client would have to check what it can access and what it can't, 
and then ignore the parts it can't access?

Original comment by floriang...@gmail.com on 13 Nov 2013 at 2:23

GoogleCodeExporter commented 9 years ago
Hi,

I´m having the same problem. Does it have a solution? What should be enabled 
to work?

Original comment by juli.sch...@gmail.com on 18 Jun 2014 at 8:33

GoogleCodeExporter commented 9 years ago
Hello everybody.

I'm having the some issue.
I'm using a version 1.3.2 (vm) and when I connect as a admin user choosing 
redmine version 1.3.x or higher I can see everything without category drop box. 
Activity and Priority dropboxes are ok.

If I choose 1.2.x or early versions I can't see that dropboxes populated.

If I log in with a user that isn't administrator I can't log in with 1.3.x 
version or higher. As a early version I can't see populated again.

And yes, I filled the Activities, Doc. Cat. and Priorities clicking 
respectively buttons in the settings window.

Original comment by jeanmore...@gmail.com on 15 Jul 2014 at 1:13

Attachments:

lightman17 commented 7 years ago

The user have no permission to manage issue_categories for the first project in project list. received from redmine. To retrieve the issue categories, the client uses this project. If your role on this project have not thos permission, the exception is thrown. i.E. from htttp://redminehost/projects.json the first project has project_id=137 then and i am only reporter on this project. (no permission to manage issue categories) http://redminehost/projects/137/issue_categories.json receives an empty page in browser and the state forbiden.