IQSS / IQSS/dataverse

BuiltinUsers.KEY in setting table

Open
#10,173 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Bug
Dominant language
Java
Stars
1.1k
Forks
564
Avg merge
2d 2h
Merged PRs (30d)
29

Description

What steps does it take to reproduce the issue?
curl -d @user.json -H "Content-type:application/json" "http://localhost:8080/api/builtin-users?password=xxxx&key=xxxx"
Usually parameters in setting table defined as ":ParameterName", so for BuiltinUsers.KEY it would be ":BuiltinUsers.KEY". but in that case settingsSvc.get(API_KEY_IN_SETTINGS) does not find the key and user get a message "Dataverse config issue: No API key defined for built in user management" After changing the key to "BuiltinUsers.KEY" in setting table the API works.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing API_KEY_IN_SETTINGS and settingsSvc.get in the built-in user management API, then compare the key expected by the code with the key stored in the setting table. Reproduce the curl request from the issue and verify that the corrected setting allows the request to work without the API-key configuration error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, authentication, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.