Skip to content

Conversation

@daniel-manta-hee
Copy link
Contributor

@daniel-manta-hee daniel-manta-hee commented Aug 15, 2022

When adding new supervisor, TempDataKey should be used for checking existing session.

JIRA link

https://hee-dls.atlassian.net/browse/DLSV2-604

Description

MultiPageFormService.cs uses feature.TempDataKey as key to find session in database. Attempting to pass feature instead of feature.TempDataKey would result in session not found and causes a redirection to "You don't have permission" page (http 403 forbidden).

Screenshots

https://localhost:44363/LearningPortal/SelfAssessment/1/Supervisors

image

Developer checks

  • Checked that session is retrieved correctly after applying the fix
  • Searched for other cases where TempData[MultiPageFormDataFeature is used instead of TempData[MultiPageFormDataFeature.TempDataKey causing similar error in other parts of the application

@kevwhitt-hee kevwhitt-hee merged commit ff4a61b into master Aug 15, 2022
@kevwhitt-hee kevwhitt-hee deleted the Develop/Fixes/DLSV2-604-MultiPageForms branch August 15, 2022 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants