Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1473

XML/JSON YangInstanceIdentifier codecs mis-handle key values

XMLWordPrintable

      It seems AbstractStringInstanceIdentifierCodec is not handling values correctly, as it uses String.valueOf() on the object – bypassing any additional processing – so, for example, I do not believe in handles identityref and instance-identifier references correctly.

      Furthermore it does not perform any escaping, which probably means we cannot handle strings containing backslashes, or single quotes or double quotes.

      This relates to YANGTOOLS-1361, as it provides a counterpart parser, which needs to behave correctly w.r.t. these.

      Write a set of tests to show how we handle these corner cases.

       

            rkashapov Ruslan Kashapov
            rovarga Robert Varga
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: