`dataverse_json` export contains `storageIdentifier`, which exposes internal configuration properties
Nobody has claimed this yet.
- 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?
Export a dataset as datavers_json. For example: https://dataverse.harvard.edu/api/datasets/export?exporter=dataverse_json&persistentId=doi%3A10.7910/DVN/EJLMJH
-
When does this issue occur?
When I export a dataset asdatavers_json. For example: https://dataverse.harvard.edu/api/datasets/export?exporter=dataverse_json&persistentId=doi%3A10.7910/DVN/EJLMJH -
Which page(s) does it occurs on?
On every dataset page when I export asdatavers_jsonand also within the export API. -
What happens?
The export contains the propertiesstorageIdentifier, which is not really useful fo end users and exposes internal storage configuration to the public. For example:
storageIdentifier: "s3://10.7910/DVN/EJLMJH"
datasetVersion : {
storageIdentifier : "s3://10.7910/DVN/EJLMJH"
}
files :[
{
dataFile {
storageIdentifier : "s3://dvn-cloud:193d764e846-2fc4cee84513"
}}]
-
To whom does it occur (all users, curators, superusers)?
all users -
What did you expect to happen?
That thestorageIdentifieris not part of thedataverse_json-export
Which version of Dataverse are you using?
6.5
Any related open or closed issues to this bug report?
I found none.
Are you thinking about creating a pull request for this issue?
Yes.
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 by reproducing the export through the datasets/export API with exporter=dataverse_json and the example persistent ID. Trace the dataverse_json exporter and its existing tests to identify where storageIdentifier is included. Done means the export API and dataset-page export omit storageIdentifier while retaining the other expected metadata.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100