Uploaded image for project: 'Magnolia Groovy Module'
  1. Magnolia Groovy Module
  2. MGNLGROOVY-54

Node not properly wrapped ?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.2.3
    • None
    • integration
    • None

      I would expect the following assertion to pass - it doesn't:

      p = ctx.getHierarchyManager('website').getContent('index')
      assert p.name == p.getName()
      

      p.name currently returns null. I'm assuming that's because this notation is looking for a name jcr property ?

      I realize this might conflict with the friendly node/property wrapping we have going on, so I'm not sure we should implement p.name to return the node's name. Perhaps there is a special (undocumented) notation to access the node name without using the method call ?

        Acceptance criteria

              fgrilli Federico Grilli
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD