[ https://issues.apache.org/jira/browse/SLING-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved SLING-1006. -------------------------------------- Resolution: Fixed I have committed a fix in Rev. 784278. The JsonQueryServlet now uses the ValueMap adapter of the node resource to access the properties instead of requesting a separate resoure for each required property from the resource resolver. In addition it correctly handles mult-value properties. Keeping open until feedback from the reporter on the list. > JsonQueryServlet does not return multi-value properties > ------------------------------------------------------- > > Key: SLING-1006 > URL: https://issues.apache.org/jira/browse/SLING-1006 > Project: Sling > Issue Type: Bug > Components: Servlets Get > Affects Versions: Servlets Get 2.0.4 > Reporter: Felix Meschberger > Assignee: Felix Meschberger > Fix For: Servlets Get 2.0.6 > > > 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:ad...@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? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.