pcdshub / pcdshub/hutch-python
BUG: 403 error from elog post after experiment switching
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1
- Forks
- 18
- Avg merge
- 7d 9h
- Merged PRs (30d)
- 1
Description
Hutch python shows a 403 authorization error after if scientists change active experiments. This is because the opr accounts only have privilege to post to active experiments. I suggest every elog.post request checks the current experiment instead of relying on a cached experiment at initialization.
Context / environment
Observed scientists in the hutch run into this error multiple times over the last week
Steps to Reproduce (for bugs)
- login to a hutch machine and start hutch python
- change the active experiment
- try elog.post
See photos
Suggested Solution
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 tracing elog.post and where the experiment is initialized or cached. Reproduce the reported sequence by switching the active experiment before posting, then verify that the request uses the current experiment and no longer returns a 403 authorization error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100