Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2152

QueryManager and JCR browser seem to have different view on repository

    XMLWordPrintable

Details

    • Bug
    • Resolution: Workaround exists
    • Major
    • None
    • 3.5.8
    • core
    • None

    Description

      We have a very strange issue with querying custom page attributes. We have a custom page dialog that sets some custom page properties. These attributes are ad hoc and not defined in some sort of schema. We then have observation code that queries the JCR for pages with these attributes and certain values. Our queries look like this:

      //element(*, mgnl:content) [@someLongAttribute and @someLongAttribute != 0]
      
      SELECT *
      FROM mgnl:content
      WHERE someLongAttribute IS NOT NULL AND someLongAttribute != 0
      
      //element(*, mgnl:content) [@someBooleanAttribute and @someBooleanAttribute = 'true']
      
      SELECT *
      FROM someBooleanAttribute IS NOT NULL AND someBooleanAttribute = 'true'
      

      The behavior we are observing is that for certain pages the check for an attribute value is always false even if it should match according to the JCR browser. However the check for the attribute presence works as expected. As soon as we change a page attribute in the JCR browser the checks for the values work even if changed with the page properties dialog.

      This issue is very rare and we have not yet found a way to reproduce or trigger it.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              had Jan Haderka
              pmm Philippe Marschall
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD