Zaid Abdulla
8e34c6a2f6
Support using a callback in auth.js config file
2017-02-12 02:34:55 -08:00
Zaid Abdulla
340016813c
Implicit timestamp when declare()ing values
2017-01-30 07:35:48 -08:00
Zaid Abdulla
e2fb00c38a
Fix bug in passing provision arguments
2017-01-30 07:33:17 -08:00
Zaid Abdulla
5a5fe0bf19
Fix bug in fetching 1_BOOT event from DB
2017-01-30 07:32:21 -08:00
Zaid Abdulla
cd8d217550
Don't remove nonexisting parameters from tasks
2017-01-17 15:11:08 -08:00
Zaid Abdulla
9dd8b26d53
Fix maximum call stack size exceeded error
2017-01-17 13:13:50 -08:00
Zaid Abdulla
2e40ef8622
Better preset loop detection
...
The RPC and iteration counts are now reset for every cycle.
2017-01-12 23:30:27 -08:00
Zaid Abdulla
310114a500
Some fixes in tasks
2017-01-10 01:54:04 -08:00
Zaid Abdulla
c940bba4a3
Trim exception stack trace in faults
2017-01-06 12:50:59 -08:00
Zaid Abdulla
12aa43c379
Better implementation for async loop control
2017-01-05 18:22:24 -08:00
Zaid Abdulla
7d30ffd176
Remove unnecessary properties in fault object
2017-01-05 17:36:20 -08:00
Zaid Abdulla
06fdca9536
Fix bug in precondition testing
2017-01-05 17:35:01 -08:00
Zaid Abdulla
133d9ebc99
A few bug fixes
2017-01-04 13:55:20 -08:00
Zaid Abdulla
771917a7a6
Clean up old unused code
2017-01-03 21:18:20 -08:00
Zaid Abdulla
4b5dc25010
Load distribution in refresh provision
2017-01-03 18:58:57 -08:00
Zaid Abdulla
7620628e52
New XML config options
...
Removed unnecessary config options and added new ones for configuring
XML output.
2017-01-03 03:18:00 -08:00
Zaid Abdulla
7862117758
Support for UDP connection requests
2017-01-02 04:59:01 -08:00
Zaid Abdulla
4cb480dbd9
Response header for version number in API
2017-01-02 04:06:09 -08:00
Zaid Abdulla
bf0cd2af72
Support for intermediate certificates in SSL
2017-01-01 17:36:42 -08:00
Zaid Abdulla
d82c2bb350
Do not attempt to close server before it's up
2017-01-01 17:31:31 -08:00
Zaid Abdulla
7644d46f6b
Make Math.random() deterministic in provisions
...
Replace Math.random() in sandbox with a seedable implementation so that
the script remains deterministic.
2017-01-01 05:50:43 -08:00
Zaid Abdulla
3e4f4b29ab
Read connection request creds from parameters
2017-01-01 00:14:19 -08:00
Zaid Abdulla
33b01d68ca
Support add/remove objects from presets and tasks
2016-12-29 13:04:11 -08:00
Zaid Abdulla
179211ce53
A couple of bug fixes
2016-12-28 16:21:04 -08:00
Zaid Abdulla
2ca3ec86a8
Move default provisions to a separate file
...
And reuse the same set of default provisions for presets and tasks.
2016-12-28 16:14:54 -08:00
Zaid Abdulla
ee40a44339
Remove use of domains for error handling
2016-12-23 17:32:08 -08:00
Zaid Abdulla
eb6d107b8d
Fix possible maximum call stack error
2016-12-23 17:29:36 -08:00
Zaid Abdulla
63407be19b
Generate faults in precondition testing stage
...
Also, queue applicable provisions to any existing fault in order to
be processed later.
2016-12-21 19:44:56 -08:00
Zaid Abdulla
c4880b636b
Fault when provisions repeat indefinitely
2016-12-10 16:01:25 -08:00
Zaid Abdulla
bc1f6311a0
Better CWMP fault structure
...
Resolves : #78
2016-12-07 13:01:31 -08:00
Zaid Abdulla
34de9c7e7d
Handle SIGINT and SIGTERM to exit gracefully
2016-12-04 19:07:03 -08:00
Zaid Abdulla
9f85ead558
Turn errors from scripts and extensions into faults
2016-12-04 19:04:22 -08:00
Zaid Abdulla
7ac94a5304
Resolve CONFIG_DIR to absolute path
2016-12-04 18:14:35 -08:00
Zaid Abdulla
e0c1245062
Pass config to extensions as env vars
2016-11-30 21:52:48 -08:00
Zaid Abdulla
68798b5b12
Add missing new keyword
2016-11-30 16:38:22 -08:00
Zaid Abdulla
b3a3c1c9fc
Use file name as ID when uploading files in NBI
2016-11-30 16:35:27 -08:00
Zaid Abdulla
3d221afc27
Implement support for download RPC
...
This uses special parameters (Downloads.) to trigger file download
making it poossible to use from scripts declaratively.
Resolves : #171
2016-11-30 16:27:01 -08:00
Zaid Abdulla
5cade39ba2
Fix bug causing repeating reboot RPC
2016-11-10 15:12:22 -08:00
Zaid Abdulla
f9c5272ce0
A number of fixes in sandbox and declaration processing
2016-11-10 07:07:51 -08:00
Zaid Abdulla
3b987cc0cc
Avoid generating RPCs for parameters that don't exist
2016-11-07 00:31:37 -08:00
Zaid Abdulla
b4bbd8f58c
Simplify declare function in scripts
...
Using declare function is made easier by accept a single path and returning
a promise to read parameter attributes.
2016-11-07 00:29:38 -08:00
Zaid Abdulla
044734b567
Some events related fixes
2016-11-03 14:42:38 -07:00
Zaid Abdulla
f9e96fe7f4
Workaround for missing parameters in GPN response
...
Some clients don't report certain parameters in GPN response but report
their descendants only. This patch attemps to add those missing
parameters assuming writable attribute being false.
2016-11-01 18:53:34 -07:00
Zaid Abdulla
60931e2b68
Fix bug where preset preconditions cause unnecessary GPN RPC
...
s
2016-11-01 18:22:35 -07:00
Zaid Abdulla
737266eae5
Replace Mongo query in preset precondition with flat filters
2016-11-01 18:20:19 -07:00
Zaid Abdulla
d50fd3d614
Read/write tags in scripts
2016-11-01 18:14:48 -07:00
Zaid Abdulla
1bbef345e0
Fix bugs related to tracking changes
2016-10-28 16:29:34 -07:00
Zaid Abdulla
7b0ea61596
Load available timestamp for parameters that don't exist
2016-10-28 16:27:40 -07:00
Zaid Abdulla
600ca58b99
Major restructuring and optimization
2016-10-24 18:26:19 -07:00
Zaid Abdulla
6e9bf5a027
Fix exception when generating MongoDB projection from query
2016-10-24 17:31:17 -07:00