Call to session.stop() with side-effect in UpdateAccessTokenFilter.java
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 151
- Forks
- 183
- Avg merge
- 14m
- Merged PRs (30d)
- 2
Description
While reviewing the code in UpdateAccessTokenFilter.java I stumbled upon the following lines
which struck me as odd. In fact, session.stop() is called only twice in the whole WebAPI code base, both times in this UpdateAccessTokenFilter class. Given UpdateAccessTokenFilter's place in the grand scheme of filters configured, the above lines seem to always be called upon login, and result in an immediate end of the session that actually just started... The rest of the user interactions seem to continue based on token authentication alone.
Code blame shows that the code itself and the surrounding parts are many years old.
Questions:
- Would it be possible to find more details on why the
session.stop()was added here? - Do we need sessions at all?
Contributor guide
No contributing guide indexed for this repository
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/org/ohdsi/webapi/shiro/filters/UpdateAccessTokenFilter.java, especially lines 118-122, then inspect its filter configuration and the history around the session.stop() call. Determine why the session is stopped during login and whether sessions are required; done means a documented decision with the relevant behavior validated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- authentication, backend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100