Sling
  1. Sling
  2. SLING-1741

An exception should be thrown when trying to add a subnode to an nt:file-node

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Servlets Post 2.1.2
    • Component/s: Servlets
    • Labels:
      None

      Description

      The nt:file nodetype (without any other mixin node types assigned to the node) only supports one single child
      node whose name is "jcr:content". Hence when you try to add a subnode to an nt:file node you should be getting an error/exception...
      This is not the case though

        Activity

        Hide
        Justin Edelson added a comment -
        Show
        Justin Edelson added a comment - proposed patch here: http://codereview.appspot.com/2144046
        Hide
        Justin Edelson added a comment -

        fixed in r1136139

        Show
        Justin Edelson added a comment - fixed in r1136139

          People

          • Assignee:
            Justin Edelson
            Reporter:
            Clemens Wyss
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development