Bug: Can access "Create Project" even with an expired session #1841
Labels
bug
Release Note: Shows as Error Correction
level: medium
p-feature: Project Page p1
Users Define Project including AIN, Adress, Ect. /calculation/1
priority: MUST HAVE
role: front-end
Front End Developer
size: 2pt
Can be done in 7-12 hours
Milestone
Describe the bug
I can access the "Create Project" page even with an expired session which should not be possible. I can put all the details for the project but when I try to save the project on any page by clicking the "Save Project" button, I get logged out, redirected to the Login page (the "Leave page and delete unsaved data" warning is displayed first), and get the expired session notification.
Because the bug allows user to use the calculator when the session has expired, the entered data is lost when user finally tries to save.
Currently affects the tdmdev login - Admin ([email protected]) account, unsure if more users are affected.
Steps to reproduce the issue
Login to the dev site.
Go to "Create Project" page.
Wait for the session to expire or "Expire" the session using dev tools.
Instructions for using Chrome Dev tools to expire the session
https://tdm-dev.azurewebsites.net/
" if not already selected.jwt
".jwt
" item.2024-09-12T07:44:24.722Z
, change it to2024-09-11T07:44:24.722Z
.jwt
" item will disappear from the list.Navigate to "About" page then go back to the "Create Project" page.
What's the expected result?
After the last step, clicking on the "Create Project" button should cause the user to be logged out and:
What's the actual result?
The user can still enter all the details and is never notified that the project will not be saved at the end. Only when the user clicks the "Save Project" button, they are logged out and expired session notification is displayed.
Additional details / screenshot
An image of the page 5, notice that the user is still shown as logged in and the summary page is displayed
An image of warnings diplayed when "Save Project" is clicked.
Device configuration
The text was updated successfully, but these errors were encountered: