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

Redmine Groups API is restricted to admin users #1

Open
24367dfa opened this issue Sep 19, 2021 · 6 comments
Open

Redmine Groups API is restricted to admin users #1

24367dfa opened this issue Sep 19, 2021 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@24367dfa
Copy link

Checking for the API-Tokens users groups returns an empty list unless the current user has Admin rights on the corresponding Redmine server.

for group in rm_user.groups:

Redmine API docs: https://www.redmine.org/projects/redmine/wiki/Rest_Groups

The only solution for that problem i can think of is putting a valid api token with admin rights into the deployment. This is obviously not a good one.

@penguineer
Copy link
Owner

I believe that is a problem that needs to be solved on the Redmine side. :(

There is no API key in the deployment. The tool works with a key that is provided by the caller and otherwise configuration- and state-less.

@penguineer penguineer added the help wanted Extra attention is needed label Sep 19, 2021
@penguineer
Copy link
Owner

I've put that as "help wanted" - but the help must be applied to Redmine or another method for accessing the groups be found.

@24367dfa
Copy link
Author

I still think that limitation should be commented in the code or in somewhere else in the interface. Otherwise users of the service won't notice issues that are assigned to their groups. Especially when exclusively using this service to interact with the issue tracker.

@penguineer
Copy link
Owner

I'm still thinking how to do this.

The RedmineActionablesCollector is tied to Redmine, obviously. But the result is not and the only reference to Redmine is the URI field in the header.

I might add a comment (or even warning?) saying that groups are broken for Redmine, other than that a Redmine-specific effect on the Result would break the API.

@penguineer
Copy link
Owner

First step on the Redmine side: https://www.redmine.org/issues/12795

penguineer added a commit that referenced this issue Jul 16, 2022
This might be due to missing groups in the API result if the user
does not have administrative rights.

#1
penguineer added a commit to penguineer/ActionablesWeb that referenced this issue Jul 17, 2022
@penguineer
Copy link
Owner

This problem is partially solved in https://github.com/penguineer/RedmineActionablesCollector/releases/tag/v0.2.0 and https://github.com/penguineer/ActionablesWeb/releases/tag/v0.3.0

For a complete solution changes to the Redmine API are necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants