Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1006

JsonQueryServlet does not return multi-value properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Get 2.0.4
    • Servlets Get 2.0.6
    • Servlets
    • None

    Description

      From the mailing list:

      I'm trying to get back a multivalued property from the JSON Query Servlet, but it appears that that doesn't work. Here's what I did:

      curl -Ftitle="some title text" -Ftext="some body text content" \
      -Ftest="1" -Ftest="2" http://admin:admin@localhost:8080/some/new/content

      That posts successfully, and I can view it at http://localhost:8080/some/new/content.json and see that test is ["1","2"]. If I try to find it with JQS though at

      http://localhost:8080/some.query.json?queryType=xpath&statement=/jcr:root/some/new/*&property=title&property=test

      The title property is correctly displayed, but test is shown as "". Is this a known issue, or should I open a Jira?

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: