ionutboangiu
117fee4e29
Relicense from GPLv3 to AGPLv3
2025-10-29 19:42:24 +01:00
ionutboangiu
dd82bb3c4b
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.
Added an integration tes for the special case where the
xml_root_path field is left empty. Before the change it
used to trim the root element from the path slice when
attempting to retrieve a the relative path slice.
2023-10-16 13:31:14 +03:00
ionutboangiu
62619ba3a5
Replace interface{} with any
2023-06-05 10:55:32 +02:00
ionutboangiu
82468c580d
Replace deprecated ioutil library, remove redundant statements + small optimizations
2022-12-02 14:24:18 +02:00
Trial97
ab4944dc1a
Removed config.NavigableMap
2020-05-18 12:43:13 +02:00
Trial97
2c53180ac8
Fixed agents unit tests
2020-05-07 11:19:03 +02:00
Trial97
9ef1dd05cc
Updated AgentRequest
2020-05-07 11:19:03 +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