PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-32591

A javascript error is thrown when the user doesn't have permisssion to add a Category or Vocabulary

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      4
    • Where was the bug?:
      Javascript
    • Similar Issues:
      Show 5 results 

      Description

      Steps to reproduce:
      1. Add an new user
      2. Create a new Site Role
      3. Associate the user to a site, the site to the created role, and the user to that role.
      4. Define the role permissions
      5. In permissions input choose: Control Panel:Site -> Categories (Control Panel).
      6. Select All and save
      7. Impersonate the user and go to Control Panel -> Categories

      The javascript console error shows: Uncaught TypeError: Cannot call method 'on' of null
      This error is related to the 'addCategoryButton'.

      8. In the role permissions page again, go to Site Content -> Categories (Control Panel).
      9. Select 'Add Category' and save

      In the Control Panel with the user again, now you'll see the same error but related to 'addVocabularyButton'.

        Issue Links

          Activity

          Hide
          Ginson Ren added a comment -

          PASSED Manual Testing following the steps in the description.

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

          The javascript console error shows: Uncaught TypeError: Cannot call method 'on' of null.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: f526762d4eea83798b49e5d5e93d1baa9d8e3a0e.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 21f30ec5e4636ac601f2409554d7b616c239d777.

          There is no javascript error.

          Show
          Ginson Ren added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. The javascript console error shows: Uncaught TypeError: Cannot call method 'on' of null. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: f526762d4eea83798b49e5d5e93d1baa9d8e3a0e. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 21f30ec5e4636ac601f2409554d7b616c239d777. There is no javascript error.

            People

            • Assignee:
              Ginson Ren
              Reporter:
              Antonio Junior (Inactive)
              Recent user:
              Istvan Dezsi
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

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

                Development

                  Structure Helper Panel