New non-Docker installations still use deprecated BlockedApi* database settings
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
Summary
As of PR #11454 and the related upgrade guidance, :BlockedApiEndpoints, :BlockedApiPolicy, :BlockedApiKey, and :AllowCors are now deprecated and replaced by JVM settings (e.g. -Ddataverse.api.blocked.endpoints, etc.).
However, fresh non-Docker installations using the dvinstall script still initialize the deprecated database settings instead of the new JVM-based equivalents.
This leads to inconsistency:
- Upgraded instances will be encouraged to use JVM options
- Fresh installs will continue using deprecated DB settings
- Leads to potential confusion and maintenance overhead
Steps to Reproduce
- Spin up a fresh, non-Docker Dataverse installation from
develop - Run
curlcommands:curl http://localhost:8080/api/admin/settings/:BlockedApiEndpoints curl http://localhost:8080/api/admin/settings/:BlockedApiPolicy - Observe that deprecated DB settings are set, and JVM settings are not present.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the dvinstall path used for fresh non-Docker installations and trace where BlockedApiEndpoints, BlockedApiPolicy, BlockedApiKey, and AllowCors are initialized. Compare that setup with the JVM property names from the issue, then use the listed curl requests on a fresh installation to verify the deprecated settings are no longer initialized and the replacements are available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100