Uploaded image for project: 'ShrinkWrap Descriptors'
  1. ShrinkWrap Descriptors
  2. SHRINKDESC-51

Using unescaped special query characters when doing a node query with text causes errors

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.1.6
    • Fix Version/s: 1.2.0-alpha-2
    • Component/s: api
    • Labels:
      None

      Description

      "Could not export Node strcuture to XML"

      node.getOrCreate("/foo/bar=omg/with/slashes");

      fails with that error. problem is parser think it means this:

      "/foo/bar=omg" + "/more/nodes"

      So need some way of escaping text values:

      node.getOrCreate("/foo/bar=omg\\/with\\/escaped
      /slashes");

        Gliffy Diagrams

          Activity

          Hide
          alrubinger Andrew Rubinger added a comment -

          A simple test case on the SPI module should be able to assert if this case is still present.

          Show
          alrubinger Andrew Rubinger added a comment - A simple test case on the SPI module should be able to assert if this case is still present.
          Hide
          m1ckey Michal Huniewicz added a comment -

          There is no exception, the node is created, but its value is just "omg".

          Show
          m1ckey Michal Huniewicz added a comment - There is no exception, the node is created, but its value is just "omg".
          Show
          alrubinger Andrew Rubinger added a comment - Upstream: https://github.com/shrinkwrap/descriptors/commit/b12a8c83ce3ea886d7220a0fcf44af2f0ec85746

            People

            • Assignee:
              m1ckey Michal Huniewicz
              Reporter:
              lincolnthree Lincoln Baxter III
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development