Uploaded image for project: 'Content Dependencies'
  1. Content Dependencies
  2. MGNLCDEP-94

Update the search query

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.7.2, 1.8.1
    • 1.6.4, 1.7.1, 1.8
    • Yes
    • Kromeriz 146
    • 2

      The search query in info.magnolia.module.dependencies.impl.DefaultDependencies.getNodes(Node) fails if the page node name contains a dot followed by a number like:

      select * from [nt:base] where ischildnode([/t.2]) and [jcr:primaryType] <> 'mgnl:page'
      

      while the following statement works:

      select * from [nt:base] where ischildnode('/t.2') and [jcr:primaryType] <> 'mgnl:page'
      

      The statement pattern should be updated to use the quotation marks rather than square brackets:

      String statement = String.format("select * from [nt:base] where ischildnode('%s') and [jcr:primaryType] <> '%s'", node.getPath(), node.getPrimaryNodeType().getName());
      

        Acceptance criteria

              rsiska Robert Šiška
              ochytil Ondrej Chytil
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD