Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4457

Make User.hasRole() case insensitive.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.9.7, OpenMRS 1.9.8, Platform 1.9.9, Platform 1.10.0, Platform 1.11.0, Platform 1.12.0, Platform 1.13.0
    • Fix Version/s: Platform 2.0.0
    • Component/s: None
    • Labels:
    • Complexity:
      Low

      Description

      This method internally uses User.containsRole() method which in turn uses String.equals() method for role name comparison which means it returns false for two similar roles spelled using different cases (For example "Maternity Nurse" and "maternity nurse"). As part of plan discussed in TRUNK-4455 this method should be changed to use String.equalsIgnoreCase() instead.

        Attachments

          Activity

            People

            Assignee:
            akshika47 Akshika Wijesundara
            Reporter:
            willa Willa Mhawila
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - Not Specified
                Not Specified