You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently with ROG routers using ROG builds of the firmware, post reboot the email notifications function believes that the firmware update failed when in fact it did not.
User will receive a "failed update" email even though the router updated successfully on rog routers using rog UIs.
Seems I had an issue with the post-reboot hook since the update happened successfully and it waited 3 minutes to send me the notification. Something was evaluated wrong in the post reboot.
Post reboot file variables:
savedInstalledVersion = 3004.388.6.0_rog
savedNewUpdateVersion = 3004.388.6.2
There's a potential issue in comparing version strings with and without suffixes (like _rog)?
If the script strictly compares these strings, 3004.388.6.2 would not be considered equal to 3004.388.6.2_rog, and thus, the post-update scenario might not be recognized as successful.
There's a potential issue in comparing version strings with and without suffixes (like _rog)? If the script strictly compares these strings, 3004.388.6.2 would not be considered equal to 3004.388.6.2_rog, and thus, the post-update scenario might not be recognized as successful.
Post reboot file variables:
savedInstalledVersion = 3004.388.6.0_rog
savedNewUpdateVersion = 3004.388.6.2
$fwInstalledVersion:
Pre-Update = 3004.388.6.0_rog
Post-Update = 3004.388.6.2_rog
There's a potential issue in comparing version strings with and without suffixes (like _rog)? If the script strictly compares these strings, 3004.388.6.2 would not be considered equal to 3004.388.6.2_rog, and thus, the post-update scenario might not be recognized as successful.
Great catch!!
Thank you! I noticed this behavior while testing this in dev, but at the time, I figured it was because I was just going 388.6 to 388.6 and that the comparison would always think it failed because the version numbers didn't change.
But today, the version numbers did change, And I still got the failure email, so it sent me down the hunt to find where the little sneaky bug might be hiding.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently with ROG routers using ROG builds of the firmware, post reboot the email notifications function believes that the firmware update failed when in fact it did not.
User will receive a "failed update" email even though the router updated successfully on rog routers using rog UIs.
Seems I had an issue with the post-reboot hook since the update happened successfully and it waited 3 minutes to send me the notification. Something was evaluated wrong in the post reboot.
Post reboot file variables:
savedInstalledVersion = 3004.388.6.0_rog
savedNewUpdateVersion = 3004.388.6.2
$fwInstalledVersion:
Pre-Update = 3004.388.6.0_rog
Post-Update = 3004.388.6.2_rog
There's a potential issue in comparing version strings with and without suffixes (like _rog)?
If the script strictly compares these strings, 3004.388.6.2 would not be considered equal to 3004.388.6.2_rog, and thus, the post-update scenario might not be recognized as successful.