-
Notifications
You must be signed in to change notification settings - Fork 13.1k
[FIX] Admin page crashing when commit hash is null #22057
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
Conversation
…ite/create_disc * 'develop' of github.com:RocketChat/Rocket.Chat: (27 commits) [IMPROVE] Preview message URLs only once (#22516) [FIX] Admin page crashing when commit hash is null (#22057) [FIX] Unnecessary space on members list footer (#22514) Chore: Review some dependencies (#22522) Chore: Meteor 2.2 and bump dependencies (#22399) Chore: Remove Sodium from the main client (#22459) [FIX] Prune messages from particular user(s) (#22506) [FIX] Livechat apps permission error (#22511) [IMPROVE] Message deletion modal #22508 Update README.md Update README.md [IMPROVE] Add pagination to tags, and improve current Agents pagination [FIX] Rewrite CurrentChats to TS (#22424) [FIX] Sort AutocompleteDepartmentsMultiple (#22419) [FIX] Put title into AutocompleteDepartment components (#22417) [FIX] Bugs in AutoCompleteDepartment (#22414) [FIX] Closed chats doesn't show who picked the call (#22368) [FIX] Omnichannel Real Time Monitoring chart not displaying chats-per-agent and chats-per-department (#22406) [IMPROVE] Paginated multiselect for EE tags (#22315) [FIX] Units Edit and adds the option to hide own department in useDepartmentList ...
|
I have similar issue with node version on my test deployment |
|
can you create an issue with more information about it, please @ankar84? |
Unfortunately yesterday we restore db from production deployment to that test deployment and now there is not that problem there - info page opens normally. |
Proposed changes (including videos or screenshots)
If the commit hash happens to be null, the administration page will still attempt to slice the value and display it. This causes the admin page to not display, and essentially crash the web app. This fixes it by checking for a null value first.
Issue(s)
closes #22031
Steps to test or reproduce
Attempt to access the admin page in an environment where the deployed code does not have a commit hash value. Apparently this is the case when using the zip archive from the github releases page, but certainly there could be other scenarios that replicate a null commit hash.
Further comments