Commit Graph
349 Commits
Author SHA1 Message Date
Dan Morphis e38bf0b0e0 Fix misspelling 2014-10-14 10:28:04 -08:00
Zaid Abdulla 6afe793c52 Fixed bug where refreshObject does not remove from database parameters that don't exist anymore in the device data model. 2014-09-05 16:01:47 +03:00
Dan Morphis 91417a5c7e Fix parse error on the inform message 2014-09-02 10:14:05 -08:00
Zaid Abdulla 141102908c Fixed device updates being processed twice potentially impacting performance. 2014-08-20 23:37:07 +03:00
Zaid Abdulla 7d3618a480 Fixed bug where deleting a device doesn't work if device ID contains URL encoded characters. 2014-08-18 22:23:46 +03:00
Zaid Abdulla faf1e49eb9 Implemented API for deleting a device. 2014-08-16 14:14:38 +03:00
Zaid Abdulla 76b67d9f54 Fixed crash in debug mode caused by incorrect debug directory path. 2014-08-16 09:23:14 +03:00
Zaid Abdulla 70b0dbad29 Added a config option to set Path attribute in Set-Cookie header. 2014-08-07 00:48:05 +03:00
Zaid Abdulla ee9a35b9b3 Ability to specify per device, per product class, or per oui configuration. Reimplemented Libxmljs options on the new configuration system. 2014-08-06 00:45:24 +03:00
Zaid Abdulla 3d201981e2 Use Node.js domains to gracefully handle exceptions. 2014-08-02 21:40:49 +03:00
Zaid Abdulla d5dc7b36df Flush redis after configuration changes that could affect cache integrity. 2014-08-01 22:30:03 +03:00
Zaid Abdulla d68b9d40ea Configuring XML parsing options readded after it was temporarily removed in recent config restructuring. 2014-08-01 13:17:34 +03:00
Zaid Abdulla 97700eb6c8 Use OUI instead of manufacturer to identify firmware files. 2014-08-01 00:47:01 +03:00
Zaid Abdulla c7a2cdb448 Fixed filename allowed character issues when uploading or deleting files through API. 2014-07-31 08:17:54 +03:00
Zaid Abdulla 32c56f8ff1 Accept configuration from environment variables or command line arguments. Unified cluster and HTTP server code for CWMP, NBI, and FS. 2014-07-31 01:44:53 +03:00
Zaid Abdulla 5d0f398bf7 Using a single connection URL to configure MongoDB connection. 2014-07-28 18:44:36 +03:00
Zaid Abdulla 4add20fe82 Support for TR-181 data model when looking for ConnectionRequestURL and SoftwareVersion parameters. 2014-07-25 22:33:12 +03:00
Zaid Abdulla 4c0c590791 Fixed bug where partial device update from a faulty task gets committed in the next inform. 2014-07-24 03:51:53 +03:00
Zaid Abdulla db6eae2aee Queue device updates and commit them using fewer database queries for better performance. Partial updates caused by faulty tasks will no longer be committed in order to avoid messing the device model. 2014-07-24 01:49:04 +03:00
Zaid Abdulla 4b244f43e0 Fixed issue where uploaded file not immediatly accessible because upload API responds before the upload has completed. 2014-07-19 06:58:48 +03:00
Zaid Abdulla 1c902af363 Wait for connections to MongoDB and redis to be established on startup. Added configuration option to specify redis DB. 2014-07-19 06:54:09 +03:00
Zaid Abdulla 28394af707 Added an option to configure the number of parameters per request in GetParameterValues and SetParameterValues methods. 2014-07-18 23:36:36 +03:00
Zaid Abdulla 47b0d06493 Crediting Netanel Rubin for his find. 2014-07-14 12:09:58 +03:00
Zaid Abdulla 03f9a9e628 Use RegExp objects instead of eval for creating regular expressions to fix code execution vulnerability as pointed out by Shahar Tal and his team from Check Point Software Technologies. 2014-07-14 10:43:02 +03:00
Zaid Abdulla a4f1d0dc2a Added copyright and permission header to source files. 2014-07-12 23:53:01 +03:00
Zaid Abdulla 2279de3c70 Fixed a couple of connection request issues. 2014-07-12 23:24:13 +03:00
Zaid Abdulla ec2dd87693 Set timeout value for TCP connetion based on CWMP session timeout. Handle expired sessions gracefully. 2014-07-10 01:08:54 +03:00
Zaid Abdulla bb6e963788 Added abilility to fetch parameter names iteratively to work around some devices' memory limitations. The configuration option GET_PARAMETER_NAMES_DEPTH_THRESHOLD specifies the depth of parameters upto which they're fetched iteratively. 2014-07-09 06:59:48 +03:00
Zaid Abdulla 3348139795 Moved detection of removed parameters to updateDevice function plus other organization and optimization changes 2014-07-07 23:32:42 +03:00
Zaid Abdulla b41e619a89 Storing session data in redis instead of cookies. Closes #10. Closes #20. 2014-06-30 02:35:22 +03:00
Zaid Abdulla 82b02ff175 Added config options to be passed to libxmljs when parsing request XML. Fixes #15. 2014-06-13 13:01:16 +03:00
Zaid Abdulla e725ba5be7 Fixed bug where fault response triggers method not supported exception when IGNORE_XML_NAMSPACES config option is enabled. 2014-06-12 23:52:38 +03:00
Zaid Abdulla 343520f408 Do not automatically close TCP connection at end of session. The CPE should, as described in the standard. Fixes 12. 2014-06-07 01:26:48 +03:00
Zaid Abdulla 70ffd8b653 Support for MongoDB 2.6. Preset precondition is now stored as a JSON string. 2014-05-17 09:35:05 +03:00
Zaid Abdulla 5bd7c99eea Allow space characters in quoted values in HTTP authentication header. Fixes #9. 2014-05-16 11:41:28 +03:00
Zaid Abdulla de0774edeb Added config option (IGNORE_XML_NAMESPACES) to make XML traversal using element local names only as a workaroud for XML namespace issues in some devices. Fixes #7. 2014-05-10 16:22:40 +03:00
Zaid Abdulla dfb2e624d9 <string> elements in GetParameterValues and GetRPCMethods should be unqualified 2014-05-09 12:18:29 +03:00
Zaid Abdulla 647f5c1647 Encoding cookies with base64 to work around some device quirks 2014-05-09 12:09:30 +03:00
Zaid Abdulla c1d5fcce19 Fixed bug in parsing cookie header 2014-05-06 12:46:04 +03:00
Zaid Abdulla bf8fc877d4 Support for gzip and deflate content encoding 2014-05-05 01:14:41 +03:00
Zaid Abdulla 4048de35d0 Implemented GetPRCMethods ACS method 2014-05-02 19:38:47 +03:00
Zaid Abdulla fde4d7b6a9 Accept any CWMP namespace versions. Some code clean ups. 2014-05-02 11:48:03 +03:00
Zaid Abdulla 4eb7867695 Remove old pending tasks when the device sends bootstrap event 2014-04-21 23:24:21 +03:00
Zaid Abdulla 10be06c619 Avoid invoking mapReduce in complieAliases when database has not been created yet. Fixes #4. 2014-04-21 20:20:27 +03:00
Zaid Abdulla 914a470116 Fixed wrong config path for custom commands 2014-03-27 16:37:59 +03:00
Zaid Abdulla 89f153de4d Fixed bug in connection request digest authentication caused authentication response being sent over a new connection 2014-03-15 16:45:58 +03:00
Zaid Abdulla 13960f9f20 Clear presets hash if needed based on changing inform parameters or bootstrap event 2014-03-14 12:35:40 +03:00
Zaid Abdulla febd6f6cd4 Fixed dump directory path 2014-03-10 14:52:01 +03:00
Zaid Abdulla 236a0241ba Better file structure and naming 2014-03-09 19:59:34 +03:00