You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Paul Mietz Egli (JIRA)" <ji...@apache.org> on 2009/02/06 21:42:59 UTC
[jira] Created: (SLING-851) SlingNodeStore.accept() requiring all
values of an array query parameter
SlingNodeStore.accept() requiring all values of an array query parameter
------------------------------------------------------------------------
Key: SLING-851
URL: https://issues.apache.org/jira/browse/SLING-851
Project: Sling
Issue Type: Bug
Components: Extensions
Environment: URL: http://svn.apache.org/repos/asf/incubator/sling/trunk/extensions/dojo-sling
Repository Root: http://svn.apache.org/repos/asf
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 741703
Node Kind: directory
Schedule: normal
Last Changed Author: fmeschbe
Last Changed Rev: 734658
Last Changed Date: 2009-01-15 02:25:41 -0800 (Thu, 15 Jan 2009)
Reporter: Paul Mietz Egli
Queries against a SlingNodeStore that contain properties with multiple values like the following do not return any objects:
<div dojoType="dojox.data.SlingNodeStore" url="/content" jsId="nodeStore" query="{ 'jcr:primaryType' : ['nt:folder','nt:file'] }"></div>
The accept() method of SlingNodeStore appears to require that the node property value matches ALL of the query array values, not just one value. Changing the method to set the "onematch" bool to true if any of the elements in the array match appears to solve this problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SLING-851) SlingNodeStore.accept() requiring all
values of an array query parameter
Posted by "Paul Mietz Egli (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Mietz Egli updated SLING-851:
----------------------------------
Attachment: test.html
Test file that can be used to reproduce SLING-851. Expected result when this file is served from Sling is that Dojo Tree widget is displayed with the following content:
var
sling
bundle-content
If run against an unpatched SlingNodeStore, no tree is displayed.
> SlingNodeStore.accept() requiring all values of an array query parameter
> ------------------------------------------------------------------------
>
> Key: SLING-851
> URL: https://issues.apache.org/jira/browse/SLING-851
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Environment: URL: http://svn.apache.org/repos/asf/incubator/sling/trunk/extensions/dojo-sling
> Repository Root: http://svn.apache.org/repos/asf
> Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> Revision: 741703
> Node Kind: directory
> Schedule: normal
> Last Changed Author: fmeschbe
> Last Changed Rev: 734658
> Last Changed Date: 2009-01-15 02:25:41 -0800 (Thu, 15 Jan 2009)
> Reporter: Paul Mietz Egli
> Attachments: SlingNodeStore.patch, test.html
>
>
> Queries against a SlingNodeStore that contain properties with multiple values like the following do not return any objects:
> <div dojoType="dojox.data.SlingNodeStore" url="/content" jsId="nodeStore" query="{ 'jcr:primaryType' : ['nt:folder','nt:file'] }"></div>
> The accept() method of SlingNodeStore appears to require that the node property value matches ALL of the query array values, not just one value. Changing the method to set the "onematch" bool to true if any of the elements in the array match appears to solve this problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SLING-851) SlingNodeStore.accept() requiring all
values of an array query parameter
Posted by "Paul Mietz Egli (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Mietz Egli updated SLING-851:
----------------------------------
Attachment: SlingNodeStore.patch
patch that fixes SLING-851
> SlingNodeStore.accept() requiring all values of an array query parameter
> ------------------------------------------------------------------------
>
> Key: SLING-851
> URL: https://issues.apache.org/jira/browse/SLING-851
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Environment: URL: http://svn.apache.org/repos/asf/incubator/sling/trunk/extensions/dojo-sling
> Repository Root: http://svn.apache.org/repos/asf
> Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> Revision: 741703
> Node Kind: directory
> Schedule: normal
> Last Changed Author: fmeschbe
> Last Changed Rev: 734658
> Last Changed Date: 2009-01-15 02:25:41 -0800 (Thu, 15 Jan 2009)
> Reporter: Paul Mietz Egli
> Attachments: SlingNodeStore.patch
>
>
> Queries against a SlingNodeStore that contain properties with multiple values like the following do not return any objects:
> <div dojoType="dojox.data.SlingNodeStore" url="/content" jsId="nodeStore" query="{ 'jcr:primaryType' : ['nt:folder','nt:file'] }"></div>
> The accept() method of SlingNodeStore appears to require that the node property value matches ALL of the query array values, not just one value. Changing the method to set the "onematch" bool to true if any of the elements in the array match appears to solve this problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (SLING-851) SlingNodeStore.accept() requiring all
values of an array query parameter
Posted by "Paul Mietz Egli (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Mietz Egli closed SLING-851.
---------------------------------
Verified fixed in revision 745256. Thanks!
> SlingNodeStore.accept() requiring all values of an array query parameter
> ------------------------------------------------------------------------
>
> Key: SLING-851
> URL: https://issues.apache.org/jira/browse/SLING-851
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Environment: URL: http://svn.apache.org/repos/asf/incubator/sling/trunk/extensions/dojo-sling
> Repository Root: http://svn.apache.org/repos/asf
> Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> Revision: 741703
> Node Kind: directory
> Schedule: normal
> Last Changed Author: fmeschbe
> Last Changed Rev: 734658
> Last Changed Date: 2009-01-15 02:25:41 -0800 (Thu, 15 Jan 2009)
> Reporter: Paul Mietz Egli
> Assignee: Felix Meschberger
> Attachments: SlingNodeStore.patch, test.html
>
>
> Queries against a SlingNodeStore that contain properties with multiple values like the following do not return any objects:
> <div dojoType="dojox.data.SlingNodeStore" url="/content" jsId="nodeStore" query="{ 'jcr:primaryType' : ['nt:folder','nt:file'] }"></div>
> The accept() method of SlingNodeStore appears to require that the node property value matches ALL of the query array values, not just one value. Changing the method to set the "onematch" bool to true if any of the elements in the array match appears to solve this problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SLING-851) SlingNodeStore.accept() requiring all
values of an array query parameter
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved SLING-851.
-------------------------------------
Resolution: Fixed
Assignee: Felix Meschberger
Thanks for providing the patch. I have applied in Rev. 742946.
Please close this issue, if this now works. Thanks.
> SlingNodeStore.accept() requiring all values of an array query parameter
> ------------------------------------------------------------------------
>
> Key: SLING-851
> URL: https://issues.apache.org/jira/browse/SLING-851
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Environment: URL: http://svn.apache.org/repos/asf/incubator/sling/trunk/extensions/dojo-sling
> Repository Root: http://svn.apache.org/repos/asf
> Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> Revision: 741703
> Node Kind: directory
> Schedule: normal
> Last Changed Author: fmeschbe
> Last Changed Rev: 734658
> Last Changed Date: 2009-01-15 02:25:41 -0800 (Thu, 15 Jan 2009)
> Reporter: Paul Mietz Egli
> Assignee: Felix Meschberger
> Attachments: SlingNodeStore.patch, test.html
>
>
> Queries against a SlingNodeStore that contain properties with multiple values like the following do not return any objects:
> <div dojoType="dojox.data.SlingNodeStore" url="/content" jsId="nodeStore" query="{ 'jcr:primaryType' : ['nt:folder','nt:file'] }"></div>
> The accept() method of SlingNodeStore appears to require that the node property value matches ALL of the query array values, not just one value. Changing the method to set the "onematch" bool to true if any of the elements in the array match appears to solve this problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.