Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 500 on unlock-after-certification When a Record is Already Unlocked #4597

Closed
1 task
jperson1 opened this issue Jan 8, 2025 · 0 comments · Fixed by #4612
Closed
1 task

Bug: 500 on unlock-after-certification When a Record is Already Unlocked #4597

jperson1 opened this issue Jan 8, 2025 · 0 comments · Fixed by #4612
Assignees

Comments

@jperson1
Copy link
Contributor

jperson1 commented Jan 8, 2025

There appears to be a 500 error when a user attempts to unlock a record that is already unlocked.

See report "2024-06-GSAFAC-0000064645".

Stack trace:

  File "/home/vcap/deps/1/python/lib/python3.12/site-packages/django/views/generic/base.py", line 143, in dispatch
    return handler(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vcap/app/audit/views/unlock_after_certification.py", line 65, in post
    if sac_transition(request, sac, transition_to=STATUS.IN_PROGRESS):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vcap/app/audit/models/viewflow.py", line 50, in sac_transition
    flow.transition_to_in_progress_again()
  File "/home/vcap/deps/1/python/lib/python3.12/site-packages/viewflow/fsm/base.py", line 229, in __call__
    with TransitionBoundMethod.Wrapper(self, kwargs=kwargs):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vcap/deps/1/python/lib/python3.12/site-packages/viewflow/fsm/base.py", line 154, in __enter__
    raise TransitionNotAllowed(
viewflow.fsm.base.TransitionNotAllowed: Transition_To_In_Progress_Again :: no transition from "in_progress"

Tasks

Tasks

Preview Give feedback
@github-project-automation github-project-automation bot moved this to Triage in FAC Jan 8, 2025
@phildominguez-gsa phildominguez-gsa self-assigned this Jan 10, 2025
@phildominguez-gsa phildominguez-gsa moved this from Triage to In Progress in FAC Jan 13, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in FAC Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants