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

        Clemens Wyss created issue -
        Justin Edelson made changes -
        Field Original Value New Value
        Assignee Justin Edelson [ justinedelson ]
        Hide
        Justin Edelson added a comment -
        Show
        Justin Edelson added a comment - proposed patch here: http://codereview.appspot.com/2144046
        Justin Edelson made changes -
        Component/s Servlets [ 12313028 ]
        Component/s JCR [ 12311946 ]
        Justin Edelson made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s Servlets Post 2.1.2 [ 12315287 ]
        Resolution Fixed [ 1 ]
        Hide
        Justin Edelson added a comment -

        fixed in r1136139

        Show
        Justin Edelson added a comment - fixed in r1136139
        Gavin made changes -
        Workflow no-reopen-closed,doc-test-required [ 12520086 ] Copy of no-reopen-closed,doc-test-required [ 12764767 ]
        Gavin made changes -
        Workflow Copy of no-reopen-closed,doc-test-required [ 12764767 ] no-reopen-closed,doc-test-required [ 12767653 ]
        Gavin made changes -
        Workflow no-reopen-closed,doc-test-required [ 12767653 ] re-open possible,doc-test-required [ 12789731 ]
        Gavin made changes -
        Workflow re-open possible,doc-test-required [ 12789731 ] no-reopen-closed,doc-test-required [ 12792152 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        279d 4h 52m 1 Justin Edelson 15/Jun/11 19:21

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development