Server Log: Errors relating to metadata block caused by character in properties file
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
There are a some cases of character issues in metadata block .properties files that cause verbose logging errors. This issue is about two things: 1. fixing the specific character issues in the .properties files and 2. improving the doc to note the character issue, to use the form key= rather than key: per this discussion between @pdurbin and a community member:
https://groups.google.com/g/dataverse-community/c/ynwdA2A4lYw/m/0rOvouG5AgAJ
Metadatablocks with these issues and associated warnings: MRA and GSD:
MRA Warning/error in logs:
Payara 5.2021.5] [WARNING] [] [edu.harvard.iq.dataverse.ControlledVocabularyVal
ue] [tid: _ThreadID=314 _ThreadName=http-thread-pool::jk-connector(15)] [timeMillis: 1644991231432] [levelValue
: 900] [[
Error findingcontrolledvocabulary.mraCollection.diversity_samples:_race,_ethnicity,_sexual_orientation,_relig
ion in defaultLang : Can't find resource for bundle java.util.PropertyResourceBundle, key controlledvocabulary.
mraCollection.diversity_samples:_race,_ethnicity,_sexual_orientation,_religion]]
From @pdurbin (thanks!)
Open an issue, perhaps. Here's the line to remove the colon from: https://github.com/IQSS/dataverse/blob/v5.9/src/main/java/propertyFiles/customMRA.properties#L6
customMRA.properties
controlledvocabulary.mraCollection.diversity_samples:_race,_ethnicity,_sexual_orientation,_religion=Diversity samples: Race, Ethnicity, Sexual Orientation, Religion
GSD:
[2022-02-22T19:10:06.415+0000] [Payara 5.2021.5] [WARNING] [] [edu.harvard.iq.dataverse.ControlledVocabularyValue] [tid: _ThreadID=94 _ThreadName=http-thread-pool::jk-connector(3)] [timeMillis: 1645557006415] [levelValue: 900] [[
Error findingcontrolledvocabulary.gsdCourseName.01101:_first_semester_core:_project in defaultLang : Can't find resource for bundle java.util.PropertyResourceBundle, key controlledvocabulary.gsdCourseName.01101:_first_semester_core:_project]]
[2022-02-22T19:10:06.415+0000] [Payara 5.2021.5] [WARNING] [] [edu.harvard.iq.dataverse.ControlledVocabularyValue] [tid: _ThreadID=94 _ThreadName=http-thread-pool::jk-connector(3)] [timeMillis: 1645557006415] [levelValue: 900] [[
Error findingcontrolledvocabulary.gsdCourseName.01102:_second_semester_core:_situate in defaultLang : Can't find resource for bundle java.util.PropertyResourceBundle, key controlledvocabulary.gsdCourseName.01102:_second_semester_core:_situate]]
etc, for each course name
When do they occur, how to reproduce?
- language does not need to be enabled, default config is fine
- have mra and gsd blocks configured and enabled on a dataverse, either root or a sub dv
- create a dataset
- edit dataset metadata, this will kick off all the .properties files errors.
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 src/main/java/propertyFiles/customMRA.properties, especially the line linked in the issue, and inspect the corresponding GSD metadata properties entries. Reproduce by enabling the MRA and GSD blocks, creating a dataset, and editing its metadata; done means the reported warnings are gone and documentation notes the character and key=value requirements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100