Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-512

If there are no roles in edit user modal page is possible to create membership between root (fake) role and user

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.8, 1.2.0-M1
    • Fix Version/s: 1.1.8, 1.2.0-M1
    • Component/s: console
    • Labels:
      None

      Description

      1) start Syncope in embedded mode and delete all roles or deploy syncope project with empty (default) content.xml
      2) log into console and create an user.
      3) go under roles tab in user modal page and click on empty role (the only displayed), a membership modal window is shown.
      4) click on save button and you'll notice a NullPointerException.
      This is due to the fact that, if there are no roles, in edit user modal page is possible to create membership between root (fake) role (the one with id 0) and user and this is incorrect because root role is not useful for creating a membership.

        Attachments

          Activity

            People

            • Assignee:
              andrea.patricelli Andrea Patricelli
              Reporter:
              andrea.patricelli Andrea Patricelli
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: