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

Error when changing sitemap language with the right assignment tool opened

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.6, 4.9.0
    • None
    • None
    • None

      How to reproduce

      • Open sitemap tool
      • Open right assignment tool and select "Content types" or "Reference table context"
      • Change language in sitemap tool (right assignment does not need to be visible nor focus)

      There is a error while assignment tool try to refresh

      Cannot invoke "org.ametys.cms.contenttype.ContentType.getSupertypeIds()" because "contentType" is null
      java.lang.NullPointerException: Cannot invoke "org.ametys.cms.contenttype.ContentType.getSupertypeIds()" because "contentType" is null
          at org.ametys.cms.rights.ContentTypeRightAssignmentContext.getParentContexts(ContentTypeRightAssignmentContext.java:61)
          at org.ametys.web.rights.WebContentTypeRightAssignmentContext.getParentContexts(WebContentTypeRightAssignmentContext.java:74)
          at org.ametys.plugins.core.ui.right.GetProfileAssignmentsAction._getAssignmentForAnonymous(GetProfileAssignmentsAction.java:163)
          at org.ametys.plugins.core.ui.right.GetProfileAssignmentsAction._getAssignmentForAnonymous(GetProfileAssignmentsAction.java:136)
          at org.ametys.plugins.core.ui.right.GetProfileAssignmentsAction.act(GetProfileAssignmentsAction.java:116)
          at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:125)
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
          at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
          at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
      

      Here the request sent to server

      Note that if another context is selected (General, Contents, ...) there is no error but the displayed assignments are empty.

      There is no error and displayed assignments are OK only when the "Pages" right assignment context is selected

            Unassigned Unassigned
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: