Fix Web-Access Restrictions, Changelog Verification, WebUI Selections, and Firmware Run Estimates#476
Conversation
Fix Web Access Restrictions Regex
Add Missing Changelog Patch
Missing Comment Updates
Actually Fix Web Access Restrictions
Currently does not flatten the content so word wraps are missed such as:
"any additionnal GN must be
manually reconfigured."
Also only checks between 2 matches firmware versions, which won't exist between firmware jumps in changelog 388.8 and 3006.
This commit addresses these both by flattening the new lines and also checking for the date format instead of the firmware versions.
Set Estimates to TBD when disabling
Previously changing the postpone period in the WebUi did not correctly recalculate the new estimate flash time. Now we force it too. As well previously the estimate did not reset to (TBD) when disabling update checks.
Making it an optional parameter instead
Minor Fixes to Fix the Invalid Password Focus on Edge/Chrome Currently on Edge/Chrome; even when the password is validated; the user is unable to click elsewhere like to change the postpone period. This fixes that issue.
Fix Memory Clearing for Low Memory Models
Adding Back conn_diag
Re-Implementing Memory Diff Solution from 0993ac5
Removing Memory Subtraction Solution Lowering overhead by half from 50% to 25%
|
Any chance we can review this one in the coming days this weekend? :D |
Yes, I think over this weekend I'll have the time (finally!!), especially since the work related to the AMTM-OSR migration and production release announcements is virtually over for now (only uiScribe remaining, but there's no rush). My wife and I have plans to visit her parents on Saturday afternoon, so I'll perform the 3006.102.x F/W Update on their RT-AX86U_PRO router and reconfigure it for their home network. Having already done this for my own parents' router, this should not take very long because their home network is also fairly simple.
I have an idea I'd like to explore about that, but I'll do it after the PR review. |
|
Considering you say you have some ideas and the user is around to test your feedback. I'll remove the changes from this PR and let you handle it in another PR. I've also greatly increased the detail of all the bug reports above. |
Undoing Memory Based Changes
Great!!! I'm starting to review the PR. Hopefully, you're no longer making any code changes while I review. :>) |
Last change was the readme 😜 No additional changes incoming |
|
Going to take a quick dinner break but I'll be back in 20 minutes or so. |
I'm around no worries looking forwards! |
|
Just FYI, |
Web Access Restrictions... |
I have an ice cream sandwich in hand! The trees are green, it's nice this time of year I totally understand 🤣 |
Fantastic! As I mentioned on SNB, your free to replace anything if it's gross 🤢 |
Nothing gross like that, LOL!!! Basically, the main issue was that the regular expressions for the Main LAN IP address and the CIDR IP address subnet blocks were too wide and permissive. They allow entries like "10.0.0.0/4", which means half the internet was allowed access, LOL!!! For a private LAN IP address, a valid CIDR block can be only within a 24-bit subnet block, at most. If the CIDR IP address subnet block has a mask less than 8, you start to cross boundaries into the wider internet (i.e. public WAN IP addresses). If a user indeed wants access over WAN, then he should enter a distinct line with the public WAN IP, but that's separate from allowing access to the main private LAN IP subnet. P.S. |
I see what your saying that makes sense. Yes I agree. |
Things Fixed in this PR:
- All issues reported by: kriukas
1. Added missing changelog patch to force 3006 in an upgrade from 3004 to 3006
2. Fix Changelog Verification for firmware going from 3004 to 3006.

"any additionnal GN must be
manually reconfigured."
Found here: https://www.asuswrt-merlin.net/changelog-3006
3. Fix Web Access Restrictions by modifying the regex to accept subnets larger than /20

4. Previously changing the postpone period in the WebUI did not correctly recalculate the new estimate flash time. Now we force it too.

5. Set "Firmware Run Estimates" to TBD when disabling "built-in firmware update checks"

6. Fixed emails showing an estimated date when the "Enable Automatic F/W Update Checks" is DISABLED

- My own discovery which I fixed as well:
1. Fix the WebUI Password Focus on Edge/Chrome, which is stealing focus even when the password is valid
