39 Commits

Author SHA1 Message Date
ionutboangiu
8443af3a89 Relicense from GPLv3 to AGPLv3 2025-10-29 19:42:40 +01:00
ionutboangiu
6c41ebe0de Add sanity check to prevent xml reader panic
HierarchyPath parser now returns nil when
the path is empty (instead of a string slice with one
EmptyString element).

If the prefix is set to true, when calling the AsString
method on a nil HierarchyPath, only the separator will
be returned. This avoids a nil expr error coming from
the xmlquery library.

Use the Query and QueryAll functions from the xmlquery
package to be able to handle the errors ourselves and
avoid panics.

Remove config default value for xml_root_path. The field
will remain commented in config_defaults for reference.

Add tests for HierarchyPath.AsString function.

Add comments for XmlProvider and xml_root_path opt.
2023-10-16 13:18:12 +03:00
ionutboangiu
6c16ff320f Replace interface{} with any 2023-05-31 10:23:12 +02:00
Trial97
faf1fba125 Refactored EventRequest 2021-07-06 20:52:40 +02:00
Trial97
c13a5cf790 Finished implementing the DataNode as a replacement 2021-03-26 13:46:25 +01:00
Trial97
ba090352ec Updated agents tests 2021-03-26 13:46:25 +01:00
Trial97
5353b95e43 Updated go version and replaced ioutil package 2021-03-18 16:46:55 +01:00
Trial97
f10f570a27 Removed config.NavigableMap 2020-05-18 13:26:06 +02:00
Trial97
441ffdcd2e Updated integration tests 2020-05-07 11:17:41 +02:00
Trial97
13e813f848 Fixed agents unit tests 2020-05-07 11:17:41 +02:00
Trial97
763710fb80 Updated AgentRequest 2020-05-07 11:17:41 +02:00
TeoV
3e6d01a638 HTTPAgent correctly append the same FieldPath with different processor and correcly access in SessionS AttributeIDs 2019-07-09 02:47:51 -10:00
TeoV
fc45b4f7b9 Add tests for *text_plain reply for HTTPAgent 2019-07-09 02:47:51 -10:00
TeoV
524f726256 Add support for *text_plain as reply for HTTPAgent 2019-07-09 02:47:51 -10:00
Tripon Alexandru-Ionut
5af9e7385f Updated IfaceAsString and MapEvent tests 2019-06-21 15:35:01 +02:00
TeoV
5674a18c6b Update RemoteHost to return only ip and add tests 2018-12-20 19:51:58 +01:00
TeoV
7997e42be5 Add support for *remote_host in AgentRequest 2018-12-10 09:40:06 +01:00
TeoV
f2436288f6 Update glide.lock with correct version of mongo for encoding time.Time 2018-11-28 17:13:27 +01:00
TeoV
b60673794e Add log action for radius and http agent 2018-11-18 11:54:09 +01:00
TeoV
8299a672c1 Clone fldPath and and work with clone; cached fldPath as it came 2018-11-16 18:31:54 +01:00
TeoV
1b1966b46f Correct cached data for httpXmlDP is index is present 2018-11-16 18:31:54 +01:00
DanB
4d94021a1d NavigableMap.Set with append for []*NMItem 2018-11-14 19:34:13 +01:00
DanB
96960f28ee AgentRequest constructor updated 2018-10-05 14:04:29 +02:00
DanB
56ada587d2 Completing Diameter DryRun integration test 2018-10-03 19:43:35 +02:00
Trial97
1741cca805 Replace CastFieldIfToString with IfaceAsString 2018-10-02 11:35:37 +02:00
TeoV
f7938f3234 Add xml decoder for http agent 2018-09-26 19:31:08 +02:00
TeoV
6d1a3f07fd Move DataProvider,NavigableMap,RsrParser into config package 2018-08-30 11:40:06 +02:00
DanB
3237b4b157 NavigableMap.AsCGREvent, removing NavigableMap.AsMapStringInterface method, completing httpagent integration test for pseudoprepaid 2018-07-08 20:21:15 +02:00
DanB
6f0c06e820 HTTPAgent - haXMLEncoder implementation 2018-07-04 19:18:17 +02:00
DanB
40c7699ee4 NavigableMap should not analyze values internally to keep flexibility and speed 2018-07-03 17:01:38 +02:00
DanB
44dedd7875 NMItem with support for Config attached, NavigableMap.Set with NMItem 2018-06-29 19:41:58 +02:00
DanB
31ca9de5d1 Small customization HAReplyEncoder 2018-06-29 19:41:58 +02:00
DanB
ecb2b1753d httpUrlDP.FieldAsInterface method with tests 2018-06-27 12:26:09 +02:00
DanB
ce91d21468 Basic struct for httpUrlDP 2018-06-26 19:33:11 +02:00
DanB
5d2de6b644 AgentRequest in agents for more flexibility in filters and processing agent requests 2018-06-14 19:15:32 +02:00
DanB
73552ef89c NavigableMap with ordered items 2018-06-13 18:34:46 +02:00
DanB
95e38104bb NavigableMap moved to engine, DataProvider interface with AsNavigableMap method 2018-06-12 15:28:10 +02:00
DanB
b3ed751e28 FilterS.Pass over DataProvider interface 2018-06-11 18:23:14 +02:00
DanB
11ca6b1933 Skel of HTTPAgent with interfaces for both request and reply decoder/encoders 2018-06-06 19:45:58 +02:00