Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed

      Description

      The subType on Role is not being exported in the LAR/Staging.

      See PermissionExporter.java, only the following are being exported.

      roleElement.addAttribute("name", role.getName());
      roleElement.addAttribute("title", role.getTitle());
      roleElement.addAttribute("description", role.getDescription());
      roleElement.addAttribute("type", String.valueOf(role.getType()));

      Make sure it also gets added to the PermissionImporter.

        Issue Links

          Activity

          Hide
          michael.saechang Michael Saechang added a comment -

          Committed on:
          Portal 6.2.x GIT ID: 9509efc640f3624a6568083a310c6a3f89a195a9.

          Show
          michael.saechang Michael Saechang added a comment - Committed on: Portal 6.2.x GIT ID: 9509efc640f3624a6568083a310c6a3f89a195a9.
          Hide
          pani.gui Pani Gui (Inactive) added a comment -

          PASSED Manual Testing using the following steps:

          1. Set "roles.regular.subtypes=subtype1,subtype2,subtype3" to portal-ext.properties.
          2. Start portal.
          3. Go to Control Panel > Roles.
          4. Create a regular role.
          5. Edit the role.
          6. Select a subtype from the dropdown box.
          7. Save.
          8. Go to Site Pages.
          9. Export it. (Check Permissions and Permissions Assigned to Roles.)
          11. Shut down portal.
          12. Clean database.
          13. Start up portal.
          14. Go to Control Panel > Site Pages.
          15. Import the exported data.
          16. Go to Roles and see the role.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

          The subtype is not saved after importing.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 30ba0e21ec4cf4cfa456d152efec173ae6828801.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 26db36dd1d8cb06b88163a37d3fd7dfecb175e4b.

          The subtype is saved properly.

          Show
          pani.gui Pani Gui (Inactive) added a comment - PASSED Manual Testing using the following steps: 1. Set "roles.regular.subtypes=subtype1,subtype2,subtype3" to portal-ext.properties. 2. Start portal. 3. Go to Control Panel > Roles. 4. Create a regular role. 5. Edit the role. 6. Select a subtype from the dropdown box. 7. Save. 8. Go to Site Pages. 9. Export it. (Check Permissions and Permissions Assigned to Roles.) 11. Shut down portal. 12. Clean database. 13. Start up portal. 14. Go to Control Panel > Site Pages. 15. Import the exported data. 16. Go to Roles and see the role. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. The subtype is not saved after importing. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 30ba0e21ec4cf4cfa456d152efec173ae6828801. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 26db36dd1d8cb06b88163a37d3fd7dfecb175e4b. The subtype is saved properly.
          Hide
          michael.saechang Michael Saechang added a comment -

          Thank you for testing Pani. Closing as 'Fixed'.

          Show
          michael.saechang Michael Saechang added a comment - Thank you for testing Pani. Closing as 'Fixed'.
          Hide
          brian.chan Brian Chan added a comment -

          Please test on perm algorithm 5 and 6 for 6.1.x.

          Show
          brian.chan Brian Chan added a comment - Please test on perm algorithm 5 and 6 for 6.1.x.
          Hide
          pani.gui Pani Gui (Inactive) added a comment -

          PASSED Manual Testing following the steps in the previous comment.

          Add properties "permissions.user.check.algorithm=5" and "permissions.user.check.algorithm=6" in portal-ext.properties to test it.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 2c152d9937caab967b8183fe0c4a9062aba61ac1.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 26db36dd1d8cb06b88163a37d3fd7dfecb175e4b.

          The subtype works properly.

          Show
          pani.gui Pani Gui (Inactive) added a comment - PASSED Manual Testing following the steps in the previous comment. Add properties "permissions.user.check.algorithm=5" and "permissions.user.check.algorithm=6" in portal-ext.properties to test it. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 2c152d9937caab967b8183fe0c4a9062aba61ac1. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 26db36dd1d8cb06b88163a37d3fd7dfecb175e4b. The subtype works properly.
          Hide
          michael.saechang Michael Saechang added a comment -

          Thank you Pani!

          Show
          michael.saechang Michael Saechang added a comment - Thank you Pani!

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 6 weeks, 2 days ago

                Development

                  Subcomponents