[exim-dev] [Bug 3006] New: comma in json data not handled by…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Exim Bugzilla
Ημερομηνία:  
Προς: exim-dev
Καινούρια Θέματα: [exim-dev] [Bug 3006] comma in json data not handled by jsons extract, [exim-dev] [Bug 3006] comma in json data not handled by jsons extract, [exim-dev] [Bug 3006] comma in json data not handled by jsons extract, [exim-dev] [Bug 3006] comma in json data not handled by jsons extract
Αντικείμενο: [exim-dev] [Bug 3006] New: comma in json data not handled by jsons extract
https://bugs.exim.org/show_bug.cgi?id=3006

            Bug ID: 3006
           Summary: comma in json data not handled by jsons extract
           Product: Exim
           Version: 4.95
          Hardware: All
                OS: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: ACLs
          Assignee: jgh146exb@???
          Reporter: victor@???
                CC: exim-dev@???


"extract json" can not parse text values with comma:


# exim -be '${extract jsons{name}{ \{ "id":"1","name":"Doe,
John","age":"unknown" \}}}'
Failed: missing '"' wrapping string result for extract jsons


Also unable to extract any items after such value:

# exim -be '${extract jsons{age}{ \{ "id":"1","name":"Doe,
John","age":"unknown" \}}}'
Failed: missing '"' wrapping string key for extract json


There is no problem to extract values before value with comma:

# exim -be '${extract jsons{id}{ \{ "id":"1","name":"Doe, John","age":"unknown"
\}}}'
1

--
You are receiving this mail because:
You are on the CC list for the bug.

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/