Excessive logging from :me endpoint
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
Overview of the Feature Request
The line https://github.com/IQSS/dataverse/blob/85999938f4e1b196d35671c8f08b7324dda6f98d/src/main/java/edu/harvard/iq/dataverse/api/Users.java#L202 prints the stack trace in the log whenever someone calls the /api/users/:me endpoint w/o proper credentials. Since this is a 'normal' occurrence rather than a SEVERE issue, it's not clear to me that this needs to be logged at all. If so, it shouldn't print the stack trace and could probably be FINE or at worst a one-line warning.
What inspired the request?
Reading the logs on beta.dataverse.org
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 in src/main/java/edu/harvard/iq/dataverse/api/Users.java around line 202 and inspect the logging performed when /api/users/:me is called without credentials. Reproduce that request and verify the completed change no longer emits an unnecessary stack trace, using the logging level or format selected for this request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, authentication
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100