Repository navigation
Conversation
VTOP no longer sets a SERVERID cookie; only JSESSIONID is returned. ValidateCookies, the login validator and the semester-details check still required SERVERID, so every successful login was discarded and users saw "Unable to log in" even with correct credentials. Treat a session as valid when CSRF and JSESSIONID are present.
fix: don't require SERVERID cookie for a valid VTOP session
Signed-off-by: theg1239 <thegreatestdropper@gmail.com>
Signed-off-by: theg1239 <thegreatestdropper@gmail.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
|
||
| func ValidateCookies(cookies types.Cookies) bool { | ||
| return cookies.CSRF != "" && cookies.JSESSIONID != "" && cookies.SERVERID != "" | ||
| return cookies.CSRF != "" && cookies.JSESSIONID != "" |
There was a problem hiding this comment.
Login fix lacks regression tests
The newly accepted session without SERVERID has no test coverage. Add cases for ValidateCookies, ValidateLogin, uncached GetSemDetails, and session refresh using only CSRF and JSESSIONID, plus cases missing each required token. Otherwise, any one of these separate guards could restore the old login failure without failing the tests.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
spent a lot of water and tokens to review your slop
The PR appears safe to merge, with a non-blocking request for regression tests.
Summary
Makes
SERVERIDoptional in all three local session checks and bumps the release to2.12.2.Reviews (1) · Last reviewed commit: "Update version from 2.12.1 to 2.12.2" · Reviewed by Greptile