Commit Graph

19 Commits

Author SHA1 Message Date
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
adragusin
07877daef0 Changed the strip strategy (e.g. "right" to "*right") 2020-03-12 17:23:45 +01:00
Trial97
ca7ed53b67 CDR export with path instead of Tag 2020-02-10 15:26:00 +01:00
TeoV
9376889b10 Parse RunDelay from EventReader with ParseDurationWithNanosecs fixes #1897 2020-02-05 15:57:58 +01:00
TeoV
b85ebe8214 Update EventReader integration tests 2020-02-05 15:57:58 +01:00
Trial97
f18525a1db Updated path for cdre 2020-01-30 10:21:48 +01:00
Trial97
ab3fb01e7d Starting adding absolute path to cdre 2020-01-30 10:21:48 +01:00
TeoV
a2dc836075 Add Apier as a standalone service 2020-01-29 18:16:51 +01:00
adragusin
422ad62b62 updated configs after changing from *composed to *variable 2020-01-29 16:54:54 +01:00
adragusin
da9c00d50a Changed *composed fields into *variable in templates 2020-01-29 16:54:54 +01:00
TeoV
4f2d99c982 Update ERs configs for integration tests o 2020-01-29 14:40:57 +01:00
TeoV
26ea469328 Merge content,header,trailer fields into fields 2020-01-29 14:40:57 +01:00
TeoV
85ffef5028 Rename from *opensips_flatstore and *kamailio_flatstore to *flatsore 2020-01-22 14:10:35 +02:00
TeoV
0d4e989832 Add test for Flatstore in ERs 2020-01-22 11:06:43 +02:00
TeoV
e7f95a98f3 Add Flastore Support in ERs 2020-01-22 11:06:43 +02:00
Dan Christian Bogos
cc9dab3ae3 Merge pull request #1882 from adragusin/master
Removed directions from templates
2020-01-21 14:25:23 +01:00
adragusin
3a1104ff01 Removed directions from templates 2020-01-21 13:36:07 +02:00
TeoV
c074fd2369 Add *partial_csv type in eventReader ( almost complete) 2020-01-21 11:31:59 +02:00
adragusin
a836232021 Updated it tests 2020-01-15 10:45:59 -05:00