Opened 6 years ago

Last modified 4 years ago

#3428 new enhancement

libkea-cc: JSON element position should be set to the position of the element's name, not value

Reported by: marcin Owned by:
Priority: low Milestone: Outstanding Tasks
Component: configuration Version:
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: Core Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no


In the review of, Tomek pointed that in some cases it may be desired to know the position of the JSON element (in the configuration string), not the position of the JSON element value. For example, here:

{ "foo" : "bar" }

the position points to ''b'' which is the beginning of ''bar'' value. We may want the position to point to ''f'' in ''foo'' instead.

Current implementation in the doesn't allow for that and would need some rewrite to get what we want. Note, that some elements (list) doesn't have a name (maps do have names), so we would need to differentiate between maps and lists when setting a pos pointer.


Change History (2)

comment:1 Changed 5 years ago by tomek

  • Milestone changed from DNS Outstanding Tasks to DHCP Outstanding Tasks

comment:2 Changed 4 years ago by tomek

  • Milestone changed from DHCP Outstanding Tasks to Outstanding Tasks

Milestone renamed

Note: See TracTickets for help on using tickets.