Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.7
    • Component/s: core, jcr
    • Labels:
      None

      Description

      The fix for OAK-702 introduced a regression not caught by our tests but is visible with Apache Sling on top of an Oak repository. The JSP compiler in Sling creates an nt:resource node with a jcr:lastModified property using a long value. As of svn revision 1461058 this results in a ConstraintViolationException:

      javax.jcr.nodetype.ConstraintViolationException: No matching property definition found for jcr:lastModified
      	at org.apache.jackrabbit.oak.plugins.nodetype.EffectiveNodeType.getPropertyDefinition(EffectiveNodeType.java:354)
      	at org.apache.jackrabbit.oak.plugins.nodetype.ReadOnlyNodeTypeManager.getDefinition(ReadOnlyNodeTypeManager.java:435)
      	at org.apache.jackrabbit.oak.jcr.NodeImpl$32.perform(NodeImpl.java:1610)
      	at org.apache.jackrabbit.oak.jcr.NodeImpl$32.perform(NodeImpl.java:1599)
      	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:101)
      	at org.apache.jackrabbit.oak.jcr.ItemImpl.perform(ItemImpl.java:60)
      	at org.apache.jackrabbit.oak.jcr.NodeImpl.internalSetProperty(NodeImpl.java:1599)
      	at org.apache.jackrabbit.oak.jcr.NodeImpl.setProperty(NodeImpl.java:519)
      

        Attachments

          Activity

            People

            • Assignee:
              mreutegg Marcel Reutegger
              Reporter:
              mreutegg Marcel Reutegger
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: