IQSS / IQSS/dataverse

New non-Docker installations still use deprecated BlockedApi* database settings

Open
#11,553 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: Containers Original size: 10 Type: Bug
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
  1. Spin up a fresh, non-Docker Dataverse installation from develop
  2. Run curl commands:
    curl http://localhost:8080/api/admin/settings/:BlockedApiEndpoints
    curl http://localhost:8080/api/admin/settings/:BlockedApiPolicy
    
  3. Observe that deprecated DB settings are set, and JVM settings are not present.

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.