pcdshub / pcdshub/hutch-python

BUG: 403 error from elog post after experiment switching

Open
#405 8 comments 0 reactions 0 assignees View on GitHub

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)

  1. login to a hutch machine and start hutch python
  2. change the active experiment
  3. try elog.post
    See photos

Suggested Solution

Image Image

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.