Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-2330

The comments can make a locked content crash when displayed

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.1
    • None
    • None
    • None

      The comments can make a locked content crash when displayed with the stacktrace :

      Caused by: org.ametys.plugins.repository.AmetysRepositoryException: javax.jcr.lock.LockException: Node locked.
      	at org.ametys.plugins.repository.metadata.jcr.JCRCompositeMetadata.getCompositeMetadata(JCRCompositeMetadata.java:1067)
      	at org.ametys.cms.repository.comment.Comment.getComments(Comment.java:347)
      	at org.ametys.cms.repository.DefaultContent.getComments(DefaultContent.java:911)
      	at org.ametys.cms.content.ContentGenerator._saxCommentsMetadata(ContentGenerator.java:155)
      	at org.ametys.cms.content.ContentGenerator._saxContent(ContentGenerator.java:137)
      	at org.ametys.cms.content.ContentGenerator._generateContent(ContentGenerator.java:97)
      	at org.ametys.cms.content.ContentGenerator.generate(ContentGenerator.java:81)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579)
      	... 92 more
      

      Comments retrieving should not create the value, it should only be created when adding one.

            raphael Raphaƫl Franchet
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: