Uploaded image for project: 'Artificer'
  1. Artificer
  2. ARTIF-586

Empty custom property query not quite working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.5.0.Final
    • Fix Version/s: 0.7.0.Final
    • Component/s: UI
    • Labels:
      None

      Description

      If a query is done like this:

      /s-ramp/core/Document[ @foo ]
      

      then the assumption is that it should return all artifacts with property "foo" defined, regardless of the value of "foo". However, if an artifact has the property defined but no value for the property, this query is failing to return it.

      To reproduce:

      1) add an artifact to s-ramp
      2) add a custom property "foo" to the artifact, with no value (this can easily be done via the UI)
      3) execute the s-ramp query: /s-ramp[@foo]
      4) observe that the artifact is not returned

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                brmeyer Brett Meyer
                Reporter:
                eric.wittmann Eric Wittmann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: