Skip to content

Conversation

@cprice-kgi
Copy link
Contributor

@cprice-kgi cprice-kgi commented May 17, 2021

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

@KevLehman KevLehman requested a review from a team May 20, 2021 17:48
@ggazzo ggazzo added this to the 3.15.0 milestone May 21, 2021
ggazzo
ggazzo previously approved these changes May 21, 2021
@ggazzo ggazzo merged commit aa7ee7b into RocketChat:develop Jul 1, 2021
gabriellsh added a commit that referenced this pull request Jul 1, 2021
…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
  ...
@ankar84
Copy link

ankar84 commented Jul 2, 2021

I have similar issue with node version on my test deployment
TypeError: Cannot read property 'nodeVersion' of undefined in DevTools and crash

@dougfabris
Copy link
Member

can you create an issue with more information about it, please @ankar84?

@ankar84
Copy link

ankar84 commented Jul 21, 2021

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.
It was strange, because previously we did the same - restore prod to that test and in some moment we saw that bug on test but on prod was all fine. Docker images same, db almost same.

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.

Administration page does not display

5 participants