Zaid Humaimidi
a54b2c8cd6
Handle unhandledRejection events
...
Because in Nodejs 12-14 unhandled rejections don't trigger uncaughtException
event by default so the process doesn't exit in case of errors.
2023-08-09 19:51:40 -07:00
Zaid Humaimidi
7b8a49a7ba
Refactor request listeners to use async functions
2023-08-09 19:51:40 -07:00
Zaid Humaimidi
58488ebc3d
Refactor DB code to use promises
2023-08-09 19:51:38 -07:00
Zaid Humaimidi
3169e829e7
Refactor expression to Mongo query translation
...
The previous approach was simplistic and could result in inefficient queries
in certain edge cases, notably causing MongoDB to not utilize existing indexes
when querying by last inform timestamps given upper and lower bounds. The new
implementation leverages our existing expression minimizer code and can
therefore generate more efficient queries or at least queries that can take
advantage of existing indexes.
2023-08-09 19:48:49 -07:00
Zaid Humaimidi
947f96299d
Prevent premature close error in small files
2023-04-19 12:01:53 -07:00
Zaid Abdulla
d1c01e0848
Fix FS drops connection if download is too slow
...
Only happens in HTTPS because seemingly somewhere in the stack up to
50mb of data is being buffered potentially triggering a timeout at a
higher level if not drained fast enough.
This commit also includes other streams related improvements.
2022-11-01 09:13:36 -07:00
Zaid Abdulla
444183da0a
1.2.9
2022-08-22 09:51:55 -07:00
Zaid Abdulla
c02f667623
Changelog for v1.2.9
2022-08-22 09:51:25 -07:00
Zaid Abdulla
25ea0c8b64
Update dependencies
2022-08-22 09:44:25 -07:00
Zaid Abdulla
2789961596
Skip invalid timestamps in declare()
2022-08-12 16:30:00 -07:00
Zaid Abdulla
d91be02599
Fix exception matching IPv6 against IPv4 CIDR
2022-08-12 11:32:15 -07:00
Zaid Abdulla
5806fe2df6
Better locking in local cache
...
Fixes occassional lock expired errors after updating presets, etc.
2022-08-12 01:11:04 -07:00
Zaid Abdulla
eb5caa6b5a
Skip root GPN workaround
2022-08-01 11:32:05 -07:00
Zaid Abdulla
ffbcf2bbc0
Fix Mongo query bug when using <> operator
2022-07-15 11:36:15 -07:00
Zaid Abdulla
6f29267266
Fix HTML Quirks mode issues
2022-06-29 11:07:42 -07:00
Zaid Abdulla
b0d50b07e7
Fix synthesized expressions being non-minimal
...
Let's try this again. The implementation of canRaise callback was
overly complicated and was causing the minimizer to ocassionally
get stuck in a local optima.
2022-06-14 11:23:33 -07:00
Zaid Abdulla
c06538f9cc
Fix browser quirks mode warning
2022-04-08 13:14:27 -07:00
Zaid Abdulla
344f0ec5e0
Fix DB update calls containing unchanged params
2022-03-11 11:43:49 -08:00
Zaid Abdulla
4b533d0aad
Fix issues caused by invalid xsd:dateTime values
...
Invalid dateTime strings were saved in the DB as NaN causing uncaught
exception in CSV download.
2022-03-11 11:42:10 -08:00
Zaid Abdulla
2b37f11e2e
Clean up MongoDB query projection
...
This prevents potential 'path collision' errors from MongoDB.
2022-02-17 18:14:53 -08:00
Zaid Abdulla
adaf801d6e
Stream query results as they become available
2021-11-29 23:36:27 -08:00
Zaid Abdulla
94756e463f
Pass BROTLI_OPERATION_FLUSH to koa-compress
2021-11-29 23:11:20 -08:00
Zaid Abdulla
3c55306e22
Fix false warning message
2021-11-15 15:42:33 -08:00
Zaid Abdulla
aa12b7c724
Fix query unpacking breaking $regex operator
...
If the regex string can be parsed as a date or a number, the unpacked
query will be rejected by MongoDB because $regex operator only accepts
a string.
2021-11-08 14:21:14 -08:00
Zaid Abdulla
8f827997cd
Fix tags set via script saved in encoded form
2021-11-08 13:55:30 -08:00
Zaid Abdulla
c9a4be0475
Deubg log for HTTP and HTTPS client errors
2021-11-08 12:21:02 -08:00
Zaid Abdulla
fa95d7a310
1.2.8
2021-10-27 13:07:03 -07:00
Zaid Abdulla
d299ef3a59
Changelog for v1.2.8
2021-10-27 13:06:37 -07:00
Zaid Abdulla
2c606b268e
Update dependencies
2021-10-27 13:04:34 -07:00
Zaid Abdulla
1b86f41ad7
Replace later dependency with @breejs/later
2021-10-26 17:40:17 -07:00
Zaid Abdulla
c4754a9b55
Strip dev deps from new lock file format
2021-10-26 10:33:33 -07:00
Zaid Abdulla
f24111ea9f
Support modulo operator in expressions
2021-10-25 16:51:46 -07:00
Zaid Abdulla
8f662fb152
Fix expr parser treating - and / as commutative
2021-10-25 13:40:48 -07:00
Zaid Abdulla
dd722ba6e0
Improve sorting toggle behavior
...
Last sorted column now takes precedence over any previously sorted
columns. This makes for a more intuitive user experience.
2021-10-25 13:36:23 -07:00
Zaid Abdulla
88a84788a5
Evaluate component attrs before use
2021-10-24 18:17:03 -07:00
Zaid Abdulla
73baffc3b9
Improve container component
...
Allow passing custom attribute to the HTML element. Implement function
encodeUriComponent for attribute expressions.
2021-10-24 18:14:36 -07:00
Zaid Abdulla
0188ac860b
Handle unsupported ACS methods gracefully
2021-10-15 16:21:08 -07:00
Zaid Abdulla
7f295beeec
Validate host arg passed to ping
...
Fixes remote code execution vulnerability reported by Alex Hordijk.
2021-10-15 16:21:08 -07:00
Zaid Abdulla
2ac536bf8f
Fix ui.pageSize regression
2021-09-22 09:27:11 -07:00
Zaid Abdulla
f63e357b29
Fix synthesized expressions being non-minimal
2021-09-20 12:41:09 -07:00
Zaid Abdulla
ceec3f2cc8
1.2.7
2021-09-18 14:36:19 -07:00
Zaid Abdulla
2b60feb2f4
Changelog for v1.2.7
2021-09-18 14:35:34 -07:00
Zaid Abdulla
9203417686
Fix a couple of regressions in 1.2.6
2021-09-18 14:34:11 -07:00
Zaid Abdulla
8477cd1cfa
1.2.6
2021-09-16 14:25:41 -07:00
Zaid Abdulla
12c958dc03
Changelog for v1.2.6
2021-09-16 14:25:20 -07:00
Zaid Abdulla
fdb81b7a43
Update dependencies
2021-09-16 14:17:39 -07:00
Zaid Abdulla
529386a9b6
Prevent invalid YAML config from bricking the UI
2021-09-16 13:27:37 -07:00
Zaid Abdulla
98698b775c
Update copyright notice in README.md
2021-09-16 13:27:37 -07:00
Zaid Abdulla
9706026ea5
Update Prettier
2021-09-16 13:27:37 -07:00
Zaid Abdulla
9e1d7eca9b
Rename WLAN hosts to LAN hosts in default config
2021-09-16 13:27:37 -07:00
Zaid Abdulla
d48deaaf47
Catch JSON parse exceptions in NBI
2021-09-16 13:27:37 -07:00
Zaid Abdulla
ec770b4e1b
Fix redundant SPV triggered for unknown types
...
Fix issue where declarations against parameters with non-standard value
type trigger an SPV call when the value being declared is a boolean or
a number.
2021-09-16 13:27:37 -07:00
Zaid Abdulla
c3c7ab72b2
Utilize ?. operator and set TypeScript target
2021-09-16 13:27:37 -07:00
Zaid Abdulla
ca83704958
Ignore session cookie on Inform
...
Some devices preserve cookies set in a previous session and pass them
on to the next session. The presence of a session cookie in the Inform
request causes an unnecessary DB query and, in some edge cases, an
Invalid Session error.
2021-09-16 13:27:37 -07:00
Zaid Abdulla
bc2d258f9c
Refactor bool exp synthesizer
...
It's now more intelligent about generating IS NULL clauses. For example,
instead of 'LOWER(param) IS NULL' it now generates 'param IS NULL'.
2021-09-16 13:27:37 -07:00
Zaid Abdulla
7ae3bcdc0f
Fix escape char not interpreted in expressions
2021-09-16 00:17:21 -07:00
Zaid Abdulla
53bb4d3552
Fix filters resetting user input on redraw
2021-09-16 00:17:21 -07:00
Zaid Abdulla
595f0eddf1
Fix deprecations
2021-09-16 00:17:21 -07:00
Zaid Abdulla
0861b2db40
Update TypeScript
2021-09-16 00:17:21 -07:00
Zaid Abdulla
f4692faed6
Update MongoDB driver
2021-09-16 00:17:19 -07:00
Zaid Abdulla
cc885e7d04
Update mithril types
2021-08-13 14:36:59 -07:00
Zaid Abdulla
359eca7bbc
Fix upload metadata missing when behind nginx
2021-08-11 13:08:27 -07:00
Zaid Abdulla
088e25cbb0
New config option cwmp.downloadSuccessOnTimeout
...
Workaround for CPEs that neglect to send TransferComplete message after
a successful download.
2021-08-11 12:27:51 -07:00
Zaid Abdulla
1d02893692
Fix repeating downloads if timestamp > now
2021-08-05 01:15:27 -07:00
Zaid Abdulla
da01793ac5
Fix inability to close unsupported preset notif
2021-08-02 14:32:32 -07:00
Zaid Abdulla
cce85e48ed
Fix crash in NBI when device not found
2021-08-02 14:04:06 -07:00
Zaid Abdulla
be90214bf9
Update min Node version in installation guide
2021-08-02 13:14:04 -07:00
Zaid Abdulla
6ce91df127
Display progress bar when uploading file
2021-07-27 14:18:35 -07:00
Zaid Abdulla
1a53a320da
Detect and correct for client side clock skew
2021-07-25 12:48:42 -07:00
Zaid Abdulla
cfe279b511
Tolerate responses with invalid/missing params
2021-07-24 23:18:51 -07:00
Zaid Abdulla
08cfe4171c
Make parsing param paths strict
2021-07-16 13:20:07 -07:00
Zaid Abdulla
6c37e88ab1
Fix crash when CPE sends invalid auth header
2021-07-13 18:45:23 -07:00
Zaid Abdulla
8b27794cc7
Fix crash when passing invalid attrs to declare
2021-07-13 17:00:59 -07:00
Zaid Abdulla
9cf18503ee
Fix exceptions from ext showing as timeout error
2021-07-13 15:34:38 -07:00
Zaid Abdulla
3b36cefbca
Fix UDP conn request promise rejection warning
2021-06-21 18:17:08 -07:00
Zaid Abdulla
02e09dfdab
Add dot to list of encoded chars in tags
2021-06-14 14:06:05 -07:00
Zaid Abdulla
63a75cc765
Fix bug causing lock expired exceptions
2021-06-09 16:32:12 -07:00
Zaid Abdulla
630697a0cb
Ignore UDP connection request errors
2021-04-18 11:24:27 -07:00
Zaid Abdulla
f6aa444a23
Ignore invalid UDPConnectionRequestAddress
2021-04-17 23:37:40 -07:00
Zaid Abdulla
139dc5410e
Don't crash when ping result can't be parsed
2021-04-01 18:54:44 -07:00
Zaid Abdulla
e4582695b7
1.2.5
2021-03-12 15:36:19 -08:00
Zaid Abdulla
0064c2b951
Changelog for v1.2.5
2021-03-12 15:36:05 -08:00
Zaid Abdulla
47c2d6ee6f
Update dependencies
2021-03-12 15:30:21 -08:00
Zaid Abdulla
f290ce696f
Support custom types for uploaded files
2021-03-12 15:30:13 -08:00
Zaid Abdulla
556424d4d6
Fix missing padding at bottom of page in Chrome
2021-03-12 13:08:45 -08:00
Zaid Abdulla
7e507125c4
Remove --unsafe-perm as it's no longer necessary
2021-03-10 16:56:45 -08:00
Zaid Abdulla
2ca0caa258
Reimplement foldString without regex
...
Lookbehind in regex is not supported in Safari browsers. This implementation
should be more efficient so why not.
2021-02-26 13:22:58 -08:00
Zaid Abdulla
478a0af781
1.2.4
2021-02-24 22:46:45 -08:00
Zaid Abdulla
9eab36cd73
Changelog for v1.2.4
2021-02-24 22:45:26 -08:00
Zaid Abdulla
8f69b74a89
Update dependencies
2021-02-24 22:37:13 -08:00
Zaid Abdulla
fccda8d726
Fix bug in NBI where querying files gives 404
2021-02-23 16:50:28 -08:00
Zaid Abdulla
111cb106d0
Validate task name in API
2021-02-23 13:31:32 -08:00
Zaid Abdulla
5b17d1b2ca
Shell script to spell check docs
2021-02-23 13:18:40 -08:00
Zaid Abdulla
02dfe4b554
Show warning when task name not recognized
2021-02-17 17:54:21 -08:00
Zaid Abdulla
688811317c
Display spinner animation during loading
2021-02-16 00:09:24 -08:00
Zaid Abdulla
4871613c67
Add missing authentication failure logging
2021-02-09 10:37:51 -08:00
Zaid Abdulla
540898de21
Add file download link in files page
2021-02-08 15:02:40 -08:00
Zaid Abdulla
e9a4676f5c
New function ROUND() in expressions
2021-02-07 11:29:44 -08:00
Zaid Abdulla
12197f3b2a
Fault when GPVR doesn't contain expected params
2021-02-05 17:15:21 -08:00
Zaid Abdulla
bdad2f9a32
Implicit fetch of 'writable' attribute
...
The writable attribute may not already be present when attempting to
modify parameters included in the inform message. For other parameters
the writable attrbiute is guarenteed to have already been fetched
during discovery.
2021-02-04 22:54:30 -08:00