Details

    • Type: Bug
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 5.3.0
    • Fix Version/s: 5.3.0
    • Component/s: None
    • Severity:
      Major
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      When trying to create users and roles through the WSO2-AS following error message get thrown
      "Could not add role PRIMARY/saffadf. Error is: Role name not valid. Role name must be a non null string with following format, ^~!#$;%*+={}\

      {3,30}

      $"

      In the carbon-commons/components/user-manager/org.wso2.carbon.user.mgt.ui/src/main/resources/web/role/add-finish.jsp it try to get the safetext as follows
      roleName = CharacterEncoder.getSafeText(roleBean.getRoleName());
      in the getSafeTextMethod '/' is replaced by the '&#x2F' therefore regex will not match

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sameera@wso2.com Sameera Jayasoma
                Reporter:
                thusithad@wso2.com Thusitha Dayaratne
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: