IQSS / IQSS/dataverse

Excessive logging from :me endpoint

Open
#11,428 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Feature
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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.