Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.7.2 Final
    • Fix Version/s: 2.8 Final
    • Component/s: Portal Core
    • Labels:
      None

      Description

      here the scenario:

      we have:

      User Role
      ----------------------
      User1 User1

      User2 User2

      Page Role
      ----------------------------------------------------------------------------
      template unchecked
      template/nuovapagina1 User1
      template/nuovapagina1/altrapagina1 User1
      template/nuovapagina1/altrapagina2 User1
      template/nuovapagina2 User2
      template/nuovapagina2/naltrapagina1 User2
      template/nuovapagina2/naltrapagina2 User2

      If I log as User1 in the portal, I obtain a NullPointerException when I try to copy the page template/nuovapagina2 inside dashboard/User1.

      The code is in:

      org.jboss.portal.core.impl.model.CustomizationManagerService: 334

      the 'from' variable is equals to 'template/nuovapagina1' , the 'to' variable became null because the user hasn't permissions on it. So in the code below we get a NullPointerException and finally the user imports only a piece of template, so the dashboard became inconsistent:

      copy(portalObject, to.getChild(portalObject.getName()));

      To resolve the problem it is enough the below:

      copy(portalObject, to == null ? null : to.getChild(portalObject.getName()));

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                sviluppatorefico Luca Stancapiano
                Reporter:
                sviluppatorefico Luca Stancapiano
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: