Zaid Abdulla
fa1e40e370
Read session lock to detect task completion
2020-11-30 18:11:51 -08:00
Zaid Abdulla
30bea8ac57
Save CPE changes in case of session error/timeout
2020-11-19 14:18:05 -08:00
Zaid Abdulla
d787f66e3f
Reimplement locking w/o relying on hostInfo cmd
...
Because the hostInfo MongoDB command may not be allowed in some
environments. Also, in sharded deployments the clock skew may differ
between different shards so using hostInfo is not enough. This new
implementation simply assumes the clocks are in sync within a certain
range and throws an error if clocks are found to be out of sync.
2020-11-18 15:06:49 -08:00
Zaid Abdulla
a9b0e3a1f7
Use a single MongoDB client
2020-11-18 00:01:41 -08:00
Zaid Abdulla
bd55d6f512
Better support for LIKE op in query minimization
2020-11-16 15:23:38 -08:00
Zaid Abdulla
e64001cddc
Accept primitive expressions in filter component
2020-11-16 15:20:48 -08:00
Zaid Abdulla
a43bba2405
Fix deprecations
2020-10-25 23:34:05 -07:00
Zaid Abdulla
36798cfb5f
Fix confusing 404 for unauthorized requests
2020-10-24 10:24:19 -07:00
Zaid Abdulla
c52ff6f6ec
Support Unicode characters in tags
2020-10-20 15:44:11 -07:00
Zaid Abdulla
dfab724515
Add new config cwmp.skipWritableCheck
...
Some CPEs incorrectly report writable parameters as non-writable. This
config option lets us bypass the check and attempt to modify the
parameter even if it reported as read-only.
2020-10-20 13:35:34 -07:00
Zaid Abdulla
4fd919ccfa
Add more XML validations
2020-10-19 13:34:08 -07:00
Zaid Abdulla
62849e8081
Fix connection timeout being set incorrectly
2020-10-18 12:52:01 -07:00
Zaid Abdulla
9f4b421b59
Add Node types to dev dependencies
2020-10-17 20:09:32 -07:00
Zaid Abdulla
44a2fe11ee
Fix invalid expression after minimization
...
In rare edge cases where IS NULL is used the minimization process can
generate an expression that's not equivilant to the original one.
2020-10-16 17:33:29 -07:00
Zaid Abdulla
5bb6f60c4d
Update dependencies and fix new lint errors
2020-10-02 23:21:07 -07:00
Zaid Abdulla
82124d471e
Fix invalid arguments fault in refresh preset
...
Happens when upgrading from v1.1 where genieacs-gui creates refresh
configuration with 'age' passed as a string.
2020-09-23 23:15:00 -07:00
Zaid Abdulla
9286bd6aa0
Fix unhandled promise rejections
2020-09-17 17:00:41 -07:00
Zaid Abdulla
328bfa03e0
Allow refreshObject task on root param
2020-09-15 12:50:02 -07:00
Zaid Abdulla
de65ca0921
Fix crash when deserializing operation objects
2020-09-14 15:58:47 -07:00
Zaid Abdulla
a6f9e3d0de
Renaming yebool to espresso-iisojs
2020-09-08 20:11:00 -07:00
Zaid Abdulla
0b60406b43
Add lint rule for unhandled promise rejections
2020-09-08 17:33:48 -07:00
Zaid Abdulla
c6f4f9480c
Better handling of negation in filterToMongoQuery
...
Similar to SQL, negating a null should still be null.
2020-09-08 00:13:48 -07:00
Zaid Abdulla
dd9cd01681
Fix querying faults in UI showing no results
2020-09-08 00:11:14 -07:00
Zaid Abdulla
04b19eb05f
Update Koa and related dependencies
2020-09-01 02:43:06 -07:00
Zaid Abdulla
1760207217
Update Parsimmon
2020-09-01 02:30:23 -07:00
Zaid Abdulla
495e7b0264
Update types for MongoDB driver
2020-09-01 01:58:06 -07:00
Zaid Abdulla
2411db6b36
Better handling of invalid CPE messages
2020-08-28 00:49:05 -07:00
Zaid Abdulla
c9eb5d1327
Types refactoring
2020-08-25 01:02:11 -07:00
Zaid Abdulla
19c5bb03ea
Fix exception when passing null as PARAM arg
2020-08-19 20:04:36 -07:00
Zaid Abdulla
ec44ccfc07
Fix bug in authorizer
2020-08-18 12:39:46 -07:00
Zaid Abdulla
bf9517c652
Implement support for Get/SetParameterAttributes
2020-08-17 19:21:13 -07:00
Zaid Abdulla
6385f54888
Allow expressions in provision arguments
2020-08-17 16:51:10 -07:00
Zaid Abdulla
fef4ddfbba
Fix canRaise bug wrecking expression synthesis
2020-08-17 16:34:57 -07:00
Zaid Abdulla
2a85d768a5
Implement COALESCE function
2020-08-17 10:01:45 -07:00
Zaid Abdulla
6cbd59c6ec
Implement CASE operator
...
This also modifies the behavior of AND/OR operators to strictly return
true/false/null whereas previously they could return the value of the
first truthy/false operand. The purpose of this change is to maintain
expression equivalency before and after minimization.
2020-08-15 14:07:45 -07:00
Zaid Abdulla
e3ef177842
Update MongoDB driver
2020-08-11 23:33:59 -07:00
Zaid Abdulla
00ccf99be6
Minimize store queries
2020-07-29 02:31:31 -07:00
Zaid Abdulla
ac980116bd
Update ESLint and Prettier
2020-07-27 20:30:13 -07:00
Zaid Abdulla
c2c24f5c24
Respect SPV related config in alias declarations
2020-06-30 11:09:58 -07:00
Zaid Abdulla
e516d5338c
Reject param paths containing empty segments
2020-03-13 18:30:53 -07:00
Zaid Abdulla
41f3987db4
Delete code that shouldn't have been checked in
2020-02-10 13:04:19 -08:00
Zaid Abdulla
65bf6d7d6e
Fix bug if fault occurs in precondition stage
2020-02-09 21:39:45 -08:00
Zaid Abdulla
603f5c79ac
Support Forwarded header
2019-12-29 14:50:08 -08:00
Zaid Abdulla
e80109de93
Process inform message before authentication
...
This allows the authentication expression to read events and other
parameters.
2019-12-24 10:47:37 -08:00
Zaid Abdulla
ce955e34c1
Allow PUT to overwrite existing files
2019-12-16 16:05:43 -08:00
Zaid Abdulla
1e6bb5f450
Add parse() and UTC() to SandboxDate
2019-12-12 10:28:45 -08:00
Zaid Abdulla
f301d70339
Use session timestamp when evaluating preconditions
2019-12-06 12:54:35 -08:00
Zaid Abdulla
feb3d7f244
Fix regression from a previous commit
2019-12-03 20:02:00 -08:00
Zaid Abdulla
dd907a67b0
Add types in local-cache.ts
2019-12-03 14:20:34 -08:00
Zaid Abdulla
37d8222479
Memoize authorizer object
2019-12-03 14:11:07 -08:00